Hi all,
Please excuse the simple questions but still learning how to use the ArcGIS Pro 3.1 SDK.
I'm trying to render some points on a map which use a text label and custom 32x32 bitmap image to represent the marker (instead of a simple dot). I get the impression I need to use a specific renderer but can't work out which sort and am equally not sure I have used the correct feature class and/or feature layer (I'm still trying to learn the terminology!)
So I have created successfully created a GeoDatabase with the points I want to render. I have managed to get the points displaying on the map using some of the following code (sorry it's not complete otherwise there is too much!) but now need to get a text label and custom icon displayed:
// Create the feature class
ShapeDescription shapeDescription = new ShapeDescription(GeometryType.Point, SpatialReferences.WGS84);
FeatureClassDescription featureClassDescription = new FeatureClassDescription(featureClassName, fieldDescriptions, shapeDescription);
SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase);
schemaBuilder.Create(featureClassDescription);
if (schemaBuilder.Build())
{
FeatureClass featureClass = geodatabase.OpenDataset<FeatureClass>(featureClassName);
// Create the feature layer
var layerParams = new FeatureLayerCreationParams(featureClass);
var layer = LayerFactory.Instance.CreateLayer<FeatureLayer>(layerParams, map);
}
So how do I render the points using a custom bitmap graphic? Am I correct in using the Feature Class and Feature Layer like this?
I see that I can call "SetRenderer" on the feature layer but not sure how to create the appropriate renderer which will result in the text label and custom bitmap?