After posting my question, i did the same that you suggested , Mike, and worked like a charm. It was a basic trigonometry thing.
Marcelo, Mike, thank's a lot for your help! On 24 oct, 19:14, Mike Williams <[EMAIL PROTECTED]> wrote: > Convert both points from GLatLng to pixels with > map.fromLatLngToContainerPixel() > > Then use Pythagoras's Theorem on the .x and .y values > > var p1 = map.fromLatLngToContainerPixel(point1); > var p2 = map.fromLatLngToContainerPixel(point2); > > var Dsquared = (p1.x-p2.x)*(p1.x-p2.x) + (p1.y-p2.y)*(p1.y-p2.y); > var D = Math.sqrt(Dsquared); > > --http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
