<?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"> <fx:Style source="default.css" /> <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}" left="12" top="20" /> </s:Application>
/* CSS file */ @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @namespace esri "http://www.esri.com/2008/ags"; s|global { fontFamily: Verdana; fontSize: 10; chromeColor: #333333; contentBackgroundColor: #333333; color: white; symbolColor: white; rollOverColor: #101010; selectionColor: #000000; focusColor: #FFD700; accentColor: white; textSelectedColor: white; textRollOverColor: white; contentBackgroundAlpha: 0.8; modalTransparencyColor: #777777; modalTransparencyBlur: 1; modalTransparency: 0.5; modalTransparencyDuration: 1000; } s|Application { backgroundColor: #ffffff; color: white; backgroundAlpha: 0.8; } mx|ToolTip{ color: white; backgroundColor: #333333; fontSize: 10; fontFamily: Verdana; }
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.