<?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: ArcGIS Online map popup fails to load in JSAPI v3.11 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-map-popup-fails-to-load-in-jsapi-v3/m-p/37025#M3076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to update the application that uses your web map with createMap? If so try setting the createMap usePopupManager constructor option to true and see if it resolves the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="nx"&gt;arcgisUtils&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;createMap&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;itemInfo&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s2" style="color: #dd1144;"&gt;"mapDiv"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="p"&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; &lt;SPAN class="nx"&gt;mapOptions&lt;/SPAN&gt;&lt;SPAN class="o" style="font-weight: bold;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="p"&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; &lt;SPAN class="nx"&gt;usePopupManager&lt;/SPAN&gt;&lt;SPAN class="o" style="font-weight: bold;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kc" style="font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="p"&gt;
&lt;/SPAN&gt;
&lt;SPAN class="p"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:26:08 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2021-12-10T21:26:08Z</dc:date>
    <item>
      <title>ArcGIS Online map popup fails to load in JSAPI v3.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-map-popup-fails-to-load-in-jsapi-v3/m-p/37024#M3075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a map I've created on ArcGIS Online, mashing up several map services. I've configured popups for several layers and sublayers. On the webmap, I have a map service called &lt;STRONG&gt;GIS Layers&lt;/STRONG&gt;, which has a layer called &lt;STRONG&gt;GPS Monuments&lt;/STRONG&gt;. &lt;STRONG&gt;GIS Layers&lt;/STRONG&gt; is turned on, but &lt;STRONG&gt;GPS Monuments&lt;/STRONG&gt; is turned off by default. I have a popup configured for &lt;STRONG&gt;GPS Monuments&lt;/STRONG&gt;, and when I turn on that layer in ArcGIS Online, the popup will show when the layer is visible. However, when I load the webmap through an application created with version 3.11 of the ArcGIS API for JavaScript, and I toggle the visibility of the &lt;STRONG&gt;GPS Monuments layer&lt;/STRONG&gt;, I don't get a popup for that layer. Stepping through the code, I found that if the &lt;STRONG&gt;GPS Monuments&lt;/STRONG&gt; layer is made visible, the feature layer that controls the popup is loaded by the arcgisUtils.createMap method. However, if the &lt;STRONG&gt;GPS Monuments&lt;/STRONG&gt; layer is turned off on the webmap, no feature layer is loaded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I could make visible all the layers that have popups configured for them, but it makes the webmap look messy. Any suggestions on how to handle this without hard-coding manual turn on/off of layers in the external JSAPI application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 23:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-map-popup-fails-to-load-in-jsapi-v3/m-p/37024#M3075</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2014-12-01T23:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online map popup fails to load in JSAPI v3.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-map-popup-fails-to-load-in-jsapi-v3/m-p/37025#M3076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to update the application that uses your web map with createMap? If so try setting the createMap usePopupManager constructor option to true and see if it resolves the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="nx"&gt;arcgisUtils&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;createMap&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;itemInfo&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s2" style="color: #dd1144;"&gt;"mapDiv"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="p"&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; &lt;SPAN class="nx"&gt;mapOptions&lt;/SPAN&gt;&lt;SPAN class="o" style="font-weight: bold;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="p"&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; &lt;SPAN class="nx"&gt;usePopupManager&lt;/SPAN&gt;&lt;SPAN class="o" style="font-weight: bold;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kc" style="font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="p"&gt;
&lt;/SPAN&gt;
&lt;SPAN class="p"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:26:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-map-popup-fails-to-load-in-jsapi-v3/m-p/37025#M3076</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-10T21:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online map popup fails to load in JSAPI v3.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-map-popup-fails-to-load-in-jsapi-v3/m-p/37026#M3077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that did the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 16:20:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-map-popup-fails-to-load-in-jsapi-v3/m-p/37026#M3077</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2014-12-02T16:20:07Z</dc:date>
    </item>
  </channel>
</rss>

