<?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: Displaying multiple features in popup windows in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736101#M22146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply Rhett, wasn't exactly what I was looking for but it turned out to be easy enough to do anyway (to get multiple features in a single popup instance).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a small code snippet that might help for anyone else who's wondering about it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var popups:ArrayCollection = new ArrayCollection();
for each (var rsltObj:Object in allResults)
{
 var pr:PopUpRenderer = new PopUpRenderer();
 var gr:Graphic = (rsltObj as IdResult).graphic;
 pr.popUpInfo = configurePopUpInfo(...);
 pr.graphic = gr;
 popups.addItem(pr);
}
contentNavigator.dataProvider = popups;
map.infoWindow.content = contentNavigator;
...&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:22:44 GMT</pubDate>
    <dc:creator>NicholasRanicar</dc:creator>
    <dc:date>2021-12-12T07:22:44Z</dc:date>
    <item>
      <title>Displaying multiple features in popup windows</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736095#M22140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;does anyone know how to hook into the popup window functionality that's built into the Flex 3.0 API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The online documentation on popup configuration files (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/&lt;/A&gt;&lt;SPAN&gt;) states, "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;This pop-up functionality is built in to the API and is not a separate widget.&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, the "What's New" (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/What_s_new_in_ArcGIS_Viewer_3_0_for_Flex/01m300000011000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/What_s_new_in_ArcGIS_Viewer_3_0_for_Flex/01m300000011000000/&lt;/A&gt;&lt;SPAN&gt;) section states as one of the enhancements for the 3.0 pre-release, "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Pop-up windows contain multiple features&lt;/SPAN&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given that a lot of effort has gone into providing this functionality and a lot of effort can also be expended on setup of the popup config XML files, it would be great to be able to make use of this throughout the Flex Viewer application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that setting the value of map.infoWindowRenderersEnabled true/false effectively turns on/off this functionality for when a user clicks on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to programatically access this functionality???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I would like to be able to show a popup for all features found at the location of a graphic centerpoint when the user hovers the mouse over that graphic. I know I could configure my own infoWindowRenderers but this seems highly redundant if I've already defined the popup config for every layer in my map in the main configuration file and I would also have to find a way to implement the "multiple features in a popup" functionality myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nic&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 15:42:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736095#M22140</guid>
      <dc:creator>NicholasRanicar</dc:creator>
      <dc:date>2012-11-30T15:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying multiple features in popup windows</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736096#M22141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nic,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Currently there is now way exposed in the Flex API for programmatically firing a popup. Many developer before you have tried... Also the map can only display one InfoWidow at a time (ultimately PopUps use the maps info window to display and the map is limited to one info window at a time).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 16:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736096#M22141</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-11-30T16:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying multiple features in popup windows</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736097#M22142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Robert. Seems like a waste to do all that popup configuration and then not have it accessible. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nic,&lt;BR /&gt;Also the map can only display one InfoWidow at a time (ultimately PopUps use the maps info window to display and the map is limited to one info window at a time).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the above, I only want one infoWindow but the popups available through the API will display multiple features within a single infoWindow and allow you to scroll through them using the left/right arrows. See image below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19635[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 17:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736097#M22142</guid>
      <dc:creator>NicholasRanicar</dc:creator>
      <dc:date>2012-11-30T17:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying multiple features in popup windows</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736098#M22143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nic,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You do have access to it if you click on the map (as you know), just not programmatically. Having multiple graphics represented in one PopUp is done through the content navigator component in the API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 18:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736098#M22143</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-11-30T18:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying multiple features in popup windows</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736099#M22144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Robert, you're a wealth of information, as usual!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty sure I can get things figured out but if you know of any examples using the ContentNavigator in code that would be great. I found this posting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/67964-Multipage-InfoPopup?p=236692&amp;amp;viewfull=1#post236692"&gt;http://forums.arcgis.com/threads/67964-Multipage-InfoPopup?p=236692&amp;amp;viewfull=1#post236692&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;...but Bjorn readily admits that the API docs are lacking and the 2 examples given just show declarative MXML.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 19:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736099#M22144</guid>
      <dc:creator>NicholasRanicar</dc:creator>
      <dc:date>2012-11-30T19:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying multiple features in popup windows</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736100#M22145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't know if this could apply, but at the bottom of this post &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/57913-Popups-Viewer-3.0?highlight=popup+click+tolerance"&gt;http://forums.arcgis.com/threads/57913-Popups-Viewer-3.0?highlight=popup+click+tolerance&lt;/A&gt;&lt;SPAN&gt; it says the popup extent sent to the server is twice the line symbol width for dynamic layers (not sure how it handles points/polys).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what you exact data and/or needs are, but maybe have a duplicate layer loaded with alpha="0" and a a symbol width large enough to cover your graphic extent.&amp;nbsp; Point your popupconfig at the invisible layer with large symbols, disable the selection symbology and it would appear as if the popup is coming from the original data, not the invisible, overlapping set and would have the scroll arrows for all features that overlap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 21:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736100#M22145</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2012-11-30T21:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying multiple features in popup windows</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736101#M22146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply Rhett, wasn't exactly what I was looking for but it turned out to be easy enough to do anyway (to get multiple features in a single popup instance).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a small code snippet that might help for anyone else who's wondering about it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var popups:ArrayCollection = new ArrayCollection();
for each (var rsltObj:Object in allResults)
{
 var pr:PopUpRenderer = new PopUpRenderer();
 var gr:Graphic = (rsltObj as IdResult).graphic;
 pr.popUpInfo = configurePopUpInfo(...);
 pr.graphic = gr;
 popups.addItem(pr);
}
contentNavigator.dataProvider = popups;
map.infoWindow.content = contentNavigator;
...&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/displaying-multiple-features-in-popup-windows/m-p/736101#M22146</guid>
      <dc:creator>NicholasRanicar</dc:creator>
      <dc:date>2021-12-12T07:22:44Z</dc:date>
    </item>
  </channel>
</rss>

