<?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: programatically show popup for specific (invisible) layer? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023900#M14393</link>
    <description>&lt;P&gt;Thanks Robert! I think got it from here. Anyway the original question is answered.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 15:23:28 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2021-02-05T15:23:28Z</dc:date>
    <item>
      <title>programatically show popup for specific (invisible) layer?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023831#M14386</link>
      <description>&lt;P&gt;I've a custom widget where I have a context menu to the map. From one of the menu items I want to display information from a specific layer where the user clicked. I have the map point and can open the popup-window with&amp;nbsp;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&lt;SPAN&gt;this.map.infoWindow.show(clickedPoint);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But it just shows an empty popUp. I have the layer (but turned off) in my web map with configured popup. Is there some easy way to populate the infoWindow with my already configured PopUp for that layer?&lt;/P&gt;&lt;P&gt;Or do have to query the layer and populate the info-window from scratch with map.infoWindow.setContent or something like that? And could that mess up the ordinary PopUps somehow?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 11:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023831#M14386</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-02-05T11:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: programatically show popup for specific (invisible) layer?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023847#M14387</link>
      <description>&lt;P&gt;OK THANKS&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 13:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023847#M14387</guid>
      <dc:creator>LeninVladimirMoralesOñate</dc:creator>
      <dc:date>2021-02-05T13:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: programatically show popup for specific (invisible) layer?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023849#M14388</link>
      <description>&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You set the popups feature array before you show the popup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.map.infoWindow.setFeatures([your graphic object from your layer]);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 13:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023849#M14388</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-02-05T13:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: programatically show popup for specific (invisible) layer?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023870#M14391</link>
      <description>&lt;P&gt;Thanks Robert, turns out it wasn't that easy to get my layer after all. hade some problem with map.getLayer until I realized that the LayerId is some cryptic [myLayername]_XXX. However my layer isn't a featureLayer, it's a sublayer in a Map Image Layers. So I guess I have to make a query anyway to get a grafic object to put in setFeatures[], right?&lt;BR /&gt;But it seems I should be able to get the InfoTemplate from the map, that would help...&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 14:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023870#M14391</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-02-05T14:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: programatically show popup for specific (invisible) layer?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023874#M14392</link>
      <description>&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Yes a query to the server is how esri handles Map Image Layer sub layer popups currently. So you would need to do the same. To get the infoTemplate for this sub layer you would use the infoTemplates property of the layer&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html#infotemplates" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html#infotemplates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The graphic returned from the queryTask may not have the infoTemplate property set so you will have to set it before you send the graphic to the popup feature array.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 14:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023874#M14392</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-02-05T14:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: programatically show popup for specific (invisible) layer?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023900#M14393</link>
      <description>&lt;P&gt;Thanks Robert! I think got it from here. Anyway the original question is answered.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 15:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/programatically-show-popup-for-specific-invisible/m-p/1023900#M14393</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-02-05T15:23:28Z</dc:date>
    </item>
  </channel>
</rss>

