<?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 Add aditional information to a Symbol in a GraphicsOverlay in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/add-aditional-information-to-a-symbol-in-a/m-p/1177127#M11020</link>
    <description>&lt;P&gt;Dear all. I am new to developing with Arcgis, even a new to developing in GIS. I need to draw a symbol in a GraphicsOverlay with additional information like a ID and Name. I know that one way is to use a database, but, my question is, Is there a easier way to do it?&lt;/P&gt;&lt;P&gt;This is the code, and I want to add additional information to the new&amp;nbsp;symbolGraphic. And after, click on it a get the information.&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;// Create a graphic with the map point geometry.&lt;BR /&gt;MapPoint pointGeometry = new MapPoint(x: Longitude, y: Latitude, SpatialReferences.Wgs84);&lt;BR /&gt;// Create a simple marker symbol.&lt;BR /&gt;SimpleMarkerSymbol pointSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle.Diamond, Color.Red, _sizeicon);&lt;BR /&gt;// Create and assign a simple renderer to the graphics overlay.&lt;BR /&gt;_targets.Renderer = new SimpleRenderer(pointSymbol);&lt;BR /&gt;// Create the graphic&lt;BR /&gt;Graphic symbolGraphic = new Graphic(pointGeometry, pointSymbol);&lt;BR /&gt;// Add the graphic to the graphics overlay&lt;BR /&gt;_targets.Graphics.Add(symbolGraphic);&lt;BR /&gt;return true;&lt;BR /&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;return false;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 07:50:09 GMT</pubDate>
    <dc:creator>FranciscoLopez</dc:creator>
    <dc:date>2022-05-25T07:50:09Z</dc:date>
    <item>
      <title>Add aditional information to a Symbol in a GraphicsOverlay</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-aditional-information-to-a-symbol-in-a/m-p/1177127#M11020</link>
      <description>&lt;P&gt;Dear all. I am new to developing with Arcgis, even a new to developing in GIS. I need to draw a symbol in a GraphicsOverlay with additional information like a ID and Name. I know that one way is to use a database, but, my question is, Is there a easier way to do it?&lt;/P&gt;&lt;P&gt;This is the code, and I want to add additional information to the new&amp;nbsp;symbolGraphic. And after, click on it a get the information.&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;// Create a graphic with the map point geometry.&lt;BR /&gt;MapPoint pointGeometry = new MapPoint(x: Longitude, y: Latitude, SpatialReferences.Wgs84);&lt;BR /&gt;// Create a simple marker symbol.&lt;BR /&gt;SimpleMarkerSymbol pointSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle.Diamond, Color.Red, _sizeicon);&lt;BR /&gt;// Create and assign a simple renderer to the graphics overlay.&lt;BR /&gt;_targets.Renderer = new SimpleRenderer(pointSymbol);&lt;BR /&gt;// Create the graphic&lt;BR /&gt;Graphic symbolGraphic = new Graphic(pointGeometry, pointSymbol);&lt;BR /&gt;// Add the graphic to the graphics overlay&lt;BR /&gt;_targets.Graphics.Add(symbolGraphic);&lt;BR /&gt;return true;&lt;BR /&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;return false;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 07:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-aditional-information-to-a-symbol-in-a/m-p/1177127#M11020</guid>
      <dc:creator>FranciscoLopez</dc:creator>
      <dc:date>2022-05-25T07:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add aditional information to a Symbol in a GraphicsOverlay</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/add-aditional-information-to-a-symbol-in-a/m-p/1177144#M11021</link>
      <description>&lt;P&gt;I resolved it, I did not notice about the Attributes methot. Now It's working&lt;/P&gt;&lt;P&gt;Graphic symbolGraphic = new Graphic(pointGeometry, pointSymbol);&lt;/P&gt;&lt;P&gt;symbolGraphic.Attributes["ID"] = "01";&lt;BR /&gt;symbolGraphic.Attributes["NAME"] = "Target 1";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very easy.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 09:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/add-aditional-information-to-a-symbol-in-a/m-p/1177144#M11021</guid>
      <dc:creator>FranciscoLopez</dc:creator>
      <dc:date>2022-05-25T09:42:38Z</dc:date>
    </item>
  </channel>
</rss>

