<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:esri="http://www.esri.com/2008/ags" xmlns:flash="flash.text.*"> <!-- Start Declarations --> <esri:QueryTask id="queryTask" url="http://atlas/ArcGIS/rest/services/AdministrativeCongo/MapServer/1"/> <esri:Query id="query" geometry="{map.extent}" outFields="Sname" outSpatialReference="{map.spatialReference}" returnGeometry="true" /> <!-- End Declarations --> <mx:Text text="Using the textAttribute on the TextSymbol" width="100%"/> <esri:Map id="map" extentChange="queryTask.execute(query)"> <esri:extent> <esri:Extent xmin="-123.590" ymin="44.844" xmax="-121.832" ymax="46.024"> <esri:SpatialReference wkid="4326"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://atlas/ArcGIS/rest/services/AdministrativeCongo/MapServer"/> <esri:GraphicsLayer id="graphicsLayer" graphicProvider="{queryTask.executeLastResult.features}"> <esri:symbol> <esri:CompositeSymbol> <esri:SimpleMarkerSymbol color="0xFF0000" size="10" style="circle"/> <esri:TextSymbol textAttribute="Sname" placement="start" yoffset="10" color="0xFFFFFF" backgroundColor="0x0000FF"> <flash:TextFormat bold="true" size="16"/> </esri:TextSymbol> </esri:CompositeSymbol> </esri:symbol> </esri:GraphicsLayer> </esri:Map> </mx:Application>
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.