<?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" pageTitle="World Imagery Map"> <fx:Script> <![CDATA[ import com.esri.ags.layers.ArcGISTiledMapServiceLayer; protected function button1_clickHandler(event:MouseEvent):void { var url:String = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"; var tiledMapLayer:ArcGISTiledMapServiceLayer = new ArcGISTiledMapServiceLayer( url); mymap.addLayer(tiledMapLayer ); } ]]> </fx:Script> <esri:Map id="mymap" wrapAround180="true"> <esri:WMSLayer id="amIaBug" visible="false" /> <!--<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>--> </esri:Map> <s:Button top="50" left="100" label="add Layer" click="button1_clickHandler(event)" /> </s:Application>
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.