From b434c02e1de4e36e76f8f2fca303bc05b363eed5 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Mon, 24 Jan 2011 21:45:44 +0000 Subject: [PATCH] using new restricedMinZoom property to make Layer.Bing code much cleaner. r=bartvde (closes #3025) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11059 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Bing.js | 24 ++++++------------------ tests/Layer/Bing.html | 6 +++--- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/lib/OpenLayers/Layer/Bing.js b/lib/OpenLayers/Layer/Bing.js index f3d83ca821..73c6ee5b87 100644 --- a/lib/OpenLayers/Layer/Bing.js +++ b/lib/OpenLayers/Layer/Bing.js @@ -77,8 +77,7 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, { */ initialize: function(options) { options = OpenLayers.Util.applyDefaults({ - zoomOffset: 1, - maxResolution: 78271.51695, + restrictedMinZoom: 1, sphericalMercator: true }, options) var name = options.name || "Bing " + (options.type || this.type); @@ -124,20 +123,11 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, { for (var i=0; i