<?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: Dynamic Map Service Popup not working after updating url in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331360#M30615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ran, are you removing the previous layer that had the same ID?..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2018 21:29:28 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-08-16T21:29:28Z</dc:date>
    <item>
      <title>Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331359#M30614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dynamic map layer but for some reason once the widget update the variable "year_opSelect" which changes the url to a different map service, the popup stopped working. does anyone know why and how to fix it? Thanks so much!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;takeoutLayerFromMap: function (layer) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.inherited(arguments);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var layerToRemove = this.map.getLayer(layer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.map.removeLayer(layerToRemove);&lt;BR /&gt;},&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;if (this.map.getLayer("&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;hDynamicLayer&lt;/SPAN&gt;") !== undefined) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.&lt;SPAN&gt;takeoutLayerFromMap&lt;/SPAN&gt;("&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;hDynamicLayer&lt;/SPAN&gt;");&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var hYearUrlD = "&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/randomtestsite.org:6443/arcgis/rest/services/appLayers/Application_" rel="nofollow" target="_blank"&gt;https://randomtestsite.org:6443/arcgis/rest/services/appLayers/Application_&lt;/A&gt;&lt;SPAN&gt;" + year_opSelect + "/MapServer"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var &lt;SPAN&gt;hDynTemplate&lt;/SPAN&gt;= {};&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;hDynTemplate&lt;/SPAN&gt;[0] = { infoTemplate: templateX };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var hDynamicLayer = new ArcGISDynamicMapServiceLayer(hYearUrlD, {id: "hDynamicLayer", minScale: hDetailMinVal, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;imageformat: "png32", name: "h Application Details"});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hDynamicLayer.setVisibleLayers([dSelect]);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hDynamicLayer.setInfoTemplates(hDynTemplate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var hLayerDefinitions = [];&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hLayerDefinitions[dSelect] = hYear_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var hlayerDrawingOptions = [];&lt;BR /&gt;var layerDrawingOption = new LayerDrawingOptions();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layerDrawingOption.renderer = hRenderer;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hlayerDrawingOptions[dSelect] = layerDrawingOption;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hDynamicLayer.setLayerDrawingOptions(hlayerDrawingOptions);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hDynamicLayer.setLayerDefinitions(hLayerDefinitions);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.map.addLayer(hDynamicLayer);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 21:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331359#M30614</guid>
      <dc:creator>Ran_Deng</dc:creator>
      <dc:date>2018-08-16T21:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331360#M30615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ran, are you removing the previous layer that had the same ID?..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 21:29:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331360#M30615</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-16T21:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331361#M30616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have a function that takes out the layer at the beginning. but strangely the layer get added without any issue, just the pop up not won't show. but as soon as i switch back to the initial url. it works right the way. any idea? Thanks!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;takeoutLayerFromMap: function (layer) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.inherited(arguments);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var layerToRemove = this.map.getLayer(layer);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.map.removeLayer(layerToRemove);&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (this.map.getLayer("&lt;SPAN style="background-color: #ffffff;"&gt;hDynamicLayer&lt;/SPAN&gt;") !== undefined) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this.removeLayerFromMap("&lt;SPAN style="background-color: #ffffff;"&gt;hDynamicLayer&lt;/SPAN&gt;");&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 23:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331361#M30616</guid>
      <dc:creator>Ran_Deng</dc:creator>
      <dc:date>2018-08-16T23:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331362#M30617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Is it just a misspelling or why do you have&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;this.removeLayerFromMap("&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;hDynamicLayer&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;"); and your function is called&amp;nbsp;&lt;SPAN&gt;takeoutLayerFromMap?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 00:02:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331362#M30617</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-17T00:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331363#M30618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;good catch, it's the same function. I&amp;nbsp;copied and pasted but didn't copy the remove part and type in the wrong name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 00:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331363#M30618</guid>
      <dc:creator>Ran_Deng</dc:creator>
      <dc:date>2018-08-17T00:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331364#M30619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So&amp;nbsp;do each of your layers you are using have the same schema (meaning the same field names)? On each of the map services is it always going to be layer 1 that gets that infotemplate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 00:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331364#M30619</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-17T00:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331365#M30620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;yes, they do, same fields and it's always layer 0.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 00:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331365#M30620</guid>
      <dc:creator>Ran_Deng</dc:creator>
      <dc:date>2018-08-17T00:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331366#M30621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hmm. I don't see the issue. The field names have no variation at all right (cAsE of the names or anything)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 02:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331366#M30621</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-17T02:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Map Service Popup not working after updating url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331367#M30622</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;yes, that's what strange to me.&amp;nbsp;the layer services&amp;nbsp;have identical field names. (all lower case)&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 02:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-map-service-popup-not-working-after/m-p/331367#M30622</guid>
      <dc:creator>Ran_Deng</dc:creator>
      <dc:date>2018-08-17T02:31:28Z</dc:date>
    </item>
  </channel>
</rss>

