<?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="A tiled map service"> <fx:Script> <![CDATA[ import mx.events.FlexEvent; protected function map_creationCompleteHandler(event:FlexEvent):void { var i:int = 0; var x:int = map.numChildren; for (i; i < x; i++) { if ( getQualifiedClassName(map.getChildAt(i)) == "mx.core::UIComponent") { // if you extent the Map, you could make a mapRotate field to hold this value map.getChildAt(i).rotation = -54; // positioning could be tricky depending on amout rotated map.getChildAt(i).x -= 50; map.getChildAt(i).y = map.height/2; map.getChildAt(i).width = map.getChildAt(i).width * 2; map.getChildAt(i).height = map.getChildAt(i).height * 10; } } } ]]> </fx:Script> <s:Group width="800" height="500"> <esri:Map id="map" creationComplete="map_creationCompleteHandler(event)" > <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> </esri:Map> </s:Group> </s:Application>
<?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="A tiled map service" xmlns:mx="library://ns.adobe.com/flex/mx"> <s:layout> <s:VerticalLayout /> </s:layout> <s:BorderContainer borderColor="0x000000"> <s:Group id="grpMap" width="400" height="400"> <esri:Map id="map" logoVisible="false" scaleBarVisible="false" x="-389" y="337" rotation="-54" width="1000" height="1000"> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> </esri:Map> </s:Group> <s:Scroller horizontalScrollPolicy="off" verticalScrollPolicy="off" viewport="{grpMap}" /> </s:BorderContainer> <s:Group> <s:layout> <s:HorizontalLayout /> </s:layout> <esri:Navigation map="{map}" /> <esri:ScaleBar map="{map}" verticalCenter="0" /> </s:Group> </s:Application>
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.