<?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: Popup Bugs in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164042#M15248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 22:10:34 GMT</pubDate>
    <dc:creator>LloydBronn</dc:creator>
    <dc:date>2016-10-18T22:10:34Z</dc:date>
    <item>
      <title>Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164031#M15237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lately the popup is getting stuck. I'll click a feature and get a result. If I click anywhere else on the map, even on a different layer, I'll get the same result from the first click. If I toggle the layer on and off. this usually goes away. I also have the info template set to only show visible layers. When I first click a feature, it shows me results from every layer. Again, if I toggle layers on and off, this problem goes away.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone else having similar issues?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164031#M15237</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-17T14:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164032#M15238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lloyd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have not seen that issue. Check if you are getting an error in your browsers web console. Sounds like you are having an issue setting the popups content before you show the popup and the old content is left in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 22:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164032#M15238</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-17T22:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164033#M15239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are the errors from the console:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;init.js:448 dojo/parser::parse() error Error: Tried to register widget with id==dijit_layout_BorderContainer_0 but that id is already registered(…)(anonymous function) @ init.js:448&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;init.js:426 Uncaught Error: No region setting for layerList&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164033#M15239</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-18T14:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164034#M15240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lloyd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So if you correct that error then your popup issue will likely go away. I can not help dirrect you to the errors origin with seeing your code though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:46:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164034#M15240</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-18T14:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164035#M15241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;I tried to add a region setting to layerList, but it forced the TOC over to the side into a separate pane.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 19:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164035#M15241</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-18T19:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164036#M15242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lloyd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Try this (line 2):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;executeIdentifyTask&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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;clearFeatures&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapPoint&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>Sat, 11 Dec 2021 08:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164036#M15242</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T08:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164037#M15243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also have an error in your function arguments, with SimpleMarkerSymbol and SimpleLineSymbol in the wrong order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 19:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164037#M15243</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-10-18T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164038#M15244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fixed the order of the function arguments, but&amp;nbsp;&amp;nbsp;"map.infoWindow.clearFeatures();" didn't fix the bug. The first time I click on the map the popup shows all the layers, even with only one layer visible. When I toggle the layer on and off the popup only shows the visible layer.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 20:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164038#M15244</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-18T20:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164039#M15245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue is that even though the additional layers (First Day High Temp Below 32(F), etc) are not visible since their group layers are turned off, the layers are still marked as visible. If you put a breakpoint in the script to see the value of visArr on the first click, you'll get the result [0,1,2,4,5,6,8,9]. Note that layers 3 and 7 (the group layers) are not included. This is how the service is set up.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding this (line 2) in solved that problem&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; analysisLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;analysisURL&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
analysisLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setVisibleLayers&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&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;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164039#M15245</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T08:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164040#M15246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanks. That does help with the popup issue. But it also turns on all the visible layers&amp;nbsp;on when the map loads. I have the service set up to only have the topmost layer or group toggled on at first. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 20:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164040#M15246</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-18T20:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164041#M15247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not how it's showing up for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://jsbin.com/dukola/edit?html,output" title="http://jsbin.com/dukola/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your service is set up where the group layers (Temperature Firsts and Temperature Counts) are turned off but their sublayers are turned on: &lt;A class="link-titled" href="http://www.arcgis.com/home/webmap/viewer.html?url=http%3A%2F%2Fgis.mymetcon.com%2Farcgis%2Frest%2Fservices%2FDaily_Analysis_Features%2FMapServer&amp;amp;source=sd" title="http://www.arcgis.com/home/webmap/viewer.html?url=http%3A%2F%2Fgis.mymetcon.com%2Farcgis%2Frest%2Fservices%2FDaily_Analysis_Features%2FMapServer&amp;amp;source=sd"&gt;http://www.arcgis.com/home/webmap/viewer.html?url=http%3A%2F%2Fgis.mymetcon.com%2Farcgis%2Frest%2Fservices%2FDaily_Analy…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/247491_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 21:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164041#M15247</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-10-18T21:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Bugs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164042#M15248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-bugs/m-p/164042#M15248</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-18T22:10:34Z</dc:date>
    </item>
  </channel>
</rss>

