On Nov 20, 1:40 am, bratliff <[EMAIL PROTECTED]> wrote:
> On Nov 20, 12:17 am, Martin <[EMAIL PROTECTED]> wrote:
>
> > Hi again.
>
> > Can't you calculate 'swx' and 'ney' pixel points from your existing
> > center, width and height data?
>
> > Assuming that center is a GPoint object and that width and height are
> > integers.
>
> > var swx = center.x - (width / 2);
>
> > var ney = center.y - (height / 2);
>
> > Martin.
>
> Center is in Lat/Lon coordinates.
> Height is in pixels.
> Width is in pixels.
>
> The file:
>
>    www.polyarc.us/adjust.js
>
> contains conversion functions.

bratliff,

What about situations where we ask for a span from the Static API
(because we want to ensure that a certain area is visible)?  Then I
think we won’t know the zoom level z...
I want to draw some transparent shapes on the image (these shapes have
WGS84 data so I think as far as actually getting the map and this
"layer" (the word loosely used) to work together, they are
compatible), but I want to do that server-side, so no JavaScript,
hence only static api — unfortunately I can’t depend on the visiting
device's JS capabilities.

Thanks,

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