<?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>
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.