Hello!!
I am having a problem using the distanceFrom()  function...I have two
points (their coordinates lat, lng)  and i want to compare their
distance with a standard distance in kilometres (integer).. my if
condition is the folowing

 if (point1.distanceFrom(point2) <= standard distance)
 {
        map.setCenter(point, 13);
        var marker = new google.maps.Marker(point);
        map.addOverlay(marker);

     }

however it's not working.. I suppose there is a problem with the
comparison ..Any ideas to make it work??

P.S : A link is not available, since this task is part of my
University thesis..


Thank's!!

--~--~---------~--~----~------------~-------~--~----~
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