I simply am baffled by the Yahoo implementation of points to latlon. It seems that the X,Y coordinates match up when dragging an item to a target (specifically a map object), but when I use getXYToLatLon from the API, the latitude and longitude coordinates are not correctly converted. Is there I am missing here?
private function drop_onMap(e:DragEvent):void
var map:YahooMap = YahooMap(e.target.getChildAt(0));
var dropPoint:Point = new Point(map.mouseX, map.mouseY);
var dropLatLon:LatLon = map.getXYToLatLon(dropPoint);
var dropMarker:SimpleMarker = new SimpleMarker();
dropMarker.latlon = dropLatLon;
If anyone can explain to me why the latlon is not being correctly converted, so as to get the marker to correctly drop in the correct coordinates on the map, I would greatly appreciate it.