[OpenLayers-Users] Question about radius and bounds

Bas Wolvers bas.wolvers at movements.nl
Mon Feb 8 06:45:26 EST 2010


Hi

Im working on a openlayer - openstreet map implementation.

I was wondering can someone help me to set the closest zoomlevel when i have
a latlon and a radius in km.

For example i have a latlon :> 4.7500454  and  52.6316131
I want to center the map on this latlon and then zoom in to the closed
zoomlevel when i have a radius of 10km  (the map is always a square)

I was trying with bounds but i don't know how to subtract 10 km from the
latlon.


Thanks in advanced.

Bas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100208/ea26b43e/attachment.html


More information about the Users mailing list