<?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: MapImageLayer hitTest in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1331753#M82290</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;&amp;nbsp;, MapImageLayer's work a little differently than the layers that support layer views, hit tests and highlighting.&amp;nbsp; For a replacement for highlighting with MapImageLayer I'd suggest creating a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html" target="_self"&gt;GraphicsLayer&lt;/A&gt; and adding it to the map.&amp;nbsp; Then with the feature returned from the Identify you can add a graphic to the GraphicsLayer.&amp;nbsp; You'll also need to set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html" target="_self"&gt;IdentifyParameters&lt;/A&gt; to return the geometry.&amp;nbsp; I wrote a quick codepen that shows how this can be done, by modifying our normal Identify sample to add a graphic.&amp;nbsp; I hope this helps, although MapImageLayers can draw faster, they do have trade offs compared to using FeatureLayers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/ExGQLGJ?editors=1010" target="_blank"&gt;https://codepen.io/sagewall/pen/ExGQLGJ?editors=1010&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Sep 2023 13:58:48 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2023-09-23T13:58:48Z</dc:date>
    <item>
      <title>MapImageLayer hitTest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1329444#M82234</link>
      <description>&lt;P&gt;MapImageLayer is faster but there seems to be no way to use hitTest.How to get the feature data of the layer when adding hitTest when using MapImageLayer?&amp;nbsp;Or just use Feature Layer for query?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 08:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1329444#M82234</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-09-18T08:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: MapImageLayer hitTest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1330088#M82245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;, with map image layers it's probably easier to use the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-identify.html" target="_self"&gt;identify&lt;/A&gt; class rather than hit test.&amp;nbsp; This is a &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/identify/" target="_self"&gt;sample&lt;/A&gt; that shows how to use the results from identify to create custom popups.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1330088#M82245</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-09-19T13:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: MapImageLayer hitTest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1331372#M82280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;,&amp;nbsp;thank you for your answer.I would like to ask, when using MapImageLayer, identify clicks on the feature, how can I make the data in MapImageLayer have a highlight display?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 08:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1331372#M82280</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-09-22T08:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: MapImageLayer hitTest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1331753#M82290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;&amp;nbsp;, MapImageLayer's work a little differently than the layers that support layer views, hit tests and highlighting.&amp;nbsp; For a replacement for highlighting with MapImageLayer I'd suggest creating a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html" target="_self"&gt;GraphicsLayer&lt;/A&gt; and adding it to the map.&amp;nbsp; Then with the feature returned from the Identify you can add a graphic to the GraphicsLayer.&amp;nbsp; You'll also need to set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html" target="_self"&gt;IdentifyParameters&lt;/A&gt; to return the geometry.&amp;nbsp; I wrote a quick codepen that shows how this can be done, by modifying our normal Identify sample to add a graphic.&amp;nbsp; I hope this helps, although MapImageLayers can draw faster, they do have trade offs compared to using FeatureLayers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/ExGQLGJ?editors=1010" target="_blank"&gt;https://codepen.io/sagewall/pen/ExGQLGJ?editors=1010&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 13:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1331753#M82290</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-09-23T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: MapImageLayer hitTest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1331849#M82295</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you so much&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 01:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/m-p/1331849#M82295</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-09-25T01:44:54Z</dc:date>
    </item>
  </channel>
</rss>

