hello,
i want to display 3 labels around one single marker.please see below image for your reference.
For that i have used following code, but I can see the value of one column1 but cannot see the value of two labels which are column2 and column3.
InMemoryFeatureLayer markerLabelsOverlay = new InMemoryFeatureLayer();
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("Column1", "Verdana", 10, DrawingFontStyles.Bold, GeoColor.StandardColors.Black, -25, 15);
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("Column2", "Verdana", 10, DrawingFontStyles.Bold, GeoColor.StandardColors.Black, 25, 10);
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("Column3", "Verdana", 10, DrawingFontStyles.Bold, GeoColor.StandardColors.Black, 25, 5);
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.OverlappingRule = LabelOverlappingRule.NoOverlapping;
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.FittingLineInScreen = true;
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.FittingPolygon = true;
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.SplineType = SplineType.StandardSplining;
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.SuppressPartialLabels = true;
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.GridSize = 10;
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.DrawingLevel = DrawingLevel.LevelOne;
markerLabelsOverlay.FeatureSource.CustomColumnFetch += new EventHandler<customcolumnfetcheventargs>(MarkerLabels_CustomColumnFetch);
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.RequiredColumnNames.Add("Column1"); markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.RequiredColumnNames.Add("Column2");
markerLabelsOverlay.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.RequiredColumnNames.Add("Column3");
this.DynamicOverlay.Layers.Add("Route Marker Labels", markerLabelsOverlay);</customcolumnfetcheventargs>
Can you tell me what should I do for displaying value of remaing two labels? If possible can you provide modified code, this will very helpful to us. also i want to display label in center.
Thanks,
Badal Patel