i'm trying to receive the stage coordinates (x and y) of a mouse
clicked marker. currently, the only way that makes sense to me is to
call the markerOptions's icon location, but, of course, they are all
located at 0,0.
any ideas?
//Create Marker
private function createMarker(latitude:Number, longitude:Number,
markerOptions:MarkerOptions):Marker
{
var functionClosure:Function;
var resultMarker:Marker = new Marker(new LatLng(latitude, longitude),
markerOptions);
//Assign Mouse Event Listener To Marker
resultMarker.addEventListener(MapMouseEvent.CLICK,
function(evt:MapMouseEvent):void
{
//Reference Function For Event Listener Removal
functionClosure = arguments.callee;
//Event
trace(evt.currentTarget.getOptions().x,
evt.currentTarget.getOptions().y)
});
return resultMarker;
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en.