<?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 do I temporarily disable web map popup? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217645#M20209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a web application that uses a web map from ArcGIS Online that has popups defined. Is there a way to disable these popups temporarily (when the user is drawing geometry using the Draw toolbar)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the answer to my question here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/90208-Unable-to-toggle-webmap-popups" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/90208-Unable-to-toggle-webmap-popups&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Aug 2013 19:03:51 GMT</pubDate>
    <dc:creator>JeffJacobson</dc:creator>
    <dc:date>2013-08-15T19:03:51Z</dc:date>
    <item>
      <title>How do I temporarily disable web map popup?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217645#M20209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a web application that uses a web map from ArcGIS Online that has popups defined. Is there a way to disable these popups temporarily (when the user is drawing geometry using the Draw toolbar)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the answer to my question here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/90208-Unable-to-toggle-webmap-popups" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/90208-Unable-to-toggle-webmap-popups&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 19:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217645#M20209</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-08-15T19:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I temporarily disable web map popup?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217646#M20210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know about disabling the popups but you can always add some contingency code to hide the popups when you would want-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Add global boolean variable such as "var hidePopup = false;"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;At the start of when you'd like to not have popups show up, calc the variable to true: 'hidePopup = true;"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;when the process of hiding the popup is done, just calc the variable back to false&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Lastly, in your listener function for the features add some code such as:&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(theFeatureLayer, "onClick", function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (hidePopup) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.Hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc....
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217646#M20210</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-11T10:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I temporarily disable web map popup?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217647#M20211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I do not have a feature layer "click" event defined in my code. The popup is defined in an ArcGIS Online web map. In my code I call the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/namespace_esri.arcgis.utils-amd.html#createMap"&gt;arcgisUtils.createMap&lt;/A&gt;&lt;SPAN&gt; function and pass in the ID of the web map. This function creates the popups, so I don't have a "click" event handler in my code to modify.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 19:58:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217647#M20211</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-08-15T19:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I temporarily disable web map popup?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217648#M20212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, shoot, now I see the problem you have. I don't have any experience working with an imported webmap like you describe so hopefully someone else can chime in!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 20:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217648#M20212</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-08-15T20:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I temporarily disable web map popup?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217649#M20213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was curious so I did some searching in the forum. I found &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/79730-Turning-on-and-off-layers-on-a-Map?highlight=webmap+layer+popup"&gt;this thread&lt;/A&gt;&lt;SPAN&gt; which addresses another issue about webmap layers but I thought that it might be a way to "hook" into the layer you need to hide your popups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have that link to the layer,&amp;nbsp; maybe then you can follow the advice I originally gave? (I'm just grasping at some straws for ya :D)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 20:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217649#M20213</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-08-15T20:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I temporarily disable web map popup?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217650#M20214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the answer in &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/90208-Unable-to-toggle-webmap-popups" rel="nofollow" target="_blank"&gt;this thread&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 22:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217650#M20214</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-08-15T22:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I temporarily disable web map popup?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217651#M20215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hide the infoWindow when the edit toolbar is activated;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var infoWinCopy = map.infoWindow;
aspect.before(drawTool, "activate", function() {
[INDENT]map.infoWindow = null;[/INDENT]
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restore the infoWindow when drawing is completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;drawTool.on("drawEnd", function() {
[INDENT]map.infoWindow = infoWinCopy;[/INDENT]
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217651#M20215</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2021-12-11T10:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I temporarily disable web map popup?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217652#M20216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updated link to answer posted by Jeff:&amp;nbsp;&lt;A href="https://community.esri.com/message/339184?commentID=339184"&gt;https://community.esri.com/message/339184?commentID=339184&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 16:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-temporarily-disable-web-map-popup/m-p/217652#M20216</guid>
      <dc:creator>ChristinaMosnick</dc:creator>
      <dc:date>2018-01-05T16:17:42Z</dc:date>
    </item>
  </channel>
</rss>

