Hello, I have an issue I hope someone can help me solve.
I have loaded a shape file as followed:
const
string
fontName =
"Divestco WellSymbols"
;
GeoFont geoFont =
new
GeoFont(fontName, 12);
PointStyle pointStyle =
new
PointStyle(geoFont, 49,
new
GeoSolidBrush(GeoColor.StandardColors.Black));
ShapeFileFeatureLayer shapeFileFeaturLayer =
new
ShapeFileFeatureLayer(shapeFilePath);
shapeFileFeaturLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = GetShapeFilePointStyle();
shapeFileFeaturLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
shapeFileFeaturLayer.FeatureSource.Projection = GetShapeFileLayerProjection();
LayerOverlay layerOverlay = NewOrExistingLayerOverlay(featureLayersGroupName);
layerOverlay.Layers.Add(featureLayerName, shapeFileFeaturLayer);
_mapControl.Refresh(layerOverlay);
Everything is working here as intended. When run the map displays all of the items in my shape file with the well character from my font file(49). If you notice we are using a special made font file, and when setting the new PointStyle we are giving it the CharacterIndex of the character we want displayed, in this case we are displaying the character associated with CharacterIndex 49.
new
PointStyle(geoFont, 49,
new
GeoSolidBrush(GeoColor.StandardColors.Black))
The CharacterIndex 49 is a special well character in our font file. Now the problem is every point in the shape file should have a different well character. I need to set the CharacterIndex for each item in the shape file layer. How can I do that?