From 00d14534d2d52b1c32d1cb309c344e0dd20c91b7 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 19 Jun 2006 18:29:42 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index a05746275f..93d412da18 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -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,