<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to render points on a map with a text label and a custom bitmap image in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1285055#M9763</link>
    <description>&lt;P&gt;Ahh that's probably just what I'm looking for as we do need to have variants of the symbols based on data in the geo database.&amp;nbsp; Thanks so much.&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 06:28:30 GMT</pubDate>
    <dc:creator>ChrisNightingale</dc:creator>
    <dc:date>2023-05-03T06:28:30Z</dc:date>
    <item>
      <title>How to render points on a map with a text label and a custom bitmap image</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1284622#M9753</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hi all,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Please excuse the simple questions but still learning how to use the ArcGIS Pro 3.1 SDK.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;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!)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;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:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;// Create the feature class&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ShapeDescription shapeDescription = new ShapeDescription(GeometryType.Point, SpatialReferences.WGS84);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;FeatureClassDescription featureClassDescription = new FeatureClassDescription(featureClassName, fieldDescriptions, shapeDescription);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;schemaBuilder.Create(featureClassDescription);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;if (schemaBuilder.Build())&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; FeatureClass featureClass = geodatabase.OpenDataset&amp;lt;FeatureClass&amp;gt;(featureClassName);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; // Create the feature layer&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; var layerParams = new FeatureLayerCreationParams(featureClass);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; var layer = LayerFactory.Instance.CreateLayer&amp;lt;FeatureLayer&amp;gt;(layerParams, map);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So how do I render the points using a custom bitmap graphic?&amp;nbsp; Am I correct in using the Feature Class and Feature Layer like this?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;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?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 09:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1284622#M9753</guid>
      <dc:creator>ChrisNightingale</dc:creator>
      <dc:date>2023-05-02T09:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to render points on a map with a text label and a custom bitmap image</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1284681#M9757</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Look at the Esri ArcGIS Pro SDK community sample&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/Symbology" target="_self"&gt;Symbology&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;To create point symbol from picture you can use sample below:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;//The following file formats can be used to create the marker: DAE, 3DS, FLT, EMF, JPG, PNG, BMP, GIF
CIMMarker markerFromFile = await QueuedTask.Run(() =&amp;gt; SymbolFactory.Instance.ConstructMarkerFromFile(@"C:\Temp\fileName.dae"));

CIMPointSymbol pointSymbolFromFile = SymbolFactory.Instance.ConstructPointSymbol(markerFromFile);&lt;/LI-CODE&gt;&lt;P&gt;More info in API reference&amp;nbsp;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic4098.html" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic4098.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 13:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1284681#M9757</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-05-02T13:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to render points on a map with a text label and a custom bitmap image</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1284766#M9759</link>
      <description>&lt;P&gt;Not sure if you are aware of this, but you can do this with out-of-box ArcGIS Pro features.&amp;nbsp; &amp;nbsp;You can create your own symbols (from images) as described here:&amp;nbsp;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/indoors/create-or-modify-symbol-images.htm" target="_blank"&gt;Create or modify symbol images—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you can enable the 'Unique Values' renderer to display the images using an attribute in your shapefile or geodatabase.&amp;nbsp; To display any text (text from an attribute column) you can turn on labelling for that column.&amp;nbsp; &amp;nbsp;I used the community sample data: "Interacting with Maps.aprx" for the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1683042421040.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69660i27743D0A9809AA2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1683042421040.png" alt="Wolf_0-1683042421040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 15:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1284766#M9759</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-05-02T15:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to render points on a map with a text label and a custom bitmap image</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1285054#M9762</link>
      <description>&lt;P&gt;Many thanks - that's the sort of thing I'm looking for - just never sure where to start looking for this kinda of stuff!&lt;/P&gt;&lt;P&gt;I also ended up referring to the code in the `&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/CIMExamples/CreateCIMRendererFromScratch.cs" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/CIMExamples/CreateCIMRendererFromScratch.cs&lt;/A&gt;` file found in the example project found in `&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/CIMExamples" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/CIMExamples&lt;/A&gt;`&lt;/P&gt;&lt;P&gt;So now I have some of our bitmap files being displayed as markers - but now need to work out how to set the transparency colour of the marker to get rid of the background colour&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 09:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1285054#M9762</guid>
      <dc:creator>ChrisNightingale</dc:creator>
      <dc:date>2023-05-03T09:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to render points on a map with a text label and a custom bitmap image</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1285055#M9763</link>
      <description>&lt;P&gt;Ahh that's probably just what I'm looking for as we do need to have variants of the symbols based on data in the geo database.&amp;nbsp; Thanks so much.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 06:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-render-points-on-a-map-with-a-text-label/m-p/1285055#M9763</guid>
      <dc:creator>ChrisNightingale</dc:creator>
      <dc:date>2023-05-03T06:28:30Z</dc:date>
    </item>
  </channel>
</rss>

