<?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 Hide Popup/InfoWindow? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-popup-infowindow/m-p/443039#M40914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having trouble figuring out the proper way to disable popups when measuring. This issue has been discussed &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/53262/esri-javascript-api-how-to-hide-infowindow-while-using-measure-tool"&gt;here&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/48864/turn-popups-on-off-in-arcgis-online-webmap-via-javascript-api-web-application"&gt;here&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/60574-disable-hide-deactivate-identify-infowindow-while-measuring"&gt;and here&lt;/A&gt;&lt;SPAN&gt;. I've tried the suggested solutions but still can't get the popups to stop while I'm using the measurement widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My app is &lt;/SPAN&gt;&lt;A href="https://www.marioncountyfl.org/gisproduction/growthservicesbasic/growthservices.html"&gt;here&lt;/A&gt;&lt;SPAN&gt; if that might help get me pointed in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2013 17:16:51 GMT</pubDate>
    <dc:creator>CraigMcDade</dc:creator>
    <dc:date>2013-07-30T17:16:51Z</dc:date>
    <item>
      <title>How to Hide Popup/InfoWindow?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-popup-infowindow/m-p/443039#M40914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having trouble figuring out the proper way to disable popups when measuring. This issue has been discussed &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/53262/esri-javascript-api-how-to-hide-infowindow-while-using-measure-tool"&gt;here&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/48864/turn-popups-on-off-in-arcgis-online-webmap-via-javascript-api-web-application"&gt;here&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/60574-disable-hide-deactivate-identify-infowindow-while-measuring"&gt;and here&lt;/A&gt;&lt;SPAN&gt;. I've tried the suggested solutions but still can't get the popups to stop while I'm using the measurement widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My app is &lt;/SPAN&gt;&lt;A href="https://www.marioncountyfl.org/gisproduction/growthservicesbasic/growthservices.html"&gt;here&lt;/A&gt;&lt;SPAN&gt; if that might help get me pointed in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 17:16:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-popup-infowindow/m-p/443039#M40914</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2013-07-30T17:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Hide Popup/InfoWindow?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-popup-infowindow/m-p/443040#M40915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can disable/enable mouse events for graphic/feature layers using the enableMouseEvents and disableMouseEvents methods. Here are the functions I call when initiating map click, draw tool activation, etc to prevent graphic selection and popups; and when said events are complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The measure widget has the onMeasureEnd event which you could connect to enable mouse events; however there is no onMeasureStart event with which to disable mouse events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
mouseEvents: {
&amp;nbsp; enable: function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(app.map.graphicsLayerIds, function (layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map.getLayer(layer).enableMouseEvents()
&amp;nbsp;&amp;nbsp;&amp;nbsp; })
&amp;nbsp; },
&amp;nbsp; disable: function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(app.map.graphicsLayerIds, function (layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map.getLayer(layer).disableMouseEvents()
&amp;nbsp;&amp;nbsp;&amp;nbsp; })
&amp;nbsp; }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-popup-infowindow/m-p/443040#M40915</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2021-12-11T19:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Hide Popup/InfoWindow?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-popup-infowindow/m-p/443041#M40916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the changes in version 3.10 I had to refactor my code to disable popups while the measurement widget is active. Here is my approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) I have the measurement widget as a property of my app class.&amp;nbsp; I use aspect to run my function after the measurement widget setTool function is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

aspect.after(this.measurement,'setTool',lang.hitch(this, this._measurementDeconflict));

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) In my _measurementDeconflict function I check if any of the measurement tools are active and then disable or enable click events for the info window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;_measurementDeconflict: function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var blnActive = this.measurement.area.checked ||
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.measurement.distance.checked ||
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.measurement.location.checked) ? true:false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (blnActive){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.map.setInfoWindowOnClick(true);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.map.setInfoWindowOnClick(false);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}




&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-popup-infowindow/m-p/443041#M40916</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T19:49:16Z</dc:date>
    </item>
  </channel>
</rss>

