<?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"> <fx:Script> <![CDATA[ private function updateScaleBarPostion(leftValue:Number):void { var style:CSSStyleDeclaration = styleManager.getStyleDeclaration("com.esri.ags.components.ScaleBar"); style.setStyle("left", leftValue); } ]]> </fx:Script> <s:controlBarContent> <s:Button click="updateScaleBarPostion(200)" label="Move ScaleBar"/> <s:Button click="updateScaleBarPostion(5)" label="Reset ScaleBar"/> </s:controlBarContent> <esri:Map level="3"> <esri:ArcGISTiledMapServiceLayer/> </esri:Map> </s:Application>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.