[OpenLayers-Users] Formula for calculating resolution?
Linda Rawson
linda.rawson at gmail.com
Wed Sep 26 00:05:25 EDT 2007
I have a legacy mapping system that I am trying to convert to openlayers.
MG. It is bad.
Anyway, I have the following dimensions of a 600 X 600 window.
var bounds = new OpenLayers.Bounds(-122.1655, 42.9507, -122.1077, 43.008);
I need the four lat/lon corners to be exactly these numbers at a certain
zoom level. What would I set as the resolution in the resolution array to
get this?
My resolution array is the following:
var layerResolutions = [0.703125,0.17578125,0.0439453125,0.0054931640625,
0.0006866455078125,0.000171661376953125,0.0000858306884765625,
0.00004291534423828125,0.000021457672119140625,0.000010728836059570312];
Thanks in advance,
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070925/703eaa50/attachment.html
More information about the Users
mailing list