[OpenLayers-Users] Formula for calculating resolution?

Erik Uzureau erik.uzureau at metacarta.com
Wed Sep 26 17:52:28 EDT 2007


you can maybe try setting maxResolution to "auto", that should do it?
erik

On 9/25/07, Linda Rawson <linda.rawson at gmail.com> wrote:
> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



More information about the Users mailing list