<?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 Disable Popup when Adding Geometry on Graphic Layer 3.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569523#M53111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to use map.setInfoWindowOnClick disable pop up window when drawing features, but it does not work. Sample like this one:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_point_clustering" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_point_clustering"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;, I open dev tool and use&amp;nbsp;map.setInfoWindowOnClick(false), but&amp;nbsp;the popup still can be show. Is there a way to disable the popup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yuki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jul 2017 18:36:39 GMT</pubDate>
    <dc:creator>YukiHuang</dc:creator>
    <dc:date>2017-07-24T18:36:39Z</dc:date>
    <item>
      <title>Disable Popup when Adding Geometry on Graphic Layer 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569523#M53111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to use map.setInfoWindowOnClick disable pop up window when drawing features, but it does not work. Sample like this one:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_point_clustering" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_point_clustering"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;, I open dev tool and use&amp;nbsp;map.setInfoWindowOnClick(false), but&amp;nbsp;the popup still can be show. Is there a way to disable the popup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yuki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 18:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569523#M53111</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-24T18:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Popup when Adding Geometry on Graphic Layer 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569524#M53112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add this to ur code, if that helps u, please mark this answer as a correct &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;clusterLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;on&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'click'&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;e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;infoWindow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&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="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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569524#M53112</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2021-12-12T00:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Popup when Adding Geometry on Graphic Layer 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569525#M53113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your solution is somehow correct, but the problem is that this would block the pop-up forever, should be a way like .off(event). BTW, the feature is still clickable, I really want to click action does not even click the feature. &amp;nbsp;Anyway, thanks a lot.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 16:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569525#M53113</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-25T16:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Popup when Adding Geometry on Graphic Layer 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569526#M53114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then , I didnt understand what u wanna do &amp;gt;.&amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 16:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569526#M53114</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2017-07-25T16:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Popup when Adding Geometry on Graphic Layer 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569527#M53115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I want to use Draw Tool to&amp;nbsp;create features on the map, but it turns out that if I cross any feature layers or other layers on the map, related popups will show which is really annoying. So I want to disable&amp;nbsp;the popups during the drawing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution is that use pop-up manager:&lt;/P&gt;&lt;P&gt;1. arcgisUtils.createMap(webMapId, "map", {mapOptions: mapOptions, usePopupManager: true}&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;map.setInfoWindowOnClick(false)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works out when the map is created via web map id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The remaining problem is that I need to implement the map that created by new Map().&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;P.S. The problem that I want to deal with is a little bit tricky &amp;nbsp;~_~&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 19:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569527#M53115</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-25T19:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Popup when Adding Geometry on Graphic Layer 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569528#M53116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When you add &lt;SPAN style="background-color: #ffffff;"&gt;map.setInfoWindowOnClick(false);&lt;/SPAN&gt; to line 74 of this sample it works fine:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=popup_chart" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=popup_chart"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=popup_chart&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you specifically need it to work with the cluster layer sample? If that is the case then you need to use&amp;nbsp;clusterLayer.disableMouseEvents(); and then re-enable them when done drawing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 19:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569528#M53116</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-07-25T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Popup when Adding Geometry on Graphic Layer 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569529#M53117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. Right now, only cluster layer, but I need to handle layers like feature layers, graphic layers, and KMLs. I have tried&amp;nbsp;some examples provided in documents. Besides the feature collection example, &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=fl_featureCollection" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=fl_featureCollection"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;,&amp;nbsp;which would show a light blue box of the feature, all others work perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it might be due to some quirk behaviors in my app...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 20:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569529#M53117</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-25T20:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Popup when Adding Geometry on Graphic Layer 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569530#M53118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;For clusterlayer specifically you need to use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;clusterLayer.disableMouseEvents();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;otherwise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;map.setInfoWindowOnClick(false);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;works fine.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 20:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-when-adding-geometry-on-graphic/m-p/569530#M53118</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-07-25T20:04:58Z</dc:date>
    </item>
  </channel>
</rss>

