protected function getLocation_resultHandler(event:ResultEvent):void { if(event.result.information.rmk != "error") { filterXML = event.result as XML; var data:Array = new Array(); for each(table1 in filterXML.information) { } var myGraphicPoint:Graphic = new Graphic(new MapPoint(table1.lng , table1.lat, new SpatialReference(3857))); myGraphicPoint.symbol = pictureMarker; myGraphicsLayer.add(myGraphicPoint); } }
for(var i:int=0;i<tempArray.length;i++) { var obj:Object=tempArray.getItemAt(i); var myGraphicPoint:Graphic = new Graphic(new MapPoint(obj.X , obj.Y, new SpatialReference(3857))); myGraphicPoint.symbol = pointSymbol; myGraphicsLayer.add(myGraphicPoint); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.