On 30 January 2012 17:41, fearless_fool <rdp...@gmail.com> wrote:
> I haven't found a straightforward way to construct a LatLngBounds given a
> center point and a radius.  The best approaches I've seen are described
> in http://www.movable-type.co.uk/scripts/latlong.html, but it seems odd that
> I'd need to put that much trig code in my own javascript code -- it ought to
> be a library function.

Geometry library
http://code.google.com/apis/maps/documentation/javascript/geometry.html#Distance

"Given a particular heading, an origin location, and the distance to
travel (in meters), you can calculate the destination coordinates
using computeOffset()."

You can construct a LatLngBounds by using four calls to computeOffset().

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to