<?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 Hover pop up to not block underlying features from showing their pop up? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hover-pop-up-to-not-block-underlying-features-from/m-p/1212943#M78725</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First, let me say that I am NOT a pro developer, but wanted to see if this problem might have a solution. I'm developing a javascript web map and am including a hover-pop up function. However, I'm experiencing a "blocking" effect by the hovering pop up. This "blocking" effect of the pop up is preventing the pop up from appearing for underlying features.&lt;/P&gt;&lt;P&gt;I added this screenshot to help convey what I'm trying to explain with "blocking"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rice_GIS_0-1663251430828.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51311i89A62DC719D706DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rice_GIS_0-1663251430828.png" alt="Rice_GIS_0-1663251430828.png" /&gt;&lt;/span&gt;&amp;nbsp;The pop seems to block the pop up from opening the new pop up for the other feature behind it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code for the hover function is attached. Is there a way to add a code for the map to "listen" for features that might be underneath the pop up?&amp;nbsp; Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//Setup Hover Pop up
 function changeCursor(response) {
        if (response.results.length &amp;gt; 0) {
          document.getElementById("viewDiv").style.cursor = "pointer";
        } else {
          document.getElementById("viewDiv").style.cursor = "default";
        }
      }

      function getGraphics(response) {
        view.graphics.removeAll();
        if (response.results.length &amp;gt; 0) {
          var graphic = response.results[0].graphic;
          graphic.symbol = {
            type: "simple-fill",
            style: "none",
            outline: { // autocasts as new SimpleLineSymbol()
              color: "orange",
              width: 1
            }
          }
          view.graphics.add(graphic);
        }
      }

      function showPopup(response) {
        view.popup.close();
        if (response.results.length &amp;gt; 0) {
          view.popup.open({
            title:response.results[0].graphic.attributes.NAME + ' County',
            content: 'Number of Sensitive Species: ' + response.results[0].graphic.attributes.FREQUENCY,
            location: response.results[0].graphic.geometry.centroid
          });
        }
      }

      view.when(function () {
        view.whenLayerView(layer).then(function (lview) {
          watchUtils.whenFalseOnce(lview, "updating", function () {
            // Set up a click event handler and retrieve the screen x, y coordinates
            view.on("pointer-move", function (evt) {
              var screenPoint = {
                x: evt.x,
                y: evt.y
              };

              // the hitTest() checks to see if any graphics in the view
              // intersect the given screen x, y coordinates
              view.hitTest(screenPoint)
                .then(function (response) {
                  changeCursor(response);
                  getGraphics(response);
                  showPopup(response);
                });
            });
          });
        });
      });
		const legend = new Legend({ view: view });
        // Expand widget to expand and contract the legend widget
        const legendExpand = new Expand({
          expandTooltip: "Show Legend",
          expanded: false,
          view: view,
          content: legend,
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 14:32:12 GMT</pubDate>
    <dc:creator>Rice_GIS</dc:creator>
    <dc:date>2022-09-15T14:32:12Z</dc:date>
    <item>
      <title>Hover pop up to not block underlying features from showing their pop up?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hover-pop-up-to-not-block-underlying-features-from/m-p/1212943#M78725</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First, let me say that I am NOT a pro developer, but wanted to see if this problem might have a solution. I'm developing a javascript web map and am including a hover-pop up function. However, I'm experiencing a "blocking" effect by the hovering pop up. This "blocking" effect of the pop up is preventing the pop up from appearing for underlying features.&lt;/P&gt;&lt;P&gt;I added this screenshot to help convey what I'm trying to explain with "blocking"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rice_GIS_0-1663251430828.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51311i89A62DC719D706DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rice_GIS_0-1663251430828.png" alt="Rice_GIS_0-1663251430828.png" /&gt;&lt;/span&gt;&amp;nbsp;The pop seems to block the pop up from opening the new pop up for the other feature behind it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code for the hover function is attached. Is there a way to add a code for the map to "listen" for features that might be underneath the pop up?&amp;nbsp; Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//Setup Hover Pop up
 function changeCursor(response) {
        if (response.results.length &amp;gt; 0) {
          document.getElementById("viewDiv").style.cursor = "pointer";
        } else {
          document.getElementById("viewDiv").style.cursor = "default";
        }
      }

      function getGraphics(response) {
        view.graphics.removeAll();
        if (response.results.length &amp;gt; 0) {
          var graphic = response.results[0].graphic;
          graphic.symbol = {
            type: "simple-fill",
            style: "none",
            outline: { // autocasts as new SimpleLineSymbol()
              color: "orange",
              width: 1
            }
          }
          view.graphics.add(graphic);
        }
      }

      function showPopup(response) {
        view.popup.close();
        if (response.results.length &amp;gt; 0) {
          view.popup.open({
            title:response.results[0].graphic.attributes.NAME + ' County',
            content: 'Number of Sensitive Species: ' + response.results[0].graphic.attributes.FREQUENCY,
            location: response.results[0].graphic.geometry.centroid
          });
        }
      }

      view.when(function () {
        view.whenLayerView(layer).then(function (lview) {
          watchUtils.whenFalseOnce(lview, "updating", function () {
            // Set up a click event handler and retrieve the screen x, y coordinates
            view.on("pointer-move", function (evt) {
              var screenPoint = {
                x: evt.x,
                y: evt.y
              };

              // the hitTest() checks to see if any graphics in the view
              // intersect the given screen x, y coordinates
              view.hitTest(screenPoint)
                .then(function (response) {
                  changeCursor(response);
                  getGraphics(response);
                  showPopup(response);
                });
            });
          });
        });
      });
		const legend = new Legend({ view: view });
        // Expand widget to expand and contract the legend widget
        const legendExpand = new Expand({
          expandTooltip: "Show Legend",
          expanded: false,
          view: view,
          content: legend,
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 14:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hover-pop-up-to-not-block-underlying-features-from/m-p/1212943#M78725</guid>
      <dc:creator>Rice_GIS</dc:creator>
      <dc:date>2022-09-15T14:32:12Z</dc:date>
    </item>
  </channel>
</rss>

