But would there be a way without actually using the api to calculate
what the map bounds would be at a given point?  I'm able to use the
Haversine formula to calculate the distance between two points. But
what I'm wanting to do with out using the api or map is calculate what
the map bounds "would be" at a given point at a certain zoom level.

Example:
I have a destination of  36.8924353032922  -100.5331420898437. I want
to calculate what the map bounds() would be on a map at zoom level 12
with on a setup at 750px by 450px with out using the map or api.

What I'm trying to do is create an external marker manager from an
external database. Being able to calculate what the map bounds" would
be" at a specific zoom level and map size would allow me to very
accurately group points that I have stored in a database according to
there location...

On May 13, 11:35 am, Rossko <[email protected]> wrote:
> > Is there a formula or method to calculate the distance east to west
> > and north to south of the map bounds at a given point?
>
> As you've already noted, distance depends on latitude.  So first
> figure out if you want the top, middle or bottom width of your bounds.
> Or work them all out and find the biggest or smallest.
>
> If you have bounds, you have the compenent lat/longs to define the two
> points you want to measure between.
> If you want to calculate yourself, use the Haversine formula.
> Or get the API to do it for 
> youhttp://code.google.com/apis/maps/documentation/reference.html#GLatLng...
>
> --
> 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 
> athttp://groups.google.com/group/google-maps-api?hl=en.

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