<esri:GraphicsLayer id="glDeviceLayer" symbol="{deviceMarker}"> <esri:Graphic id="glDevicePoints" click="pointClick(event)"> <esri:geometry> <esri:Multipoint id="multipoint" points="{mapPoints}" /> </esri:geometry> </esri:Graphic> </esri:GraphicsLayer>
the only solution I can think of is to not use a MultiPoint, but rather loop over my lat/long data and manually add individual MapPoints to the map so that they can each be clicked.
private function onMouseClick(event:mouseEvent):void{ var mygraphic:Graphic = event.currentTarget as Graphic; if (mygraphic){ var myMapPoint:Mappoint = Mappoint (mygraphic.geometry); var lat:number = myMapPoint.y; var lon:number = myMapPoint.x; }}
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.