<?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 How to highlight when when dealing with MapImageLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1200996#M78230</link>
    <description>&lt;P&gt;I have a feature class that I applied complex labelling rules. In order for those labelling rules to translate on a map, I had to publish the feature class as a MapImageLayer. I have search for the javascript equivalent labellingInfo setting but it seems that they do not existing yet in the 4.x JS library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, I am dealing with highlighting by creating individual graphics and added it either into a graphics layer or MapView.graphics. Is there a native way such as layerView.highlight() for MapImageLayer?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 18:54:54 GMT</pubDate>
    <dc:creator>gpei_ahuang</dc:creator>
    <dc:date>2022-08-09T18:54:54Z</dc:date>
    <item>
      <title>How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1200996#M78230</link>
      <description>&lt;P&gt;I have a feature class that I applied complex labelling rules. In order for those labelling rules to translate on a map, I had to publish the feature class as a MapImageLayer. I have search for the javascript equivalent labellingInfo setting but it seems that they do not existing yet in the 4.x JS library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, I am dealing with highlighting by creating individual graphics and added it either into a graphics layer or MapView.graphics. Is there a native way such as layerView.highlight() for MapImageLayer?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 18:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1200996#M78230</guid>
      <dc:creator>gpei_ahuang</dc:creator>
      <dc:date>2022-08-09T18:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1201293#M78242</link>
      <description>&lt;P&gt;Forgive me if I am misunderstanding - would you be looking to use the labellingInfo setting in the Sublayer class for a MapImageLayer?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 13:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1201293#M78242</guid>
      <dc:creator>LukeCalladine</dc:creator>
      <dc:date>2022-08-10T13:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1201304#M78243</link>
      <description>&lt;P&gt;Hi Luke&lt;/P&gt;&lt;P&gt;Thanks for writing back. Unfortunately, that is not what I am looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for highlighting methods similar to FeatureLayerView.highlight() but for LayerView create for MapImageLayer.&lt;/P&gt;&lt;P&gt;I have explored directly changing labellingInfo but it just does not have the same parameters that produces the same labelling results. That is why I am using MapImageLayer for my map to retain the labelling parameters I defined in ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1201304#M78243</guid>
      <dc:creator>gpei_ahuang</dc:creator>
      <dc:date>2022-08-10T14:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1201315#M78244</link>
      <description>&lt;P&gt;Ah okay, no worries - if it helps I think I handle my highlighting of MapImageLayers in a similar same way by managing the related Graphics - I would interested if there is a native way, but I doubt it...&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1201315#M78244</guid>
      <dc:creator>LukeCalladine</dc:creator>
      <dc:date>2022-08-10T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1201317#M78245</link>
      <description>&lt;P&gt;I was considering overlaying the same layer again just for the highlighting purpose. But with the amount of rendering involved, the map would be very inefficient.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1201317#M78245</guid>
      <dc:creator>gpei_ahuang</dc:creator>
      <dc:date>2022-08-10T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1220651#M78949</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/472565"&gt;@gpei_ahuang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you found a solution yet? I'm having the exact same question.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 12:44:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1220651#M78949</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2022-10-11T12:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1220690#M78956</link>
      <description>&lt;P&gt;There is still no solution specific to highlighting MapImageLayer. I don't think highlighting for MapImageLayer is part of the core function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up adding another the feature class layer from the MapImageLayer that I want highlight:&lt;/P&gt;&lt;P&gt;&amp;nbsp;- remove all the labels&lt;/P&gt;&lt;P&gt;&amp;nbsp;- redefine the rendering symbology&lt;/P&gt;&lt;P&gt;&amp;nbsp;- define definitionExpression to use as a filter or (layerView.filter if you offload processing on client side)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- visible: false to start and toggle on and off as needed to visualize highlight&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 13:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1220690#M78956</guid>
      <dc:creator>gpei_ahuang</dc:creator>
      <dc:date>2022-10-11T13:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1400735#M84122</link>
      <description>&lt;P&gt;The following hack worked for me&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;</description>
      <pubDate>Tue, 26 Mar 2024 06:11:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1400735#M84122</guid>
      <dc:creator>WongChunKang</dc:creator>
      <dc:date>2024-03-26T06:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight when when dealing with MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1579268#M86433</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/540786"&gt;@WongChunKang&lt;/a&gt;&amp;nbsp;for posting this snippet. This helped me a lot in 2D. Unfortunately in 3D I get an layerView with type="map-image-3d" which does not support highlight function. Any hints on that? Is this a bug or net yet implemented?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 20:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-highlight-when-when-dealing-with/m-p/1579268#M86433</guid>
      <dc:creator>AndreV</dc:creator>
      <dc:date>2025-01-27T20:52:46Z</dc:date>
    </item>
  </channel>
</rss>

