protected function getLocation1_resultHandler(event:ResultEvent):void { if(event.result.information.rmk != "error") { filterXML = event.result as XML; var testPoint:MapPoint; var projParams:ProjectParameters = new ProjectParameters(); for each(table2 in filterXML.information) { testPoint = new MapPoint(table2.ax, table2.ay); var ptGraphic:Graphic = new Graphic(null, new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 5, 0x0000FF)); ptGraphic.geometry = testPoint; ptGraphic.addEventListener(MouseEvent.CLICK, onClick); myGraphicsLayer.add(ptGraphic); } } }
<esri:FeatureLayer id="featureLayer" clusterer="{clusterer}" definitionExpression="POP1990 > 75000" mode="snapshot" outFields="*" symbol="{defaultsym}" url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0">
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.