[OpenLayers-Users] minResolution

Greg Donald gdonald at gmail.com
Sat Nov 1 21:35:01 EDT 2008


How do I calculate a minResolution value?

I have this:

var options = {
  maxExtent: new OpenLayers.Bounds( 0, 0, 4246784, 4246784 ),
  restrictedExtent: new OpenLayers.Bounds( 0, 0, 4246784, 4246784 ),
  maxResolution: 4246784 / 256,
//  minResolution: 331798 / 256,
  numZoomLevels: 5,
};

var map = new OpenLayers.Map( 'map', options );

I need to make my highest zoom to be quite a bit more than a 1x1 grid.

Is minResolution what I should even use?


Here's some background on my use case:

http://www.nabble.com/Re%3A-new-user-questions-p20120047.html


Thanks,


-- 
Greg Donald
http://destiney.com/



More information about the Users mailing list