<?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 map popupwindow events in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-popupwindow-events/m-p/427916#M39343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am developing an "Identify" widget that will display information about clicked features in the map. This widget is resizable and can be moved around in the map, and is supposed to be an alternative to the map.infoWindow&amp;nbsp;that is not resizable&amp;nbsp;and not&amp;nbsp;movable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When my widget is started the first time I set the default popup to not show:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.map.infoWindow.set(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"popupWindow"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then I set up the widget to listen to the "onSetFeatures" and "onClearFeatures" events of the map.popup window. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This works perfectly fine, but has several limitations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;The user now has to open the Identify widget before the map popups are turned off. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;When making the webmap, - if turning off the popups on all layers - the onSetFeatures and OnClearFeatures events won't fire&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I want to achieve is that I want to have my Identify widget working properly whether or not all popups are turned off in the webmap. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will this mean that I have to implement the widget in an other way that listening to the events from the popup window?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 08:45:11 GMT</pubDate>
    <dc:creator>ChristineFløysand1</dc:creator>
    <dc:date>2017-05-04T08:45:11Z</dc:date>
    <item>
      <title>map popupwindow events</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-popupwindow-events/m-p/427916#M39343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am developing an "Identify" widget that will display information about clicked features in the map. This widget is resizable and can be moved around in the map, and is supposed to be an alternative to the map.infoWindow&amp;nbsp;that is not resizable&amp;nbsp;and not&amp;nbsp;movable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When my widget is started the first time I set the default popup to not show:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.map.infoWindow.set(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"popupWindow"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then I set up the widget to listen to the "onSetFeatures" and "onClearFeatures" events of the map.popup window. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This works perfectly fine, but has several limitations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;The user now has to open the Identify widget before the map popups are turned off. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;When making the webmap, - if turning off the popups on all layers - the onSetFeatures and OnClearFeatures events won't fire&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I want to achieve is that I want to have my Identify widget working properly whether or not all popups are turned off in the webmap. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will this mean that I have to implement the widget in an other way that listening to the events from the popup window?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 08:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-popupwindow-events/m-p/427916#M39343</guid>
      <dc:creator>ChristineFløysand1</dc:creator>
      <dc:date>2017-05-04T08:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: map popupwindow events</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-popupwindow-events/m-p/427917#M39344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here is my input to your issues:&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;You need to set&amp;nbsp;&lt;SPAN style="color: #0000ff; background-color: #ffffff; border: 0px; font-size: small;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: small;"&gt;.map.infoWindow.set(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; background-color: #ffffff; border: 0px; font-size: small;"&gt;"popupWindow"&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff; border: 0px; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: small;"&gt;); &amp;nbsp;&lt;/SPAN&gt;in your apps code and not in your widgets code.&lt;/P&gt;&lt;P&gt;2. &amp;nbsp;Yes if you are going to disable all popups in the web map then there will be no popup events for your widget to use, so you will have to do an IdentifyTask or QueryTask on map click instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 12:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-popupwindow-events/m-p/427917#M39344</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-05-04T12:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: map popupwindow events</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-popupwindow-events/m-p/427918#M39345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. Attaching to the popup events went fast and was a neat solution, but I want my widget to be independent of whether the popups are disabled or not. So I will reimplement my widget to use QueryTask. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 07:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-popupwindow-events/m-p/427918#M39345</guid>
      <dc:creator>ChristineFløysand1</dc:creator>
      <dc:date>2017-05-05T07:50:36Z</dc:date>
    </item>
  </channel>
</rss>

