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:
@@ -30,7 +30,8 @@ OpenLayers.Map.prototype = {
|
|||||||
size: null,
|
size: null,
|
||||||
|
|
||||||
// float
|
// 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
|
// DOMElement: the div that our map lives in
|
||||||
div: null,
|
div: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user