On Mar 10, 9:36 am, magicrat <[email protected]> wrote:
>         --> So, how can I draw a line between that GLatLng and that
> GPoint???? Somehow I need to get the coordinate that is at X/Y pixels
> (that GPoint) from the original coordinate. How can I do that???

One method is to convert your GLatLng to a pixel location (use
map.fromLatLngToDivPixel) apply your coordinate shift and then convert
the result back to a GLatLng (map.fromDivPixelToLatLng)

http://code.google.com/apis/maps/documentation/reference.html#GMap2.fromLatLngToDivPixel

Don't forget that you will need to re-compute things when the zoom
level changes, because moving a marker 30px at zoom level 19 won't be
appropriate at zoom level 2.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to