<?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 Find graphic added programatically in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-graphic-added-programatically/m-p/659722#M61595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm adding a graphic(polygon) to the map and then&amp;nbsp;I query the layers within the extent of the graphic. In my interface, users can turn layers on and off. What I'm trying to do is re-run the queries when the user turns layers off or additional layers are turned on AFTER a graphic was already added. I'm thinking that if I find the graphic that was added and get its extent, then I can re-query the layers within that extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Mar 2017 21:38:10 GMT</pubDate>
    <dc:creator>MarioEstevez</dc:creator>
    <dc:date>2017-03-12T21:38:10Z</dc:date>
    <item>
      <title>Find graphic added programatically</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-graphic-added-programatically/m-p/659722#M61595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm adding a graphic(polygon) to the map and then&amp;nbsp;I query the layers within the extent of the graphic. In my interface, users can turn layers on and off. What I'm trying to do is re-run the queries when the user turns layers off or additional layers are turned on AFTER a graphic was already added. I'm thinking that if I find the graphic that was added and get its extent, then I can re-query the layers within that extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Mar 2017 21:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-graphic-added-programatically/m-p/659722#M61595</guid>
      <dc:creator>MarioEstevez</dc:creator>
      <dc:date>2017-03-12T21:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find graphic added programatically</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-graphic-added-programatically/m-p/659723#M61596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you add the graphic to the map do you add it to the map.graphics? If you add a GraphicsLayer and then add your graphic to that layer then you could just get the graphic from that layer knowing that it is the only graphic in that layer. If you just add it to the maps graphics then you can give the graphic an attribute before you add it then loop through the maps graphics and check for that attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 03:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-graphic-added-programatically/m-p/659723#M61596</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-13T03:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Find graphic added programatically</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-graphic-added-programatically/m-p/659724#M61597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Yes, I'm adding the graphic using the map.graphics.add method, sorry for not mentioning that.&lt;/P&gt;&lt;P&gt;Thanks so much for your help. I'll try looping through the map graphics as you suggest.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-graphic-added-programatically/m-p/659724#M61597</guid>
      <dc:creator>MarioEstevez</dc:creator>
      <dc:date>2017-03-13T17:47:39Z</dc:date>
    </item>
  </channel>
</rss>

