<?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: Highlight Popup Feature from Map Image Layer, JS API 4.9 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543871#M50654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A huge thank you! I've been trying to figure that out all day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2019 20:14:24 GMT</pubDate>
    <dc:creator>AshleyPeters</dc:creator>
    <dc:date>2019-07-29T20:14:24Z</dc:date>
    <item>
      <title>Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543863#M50646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. Mechanism of highlighting popup's selected feature from a query enabled map image layer? F&lt;SPAN&gt;ound the popup highlighting is enabled by default for feature layers, controlled by &lt;STRONG&gt;view.highlightOptions&lt;/STRONG&gt;. Is there a magical setting for map image layer then there is no need to have a workaround using graphics?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For the feature layer popup highlighting, where is that piece of blue highlighting graphic stored in JS? Initially, I thought it may be in &lt;STRONG&gt;view.graphics&lt;/STRONG&gt;, not there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side by side comparison:&lt;/P&gt;&lt;P&gt;Map Service,&amp;nbsp;popup and no highlighting:&amp;nbsp;&lt;A href="https://codepen.io/cle444/pen/OayzEb" title="https://codepen.io/cle444/pen/OayzEb"&gt;Highlight popup on MapImageLayer - ArcGIS JS API 4.9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feature Service, popup and highlighting in blue:&amp;nbsp;&lt;A href="https://codepen.io/cle444/pen/MzardP/" title="https://codepen.io/cle444/pen/MzardP/"&gt;Highlight popup on FeatureLayer - ArcGIS JS API 4.9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated if there is anyone with such experience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 02:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543863#M50646</guid>
      <dc:creator>cle444</dc:creator>
      <dc:date>2018-11-07T02:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543864#M50647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In the 3.x API when a ArcGISDynamicMapServiceLayer has infoTemplates defined, the API would query the map service when a click occurred to see if the click intersected a feature and would return the geometry from the intersected feature to the map popup to be used as the highlight geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This is not the case in 4.x. I am not sure the reason way but can speculate that it is overhead that the API developer did not want coded into the API and now leave to developer to add the graphic for the highlight in their own code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The API directly draws to the canvas&amp;nbsp;for this and not the default view.graphics (as far as I know).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 14:47:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543864#M50647</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-07T14:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543865#M50648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob. Have done another dig and found something that I think better put it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The highlight works for feature layers because of FeatureLayerView has a method &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight"&gt;&lt;STRONG&gt;highlight&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;E.g.&lt;STRONG&gt; const highlightFeature = featLyrView.highlight(feat.attributes["OBJECTID"]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To remove, use&amp;nbsp;&lt;STRONG&gt;highlightFeature.remove();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Still not&amp;nbsp;sure where that highlight graphic is stored, anyone can shed some light on this?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast, for map image layers, the corresponding&amp;nbsp;layer view has the declared class of "esri&lt;STRONG&gt;.views.2d.layers.MapImageLayerView2D&lt;/STRONG&gt;", which simply doesn't have this highlight method. This is probably the reason no auto highlight on image layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 22:42:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543865#M50648</guid>
      <dc:creator>cle444</dc:creator>
      <dc:date>2018-11-07T22:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543866#M50649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Still not&amp;nbsp;sure where that highlight graphic is stored, anyone can shed some light on this?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: 400; font-size: 14px;"&gt;The API directly draws to the canvas&amp;nbsp;for this and not the default view.graphics (as far as I know).&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:44:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543866#M50649</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-08T14:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543867#M50650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hear you Rob, but don't quite get it what canvas means. If API can draw the highlight and then dismiss it, does it mean the graphic is stored somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 09:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543867#M50650</guid>
      <dc:creator>cle444</dc:creator>
      <dc:date>2018-11-09T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543868#M50651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Canvas is:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.w3schools.com/html/html5_canvas.asp" title="https://www.w3schools.com/html/html5_canvas.asp"&gt;HTML5 Canvas&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the past esri used SVG to render all their layers in the browser but in modern HTML5 browsers there is the much more capable Canvas. You can see that there is no layer used for this graphic if you loop through all the maps layers using allLayers collection. I have not tracked it down yet but I beleive the highlight is drawn on the same canvas as the FeatureLayer.&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If API can draw the highlight and then dismiss it, does it mean the graphic is stored somewhere?&lt;/BLOCKQUOTE&gt;&lt;P&gt;When the FeatureLayerView executes highlight method the return of this method is a object that can be user to remove the highlight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543868#M50651</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-09T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543869#M50652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find a work around to highlight the popup's selected feature when using MapImageLayer? I'd like to do the same thing in 4.12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:53:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543869#M50652</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2019-07-29T18:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543870#M50653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is how to do it for a MapImageLayer (assuming the layer type is a polygon).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;        view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;watch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'selectedFeature'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gra&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gra&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeAll&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; h &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;highlightOptions&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            gra&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;symbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
              type&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"simple-fill"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// autocasts as new SimpleFillSymbol()&lt;/SPAN&gt;
              color&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;g&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;b&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fillOpacity&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
              outline&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                &lt;SPAN class="comment token"&gt;// autocasts as new SimpleLineSymbol()&lt;/SPAN&gt;
                color&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;g&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;b&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;a&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                width&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
              &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gra&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
          &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeAll&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
          &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        
        view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;watch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'visible'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;vis&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;vis&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeAll&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
          &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543870#M50653</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T23:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543871#M50654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A huge thank you! I've been trying to figure that out all day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 20:14:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543871#M50654</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2019-07-29T20:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543872#M50655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've implemented the code from above and it works beautifully on all of my MapImageLayers but one. From what I can tell the only difference is that this layer I want the user to turn on, so I've set the visibility to false. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543872#M50655</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2019-07-31T20:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543873#M50656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So are you saying that after it is turned on it will not popup with highlight?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543873#M50656</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-31T20:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543874#M50657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, once that layer is visible, the popup and the highlight do not work. But it's working on all of the other MapImageLayers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:33:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543874#M50657</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2019-07-31T20:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543875#M50658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code block for the layer that isn't working:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; artificialReefsLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MapImageLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
		url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"https://conservationgis.alabama.gov/adcnrweb/rest/services/ArtificialReefs/MapServer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
		sublayers&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
			&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
			popupTemplate&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
			title&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{Reef_Name}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
			content&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"The {Reef_Name} is an {Reef_Type} built in {Year}. It is constructed of {Material} and is located at a depth of {Depth} feet in the {Zone} zone at {GPS_Latitu}, {GPS_Longit} ({Latitude_D}, {Longitude}).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; From Perdido Pass, the reef is located {Distance_P} nautical miles offshore. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; From Sand Island Lighthouse, the reef is located {Distance_S} nautical miles offshore."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
			&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;			
		title&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Artificial Reefs"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
		&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
		
		artificialReefsLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code block for one of the layers that is working:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fwTrailsLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MapImageLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
		url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"https://conservationgis.alabama.gov/adcnrweb/rest/services/DCNRTrails/MapServer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
		sublayers&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
			&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
			popupTemplate&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
			title&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{TrailName}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
			content&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Trail Type: {TrailType}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Located On: {Tract}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Length (mi.): {Mileage}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
			definitionExpression&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SPorFW = 'FW'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
			&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;			
		title&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Forever Wild Trails"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
		&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
		
		fwTrailsLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;minScale &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;250000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

		&lt;SPAN class="comment token"&gt;// watch handler: the callback fires each time the scale of the view changes&lt;/SPAN&gt;
	&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; handle &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;watch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'scale'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;newScale&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Scale: "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; newScale&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;newScale &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;250000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        fwTrailsLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'hide'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        fwTrailsLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'show'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
	&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not seeing anything blatantly different between the two. Both are later added to the map as part of a group layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543875#M50658</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2021-12-11T23:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543876#M50659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That layer symbology is a Point. The code I provided is only for Polygons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543876#M50659</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-31T20:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543877#M50660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I did not catch that difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:47:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/543877#M50660</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2019-07-31T20:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Popup Feature from Map Image Layer, JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/1355882#M82992</link>
      <description>&lt;P&gt;You can control the highlight of the selected features using the popup.&lt;/P&gt;&lt;P&gt;For exemple, if you don't want imagery layers highlighted by the popup, you can do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;reactiveUtils.watch(() =&amp;gt; view.popup.selectedFeature, () =&amp;gt; {
    if (view.popup.selectedFeature &amp;amp;&amp;amp; view.popup.selectedFeature.layer.type === "imagery") {
        view.popup.highlightEnabled = false;
    } else {
        view.popup.highlightEnabled = true;
    }
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 19:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-popup-feature-from-map-image-layer-js/m-p/1355882#M82992</guid>
      <dc:creator>Nicolas_</dc:creator>
      <dc:date>2023-12-01T19:18:39Z</dc:date>
    </item>
  </channel>
</rss>

