<?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 Re: How to toggle Popup functionality? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407352#M37537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for pushing, but maybe there's someone around, who haven't seen it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheerio,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 17:37:22 GMT</pubDate>
    <dc:creator>DominikSchlarmann</dc:creator>
    <dc:date>2013-10-25T17:37:22Z</dc:date>
    <item>
      <title>How to toggle Popup functionality?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407350#M37535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Schlomm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How it's possible to toggle the popup functionality? Ideally by pressing a button or using a checkbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My webapp contains an editor and the option to click on features to get further information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is: If the user wants to add new features by clicking on the map, the popup pops out and gives information about the underlying area, which has the defined popup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One example: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/84vvR/"&gt;http://jsfiddle.net/84vvR/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to implement a workaround with dojo.connect and a clickHandler or onClick like (button dojoType=�?�dijit.form.Button�?� onClick=�?�....(),...();�?�&amp;gt;Disable Popup Function&amp;lt;/button), but I haven't manged it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be awesome if there's somebody who can help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 14:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407350#M37535</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-10-19T14:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle Popup functionality?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407351#M37536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Until now I've used the workaround of creating another map without the editor option, but of course it would be much more cooler to have only one map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also would like to use some other fuctions like the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/toolbar_draw.html"&gt;Drawing toolbar&lt;/A&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/util_buffer.html"&gt;Buffering a point&lt;/A&gt;&lt;SPAN&gt; but all of these uses the onclick option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best perfect solution would be, to create some buttons, to enable/disable certain functionalities.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like a button for toggling Editor on/off, a button for toggling popup functionality on/off/, a button for drawing and a button for buffering a point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 16:46:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407351#M37536</guid>
      <dc:creator>DominikSchlarmann</dc:creator>
      <dc:date>2013-10-22T16:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle Popup functionality?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407352#M37537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for pushing, but maybe there's someone around, who haven't seen it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheerio,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 17:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407352#M37537</guid>
      <dc:creator>DominikSchlarmann</dc:creator>
      <dc:date>2013-10-25T17:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle Popup functionality?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407353#M37538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: manish_patel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Dominik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try to use the dojo.disconnect to disable the pop up window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var popupOnclickEventHandler;&amp;nbsp; //global variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use the below code to assign:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;popupOnclickEventHandler = dojo.connect(map,"click",functionname);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when you want to disable the event&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.disconnect(popupOnclickEventHandler);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and attach a new event as required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 17:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407353#M37538</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-10-25T17:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle Popup functionality?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407354#M37539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Manishkumar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer. Quite useful, but although my problem is the function part. In my case, I just use the popup functionality and not an identify method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a example ( &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/9kt2j/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsfiddle.net/9kt2j/&lt;/A&gt;&lt;SPAN&gt; ), which shows the problem really well. If you want to add new feature with enabled LandZones Layer, the feature won't add to the map, but you get an information popup (although a feature should be added).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that's not asking too much, you could probably edit the jsfiddle? Would be awesome to be able to toggle the popup functionality...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheerio,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code, which enables the popup is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var popup = Popup({
&amp;nbsp;&amp;nbsp;&amp;nbsp; titleInBody: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; isEditable: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; pagingControls: true
},domConstruct.create("div"));


var template = new PopupTemplate({
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Landzones",
&amp;nbsp;&amp;nbsp;&amp;nbsp; description: "&amp;lt;b&amp;gt;Zoning is the following: {ZONING_NAME} with the code {ZONING_CODE}",
&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldInfos: [{ //define field infos so we can specify an alias
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldName: "ZONING_NAME",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "ZONING NAME"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldName: "ZONING_CODE",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "ZONING CODE"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldName: "ZONING_TYPE",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "ZONING TYPE"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]
});

Landzones = new esri.layers.FeatureLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer/2",{
&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp; outFields: ["*"],
&amp;nbsp;&amp;nbsp; infoTemplate:template
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-popup-functionality/m-p/407354#M37539</guid>
      <dc:creator>DominikSchlarmann</dc:creator>
      <dc:date>2021-12-11T18:31:24Z</dc:date>
    </item>
  </channel>
</rss>

