I've got a Flex UIComponent that contains a Map object, and was trying
to convert a given LatLng point on the map, at a certain zoom, to the
X and Y coordinates in the UIComponent.
I saw Map.fromLatLngToPoint() and thought it would do the trick, but
the numbers in the Point it was returning (for a LatLng I know to be
on my map, and using the current zoom level) were massive, and much
larger than the width and height of my map.
What is the X,Y coordinate it returns relative to (where is 0,0)?
Does anyone have a good way to do the conversion like I'm trying to do?