If you know the centre anchor point of the overlay as lat/lon then you could
use the metresToLon function in the mapstraction file to work out what the
bounds of the overlay should be. The function takes two arguments metres and
latitude and returns the longitude delta that represents the metres distance
at the specified latitude.
If, for example, your overlay is a 1km square you can work out what 500m is
in degrees latitude by calling metresToLon(500, 0). Then you add and
subtract this value from the latitude of your overlay centre point to get
your top and bottom. Then you call metresToLon with those two latitude
values to get your longitude delta for the top and bottom.
On Thu, Feb 28, 2008 at 2:21 PM, Thom Shannon <thom at ts0.com> wrote:
> Hi there, this is more of a general geo question than specifically
> mapstraction.
>
> I''m using the google maps custom overlay to draw images onto maps,
but
> you have to enter lat/lon boundaries, I want to keep the image square
> regardless of where it is drawn. It doesnt need to be that accurate
> really.
>
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20080229/b814ddee/attachment.html