<?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 ImageryTileLayer popup not showing at higher zoom levels in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerytilelayer-popup-not-showing-at-higher-zoom/m-p/1563517#M86160</link>
    <description>&lt;P&gt;I have a hosted ImageTileLayer. Using ArcGIS js 4.27 I'd like to be able to show pixel values in a popup. I have popups&amp;nbsp; enabled on the layer and it loads into the map view. At the initial zoom level the popup works as expected. If I zoom in no popup is shown but that value is still retreived (logged in the console). If i zoom out, click to activate the popup and then zoom in the popup persists. Why might my popups not be opening at higher zoom levels?&lt;/P&gt;&lt;P&gt;Here's how the popups are handled:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; // Function to handle raster layer clicks
      function handleRasterLayerClick(event) {
        const point = view.toMap({ x: event.x, y: event.y });

        myImageryTileLayer
          .identify(point)
          .then((results) =&amp;gt; {
            if (results.value) {
              console.log("Popup value: ", results.value[0]);
              console.log("Identify Results:", results);
              view.openPopup({
                title: "Info",
                content: `&amp;lt;b&amp;gt;Value:&amp;lt;/b&amp;gt; ${results.value[0]}`,
                location: point,
              });
            } else {
              console.log("No value returned: resetting UI");
              resetUI();

            }
          })
          .catch((err) =&amp;gt; {
            console.error("Error identifying pixel data:", err);
          });
      }&lt;/LI-CODE&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;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; I figured this out. Before the view.on("click") event it was necessary to use view.popupEnabled = false;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a fiddle with working code.&lt;/P&gt;&lt;P&gt;&lt;A href="https://jsfiddle.net/Ojaybee/humj38qe/30/" target="_blank"&gt;https://jsfiddle.net/Ojaybee/humj38qe/30/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 17:10:31 GMT</pubDate>
    <dc:creator>Oliver_Burdekin</dc:creator>
    <dc:date>2024-12-02T17:10:31Z</dc:date>
    <item>
      <title>ImageryTileLayer popup not showing at higher zoom levels</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerytilelayer-popup-not-showing-at-higher-zoom/m-p/1563517#M86160</link>
      <description>&lt;P&gt;I have a hosted ImageTileLayer. Using ArcGIS js 4.27 I'd like to be able to show pixel values in a popup. I have popups&amp;nbsp; enabled on the layer and it loads into the map view. At the initial zoom level the popup works as expected. If I zoom in no popup is shown but that value is still retreived (logged in the console). If i zoom out, click to activate the popup and then zoom in the popup persists. Why might my popups not be opening at higher zoom levels?&lt;/P&gt;&lt;P&gt;Here's how the popups are handled:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; // Function to handle raster layer clicks
      function handleRasterLayerClick(event) {
        const point = view.toMap({ x: event.x, y: event.y });

        myImageryTileLayer
          .identify(point)
          .then((results) =&amp;gt; {
            if (results.value) {
              console.log("Popup value: ", results.value[0]);
              console.log("Identify Results:", results);
              view.openPopup({
                title: "Info",
                content: `&amp;lt;b&amp;gt;Value:&amp;lt;/b&amp;gt; ${results.value[0]}`,
                location: point,
              });
            } else {
              console.log("No value returned: resetting UI");
              resetUI();

            }
          })
          .catch((err) =&amp;gt; {
            console.error("Error identifying pixel data:", err);
          });
      }&lt;/LI-CODE&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;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; I figured this out. Before the view.on("click") event it was necessary to use view.popupEnabled = false;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a fiddle with working code.&lt;/P&gt;&lt;P&gt;&lt;A href="https://jsfiddle.net/Ojaybee/humj38qe/30/" target="_blank"&gt;https://jsfiddle.net/Ojaybee/humj38qe/30/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 17:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerytilelayer-popup-not-showing-at-higher-zoom/m-p/1563517#M86160</guid>
      <dc:creator>Oliver_Burdekin</dc:creator>
      <dc:date>2024-12-02T17:10:31Z</dc:date>
    </item>
  </channel>
</rss>

