Hi guys, I have been trying to get a custom text style to work for a shape file feature layer.
The custom text should be 3 lines,
First line is the name,
Second line is a character from a custom font file we had created for us.
The third line is some more info about the point.
I have been able to get non text items to display on the map, but I can't even get simple labeling working let alone any complex custom type.
This works:
LayerOverlay layerOverlay = new LayerOverlay();
ShapeFileFeatureLayer shapeFileFeatureLayer = new ShapeFileFeatureLayer(wellsShapeFileFullPath);
shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital1;
shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
layerOverlay.Layers.Add(wellFeatureLayerName, shapeFileFeatureLayer);
_mapControl.Overlays.Add(wellsFeatureLayersGroupName, layerOverlay);
_mapControl.Refresh(layerOverlay);
This does not:
ShapeFileFeatureLayer shapeFileFeatureLayer = new ShapeFileFeatureLayer(wellsShapeFileFullPath);
shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle =
new TextStyle(wellsFeatureLayersGroupName, new GeoFont(),
new GeoSolidBrush(GeoColor.StandardColors.Red));
shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay layerOverlay = new LayerOverlay();
layerOverlay.Layers.Add(wellFeatureLayerName, shapeFileFeatureLayer);
_mapControl.Overlays.Add(wellsFeatureLayersGroupName, layerOverlay);
_mapControl.Refresh(layerOverlay);