<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" initialize="application_initializeHandler(event)"> <fx:Script> <![CDATA[ import com.esri.ags.events.WebMapEvent; import mx.controls.Alert; import mx.events.FlexEvent; import com.esri.ags.Map; import mx.collections.ArrayCollection; protected function application_initializeHandler(event:FlexEvent):void { webMapUtil.createMapById("c39b222a78b84c11a8ef3fd532d6c4fb"); } protected function webMapUtil_createMapByIdCompleteHandler(event:WebMapEvent):void { var map:Map = event.map; mapContainer.addElement(map); } ]]> </fx:Script> <fx:Declarations> <esri:WebMapUtil id="webMapUtil" ignorePopUps="false" createMapByIdComplete="webMapUtil_createMapByIdCompleteHandler(event)" fault="Alert.show(event.fault.faultString);"/> </fx:Declarations> <s:Label top="10" fontSize="24" horizontalCenter="0" text="ArcGIS.com Web Map"/> <s:HGroup width="100%" height="100%" gap="0"> <s:Group id="mapContainer" width="100%" height="100%"/> </s:HGroup> </s:Application>
I created an image service and added this image service to a map in ArcGIS online. ... Shouldn't Flex honor the popups created in AGOL?
If I create an application in AGOL using that map, I can see the popups, but why not in Flex?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.