<?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:mx="library://ns.adobe.com/flex/mx" xmlns:esri="http://www.esri.com/2008/ags" xmlns:navigation="com.esri.Navigation.*" pageTitle="Navigation Sample App" minWidth="955" minHeight="600"> <esri:Map id="myMap" zoomSliderVisible="false"> <esri:extent> <esri:Extent xmin="-5" ymin="25" xmax="20" ymax="70"> <esri:SpatialReference wkid="4326"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" /> </esri:Map> <navigation:NavigationWidget map="{myMap}" /> </s:Application>
<Navigation:Navigation id="navtool" alpha="{getStyle('contentBackgroundAlpha') / 2}" map="{_map}" rollOut="fadeOut.play([navtool])" rollOver="fadeOver.play([navtool])"/>
<Navigation:Navigation id="navtool" alpha="{getStyle('contentBackgroundAlpha')}" map="{_map}"/>
navtool.panItem = new NavToolItem(configXML.panbutton.@label || "Pan", configXML.panbutton.@icon, configXML.panbutton.@visible == 'true');
<panbutton visible="true" icon="com/esri/Navigation/assets/images/i_pan.png" />
</esri:Map> <navigation:NavigationWidget map="{map}" left="12" top="12" /> </s:Application>
Dear Sir, I solved the placement issue.the only problem which I am facing about skin and icon images of navigation control are not visible on the control.please guide me what can be the reason.Thanks.
<s:dataProvider> <s:ArrayCollection> <fx:Object action="pan" imageIcon="com/esri/Navigation/assets/images/i_pan.png" label="Pan"/> <fx:Object action="zoomin" imageIcon="com/esri/Navigation/assets/images/i_zoomin.png" label="Zoom In"/> <fx:Object action="zoomout" imageIcon="com/esri/Navigation/assets/images/i_zoomout.png" label="Zoom Out"/> </s:ArrayCollection> </s:dataProvider>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.