<?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 Is it possible to have two popups in the map? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389395#M35937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;BR /&gt;In my application I have several layers with respective popup, which I can (en/dis)able from layerList widget. But, at same time I can (en/dis)able other popup (in a widget apart) for basemap layer. Here is when I want to make this, have two popups, in case the user clicks the layer, would appear these popups.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2016 01:52:52 GMT</pubDate>
    <dc:creator>RolandoFlorez</dc:creator>
    <dc:date>2016-12-30T01:52:52Z</dc:date>
    <item>
      <title>Is it possible to have two popups in the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389395#M35937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;BR /&gt;In my application I have several layers with respective popup, which I can (en/dis)able from layerList widget. But, at same time I can (en/dis)able other popup (in a widget apart) for basemap layer. Here is when I want to make this, have two popups, in case the user clicks the layer, would appear these popups.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 01:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389395#M35937</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-12-30T01:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have two popups in the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389396#M35938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;The JS API only allows one popup at a time, it is a singleton class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 02:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389396#M35938</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-30T02:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have two popups in the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389397#M35939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Is there an alternative to this? or is necessary decide which is going to show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 02:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389397#M35939</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-12-30T02:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have two popups in the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389398#M35940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Just to be sure. Are you wanting two popups on the map at the same time? If that is the case then no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 03:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389398#M35940</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-30T03:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have two popups in the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389399#M35941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, now I'm working in other alternative.&lt;BR /&gt;When I click the map, it will only appear a marker in the map (a graphic) and the information will be in the widget space.&lt;/P&gt;&lt;P&gt;But there is an inconvenience, if I enable the popups for other layers. So when I click the map, besides the marker, also appear the popup at same place. It's something like confusing. They mix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/293711_impr1.png" style="width: 620px; height: 154px;" /&gt;&lt;/P&gt;&lt;P&gt;Is there some relation between graphics and symbols? Why is happening this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jan 2017 02:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389399#M35941</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2017-01-01T02:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have two popups in the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389400#M35942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rolando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If this is some tool you are activating to add the marker to the map and then adding the info to the widget then you likely want to disable popups when your tool is chosen.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; disableWebMapPopup&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;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setInfoWindowOnClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; enableWebMapPopup&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;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setInfoWindowOnClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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>Sat, 11 Dec 2021 17:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389400#M35942</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T17:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have two popups in the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389401#M35943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;BR /&gt;That's not working like I want. Because, if I disable the infoWindow, the layer (that has enabled that popup) not listen that event. And the user will be confused. &lt;BR /&gt;So, is there some event listener to this? I want to know when the popup is enabled or disabled and when I disable that from checkbox widget the LayerList widget must know and the option 'disable popup' must change to 'enable popup' again like the begining. &lt;BR /&gt;Or also, when I enable a popup, the checkbox widget should change to disabled.&lt;/P&gt;&lt;P&gt;I think this problem can be solved by some of the above solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have this code:&lt;/P&gt;&lt;P&gt;if(this.map.infoWindow.isShowing){ //change to true if any popup is enabled&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.checkedFunction(false); //change the widget appearance&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.checkbox.set('checked', false); //uncheck checkbox&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.map.graphics.clear(); //erase the marker&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.map.setInfoWindowOnClick(false); //disable popup&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think? or What do you know about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jan 2017 20:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-two-popups-in-the-map/m-p/389401#M35943</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2017-01-01T20:14:52Z</dc:date>
    </item>
  </channel>
</rss>

