<?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 LayerView feature highlight is not disappering from view in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerview-feature-highlight-is-not-disappering/m-p/1669327#M87920</link>
    <description>&lt;P&gt;Hi, esri community!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I’m experiencing an issue with removing highlights from features. After selecting and highlighting a feature (or multiple features) using the &lt;STRONG&gt;Popup&lt;/STRONG&gt; or &lt;STRONG&gt;SketchViewModel&lt;/STRONG&gt; in one area of the map, I pan to a different location where the previously highlighted feature is no longer visible. When I highlight a new feature and call&amp;nbsp;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;highlightHandle&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;remove&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;on its highlight, the highlight does not disappear immediately — it only disappears after I zoom or pan the map again which is invoking rerender.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However, if I select and highlight a feature in an area where the previously highlighted feature is currently visible, the highlight is removed without any issues.&lt;BR /&gt;&lt;BR /&gt;I’m not sure if this is expected behavior or a rendering bug.&lt;BR /&gt;&lt;BR /&gt;Oh, and its also happens with &lt;STRONG&gt;Popup&lt;/STRONG&gt; highlight. After closing it - highlight stays visible.&lt;BR /&gt;&lt;BR /&gt;I have 7 feature layers, custom highlight options and store remove handlers in separate service.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    { name: "feature-selected", color: "green" },
    { name: "feature-highlighted", color: "orange" },
    { name: "default", color: "cyan" },
]&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;const layerView = await mapView.whenLayerView(mapLayer);
const highlightHandle = layerView.highlight(objectId, { name: "feature-highlighted" });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Dec 2025 13:23:00 GMT</pubDate>
    <dc:creator>IlliasAndgeron</dc:creator>
    <dc:date>2025-12-01T13:23:00Z</dc:date>
    <item>
      <title>LayerView feature highlight is not disappering from view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerview-feature-highlight-is-not-disappering/m-p/1669327#M87920</link>
      <description>&lt;P&gt;Hi, esri community!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I’m experiencing an issue with removing highlights from features. After selecting and highlighting a feature (or multiple features) using the &lt;STRONG&gt;Popup&lt;/STRONG&gt; or &lt;STRONG&gt;SketchViewModel&lt;/STRONG&gt; in one area of the map, I pan to a different location where the previously highlighted feature is no longer visible. When I highlight a new feature and call&amp;nbsp;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;highlightHandle&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;remove&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;on its highlight, the highlight does not disappear immediately — it only disappears after I zoom or pan the map again which is invoking rerender.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However, if I select and highlight a feature in an area where the previously highlighted feature is currently visible, the highlight is removed without any issues.&lt;BR /&gt;&lt;BR /&gt;I’m not sure if this is expected behavior or a rendering bug.&lt;BR /&gt;&lt;BR /&gt;Oh, and its also happens with &lt;STRONG&gt;Popup&lt;/STRONG&gt; highlight. After closing it - highlight stays visible.&lt;BR /&gt;&lt;BR /&gt;I have 7 feature layers, custom highlight options and store remove handlers in separate service.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    { name: "feature-selected", color: "green" },
    { name: "feature-highlighted", color: "orange" },
    { name: "default", color: "cyan" },
]&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;const layerView = await mapView.whenLayerView(mapLayer);
const highlightHandle = layerView.highlight(objectId, { name: "feature-highlighted" });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 13:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerview-feature-highlight-is-not-disappering/m-p/1669327#M87920</guid>
      <dc:creator>IlliasAndgeron</dc:creator>
      <dc:date>2025-12-01T13:23:00Z</dc:date>
    </item>
  </channel>
</rss>

