<?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 MapImageLayer Click Highlight in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-click-highlight/m-p/1331742#M82287</link>
    <description>&lt;P&gt;&lt;SPAN&gt;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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The following is the general usage of featurelayer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.whenLayerView(feature).then(function (layerView) {
     highlight?.remove();
     highlight = layerView.highlight(id);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Sep 2023 08:07:47 GMT</pubDate>
    <dc:creator>Wade</dc:creator>
    <dc:date>2023-09-23T08:07:47Z</dc:date>
    <item>
      <title>MapImageLayer Click Highlight</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-click-highlight/m-p/1331742#M82287</link>
      <description>&lt;P&gt;&lt;SPAN&gt;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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The following is the general usage of featurelayer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.whenLayerView(feature).then(function (layerView) {
     highlight?.remove();
     highlight = layerView.highlight(id);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 08:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-click-highlight/m-p/1331742#M82287</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-09-23T08:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: MapImageLayer Click Highlight</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-click-highlight/m-p/1400734#M84121</link>
      <description>&lt;P&gt;The following hack worked for me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Tested in ArcGIS JS SDK 4.27.6

const map = new Map({ ... });
const view = new MapView({ ... });
const mapImageLayer = new MapImageLayer({ ... });

map.add(mapImageLayer);
await mapImageLayer.load();

// In TypeScript, be prepared to use `any` type from here onwards
const layerView = view.layerViews.find((lv) =&amp;gt; lw.layer.id === mapImageLayer.id);
layerView.highlight([ ... ]); // An array of Graphic object&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 06:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-click-highlight/m-p/1400734#M84121</guid>
      <dc:creator>WongChunKang</dc:creator>
      <dc:date>2024-03-26T06:11:05Z</dc:date>
    </item>
  </channel>
</rss>

