<?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: Get Graphic(s) at Click Location? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702591#M65377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did see that, but there are no parameters to pass in a query/geometry; so it looks like all that does is return &lt;STRONG&gt;all&lt;/STRONG&gt; graphics from a Graphics Layer rather than a subset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2019 12:48:29 GMT</pubDate>
    <dc:creator>TonyCollins</dc:creator>
    <dc:date>2019-05-15T12:48:29Z</dc:date>
    <item>
      <title>Get Graphic(s) at Click Location?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702589#M65375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a GraphicsLayer with say 3 graphics added to it that overlap is there a way from a click on the overlap area to return &lt;STRONG&gt;all&lt;/STRONG&gt; three graphics?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started with&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;view.hitTest(), but this only returns the topmost graphic, not all graphics under the click.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;BR /&gt;I then looked at layerView.queryFeatures() but the promise never occurs so I wonder if this does work with a Graphics Layer?&lt;BR /&gt;&lt;BR /&gt;So basically, using v4 is there a way to get all graphics from a single Graphics Layer that intersect a point (cliick).&lt;BR /&gt;&lt;BR /&gt;Many Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 11:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702589#M65375</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2019-05-15T11:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graphic(s) at Click Location?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702590#M65376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;A GraphicsLayer has a GraphicsLayerView and a queryGraphics method (not QueryFeatures).&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GraphicsLayerView.html#queryGraphics"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GraphicsLayerView.html#queryGraphics&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 12:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702590#M65376</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-15T12:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graphic(s) at Click Location?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702591#M65377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did see that, but there are no parameters to pass in a query/geometry; so it looks like all that does is return &lt;STRONG&gt;all&lt;/STRONG&gt; graphics from a Graphics Layer rather than a subset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 12:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702591#M65377</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2019-05-15T12:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graphic(s) at Click Location?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702592#M65378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... the only thing I could think of was using contains/intersects from the geometryEngine)against each graphic.geom, but it seems a but OTT.oes not offer the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find it a little odd that hitTest&amp;nbsp;only offers the top most &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 12:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702592#M65378</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2019-05-15T12:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graphic(s) at Click Location?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702593#M65379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now I remember. The recommendation from the team is to use a FeatureLayer from a graphics collection instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 13:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702593#M65379</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-15T13:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graphic(s) at Click Location?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702594#M65380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what you mean. Create a FeatureLayer from a graphics collection to then query?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 13:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702594#M65380</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2019-05-15T13:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graphic(s) at Click Location?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702595#M65381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes instead of using a GraphicsLayer, use a FeatureLayer and then you can use queryFeatures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 14:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702595#M65381</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-15T14:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graphic(s) at Click Location?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702596#M65382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh wow, OK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the SketchViewModel for the drawing/transformation part of the application. Seems like this is going to be a real pain to to flip back and forward from the GraphicsLayer to FeatureLayer just to allow selection of&amp;nbsp;overlapping graphics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 14:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-graphic-s-at-click-location/m-p/702596#M65382</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2019-05-15T14:47:50Z</dc:date>
    </item>
  </channel>
</rss>

