Set a default maxResolution. Theres' a couple reasons for this: caching of tile requests, aligning OpenLayers with Google Maps zoom levels, and saving an initial calculation that most people won't need. For the old behavior, add:

{maxResolution:null} 
to your OpenLayers.Map() call.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@618 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-19 18:29:42 +00:00
parent 35dc7ba8f0
commit 00d14534d2

View File

@@ -30,7 +30,8 @@ OpenLayers.Map.prototype = {
size: null,
// float
maxResolution: null, // degrees per pixel
maxResolution: 1.40625, // degrees per pixel
// Default is whole world in 256 pixels, from GMaps
// DOMElement: the div that our map lives in
div: null,