On Sep 30, 2:32 pm, flow <[EMAIL PROTECTED]> wrote:
> Hi group,
>
> a static maps request contains the zoom level, center coordinates and
> size of the map.
>
> I would like to request an other map-Server with the same coordinates,
> but this Server (it's a WMS) excpects a coordinate boundinbox (left
> bottom and top right corners) instead of zoom level and center
> coordinates. Is it possible to find out this envelope or does anbody
> know how I can calculate the boundingbox exactly.
>
> Thanks in advance
>
> Florian
I have added a "BBox" function to:
www.polyarc.us/adjust.js
var whatever=BBox(X,Y,x,y,z);
X is HALF the width of the static map
Y is HALF the height of the static map
x is the Longitude of the static map center
y is the Latitude of the static map center
z is the zoom level
whatever is a two element array
whatever[0] is the lower left corner
whatever[0].x is its Longitude
whatever[0].y is its Latitude
whatever[1] is the upper right corner
whatever[1].x is its Longitude
whatever[1].y is its Latitude
The file:
www.polyarc.us/railroad
demonstrates its use. Unfortunately, the projections are slightly
different. ESPG:4326 is similar to Mercator but not identical. For
decent alignment, it may have to sliced into strips.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---