<?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 use defaultPopupTemplateEnabled but with custom template for one specific layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-defaultpopuptemplateenabled-but-with-custom/m-p/474501#M44019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a function that gets fields and values from a node service from a REST request. I put it in its own IdentifyTask and it works fine to create a popup.&amp;nbsp; (JSAPI 4.17)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also enabled&amp;nbsp;defaultPopupTemplateEnabled = true for my app.&amp;nbsp; I turned on popups for all layers in the webmap.&amp;nbsp; So the basic default popup works fine for all layers, (showing all fields) and the node popup works fine, each by themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objective: default popup for all layers; except one layer where I get data from a node service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update: I solved this by pushing the results to the popup array:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;view.popup.features.push(response1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....info from original post... which led me to this solution.....&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;Except the default popup for all the other layers gets replaced with the special Node identify's popup's 'content' for the popup template.&amp;nbsp; The parcels which I use the Node popup on, only appear when I zoom in to neighborhood scale. Once I do that, the Node popup shows up, but the defaultpopup gets killed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, the defaultPopup actually does show up at first.... I added breakpoints in F12 and I see that it opens just fine from a click on the View. For example if I turn Zoning on, shows all its fields fine. Or Wetlands, etc.&amp;nbsp; But... then the node IdentifyTask kicks in, and removes any and all Default popups, and then displays its own popup.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2020 20:04:14 GMT</pubDate>
    <dc:creator>KevinMacLeod3</dc:creator>
    <dc:date>2020-09-10T20:04:14Z</dc:date>
    <item>
      <title>use defaultPopupTemplateEnabled but with custom template for one specific layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-defaultpopuptemplateenabled-but-with-custom/m-p/474501#M44019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a function that gets fields and values from a node service from a REST request. I put it in its own IdentifyTask and it works fine to create a popup.&amp;nbsp; (JSAPI 4.17)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also enabled&amp;nbsp;defaultPopupTemplateEnabled = true for my app.&amp;nbsp; I turned on popups for all layers in the webmap.&amp;nbsp; So the basic default popup works fine for all layers, (showing all fields) and the node popup works fine, each by themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objective: default popup for all layers; except one layer where I get data from a node service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update: I solved this by pushing the results to the popup array:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;view.popup.features.push(response1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....info from original post... which led me to this solution.....&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;Except the default popup for all the other layers gets replaced with the special Node identify's popup's 'content' for the popup template.&amp;nbsp; The parcels which I use the Node popup on, only appear when I zoom in to neighborhood scale. Once I do that, the Node popup shows up, but the defaultpopup gets killed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, the defaultPopup actually does show up at first.... I added breakpoints in F12 and I see that it opens just fine from a click on the View. For example if I turn Zoning on, shows all its fields fine. Or Wetlands, etc.&amp;nbsp; But... then the node IdentifyTask kicks in, and removes any and all Default popups, and then displays its own popup.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 20:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-defaultpopuptemplateenabled-but-with-custom/m-p/474501#M44019</guid>
      <dc:creator>KevinMacLeod3</dc:creator>
      <dc:date>2020-09-10T20:04:14Z</dc:date>
    </item>
  </channel>
</rss>

