<?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: GraphicsLayer click event to obtain multiple graphics in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203326#M18886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you taken a look at this sample? It shows you how to initialize a drawing toolbar that's capable of selecting graphics within a user-defined extent (see the code's "findPointsinExtent" function)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/graphics_extent_query.html"&gt;https://developers.arcgis.com/javascript/jssamples/graphics_extent_query.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 01:01:45 GMT</pubDate>
    <dc:creator>KaitlynnDavis</dc:creator>
    <dc:date>2014-02-04T01:01:45Z</dc:date>
    <item>
      <title>GraphicsLayer click event to obtain multiple graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203325#M18885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added a click event to a GraphicsLayer that has graphics from X/Y locations unrelated to Feature Layers. However, I've noticed that it's only showing a single graphic at a time. I basically need to select multiple graphics within an extent. The QueryTask forces me to point to a URL of a Feature Layer. But I don't have a Feature Layer; I only have Graphics. What gives? How can I select multiple graphics from a single Graphicslayer when the user clicks on a map? Feel like I'm missing something simple here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 23:26:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203325#M18885</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2014-02-03T23:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer click event to obtain multiple graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203326#M18886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you taken a look at this sample? It shows you how to initialize a drawing toolbar that's capable of selecting graphics within a user-defined extent (see the code's "findPointsinExtent" function)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/graphics_extent_query.html"&gt;https://developers.arcgis.com/javascript/jssamples/graphics_extent_query.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 01:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203326#M18886</guid>
      <dc:creator>KaitlynnDavis</dc:creator>
      <dc:date>2014-02-04T01:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer click event to obtain multiple graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203327#M18887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. I saw that after I posted:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var results = [];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(map.graphics.graphics,function(graphic){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (extent.contains(graphic.geometry)) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(highlightSymbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; results.push(graphic.getContent());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //else if point was previously highlighted, reset its symbology&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (graphic.symbol == highlightSymbol) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(defaultSymbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only problem is that it loops through all of the graphics on the map. Could be slow as I may end up with thousands of graphics. But maybe the only possible solution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 11:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203327#M18887</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2014-02-04T11:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer click event to obtain multiple graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203328#M18888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's very quick with several dozen graphics, but I've never used this selection method for more than that, so I can't say if it will be ok with several thousand. Maybe you could look into implementing graduated symbols for your graphics? &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/renderer_graduated_polygon.html"&gt;https://developers.arcgis.com/javascript/jssamples/renderer_graduated_polygon.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 12:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203328#M18888</guid>
      <dc:creator>KaitlynnDavis</dc:creator>
      <dc:date>2014-02-04T12:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer click event to obtain multiple graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203329#M18889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've added a click event to a GraphicsLayer that has graphics from X/Y locations unrelated to Feature Layers. However, I've noticed that it's only showing a single graphic at a time. I basically need to select multiple graphics within an extent. The QueryTask forces me to point to a URL of a Feature Layer. But I don't have a Feature Layer; I only have Graphics. What gives? How can I select multiple graphics from a single Graphicslayer when the user clicks on a map? Feel like I'm missing something simple here.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at this one too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/graphics_multiple_layers.html"&gt;https://developers.arcgis.com/javascript/jssamples/graphics_multiple_layers.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 19:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-click-event-to-obtain-multiple/m-p/203329#M18889</guid>
      <dc:creator>BrandonIves</dc:creator>
      <dc:date>2014-02-06T19:14:23Z</dc:date>
    </item>
  </channel>
</rss>

