http://brainbackup.net/google-maps/edge-of-circle.php?faux_lat=37.769664&faux_long=-122.466381&location_zoom=14&location_radius=2&user_lat=37.778499&user_long=-122.508558
I need the red line in this map to go to the _edge_ of the circle, not
the center. I have no idea how to calculate that point using gmapsv3.
Here are the steps I need to convert into a function.
1) calculate the distance from user_lat/user_long to faux_lat/
faux_long
2) subtract the location_radius (which is in miles) from the distance
3) figure out that point's coordinates
Can anyone help me with this? Here is what I have so far:
edgeOfCircle{
}
=) Thanks!
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=.