From bf9628ea395afc4176080f5c81626d54f571f55f Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 20 Jun 2006 17:58:11 +0000 Subject: [PATCH] set G-Y-M layers' isBaseLayer() to true git-svn-id: http://svn.openlayers.org/trunk/openlayers@623 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 9 ++++++++- lib/OpenLayers/Layer/VirtualEarth.js | 7 +++++++ lib/OpenLayers/Layer/Yahoo.js | 7 +++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index f746905a0a..d4390dbe00 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -37,7 +37,14 @@ OpenLayers.Layer.Google.prototype = Object.extend( new OpenLayers.Layer(), { // once our layer has been added to the map, we can create the vemap this.map.events.register("addlayer", this, this.loadGMap); }, - + + /** Google layer is always a base class. + * @type Boolean + */ + isBaseLayer: function() { + return true; + }, + /** * @param {OpenLayers.Bounds} bounds * @param {int} zoomChanged diff --git a/lib/OpenLayers/Layer/VirtualEarth.js b/lib/OpenLayers/Layer/VirtualEarth.js index dc3c7189ec..60697730e1 100644 --- a/lib/OpenLayers/Layer/VirtualEarth.js +++ b/lib/OpenLayers/Layer/VirtualEarth.js @@ -36,6 +36,13 @@ OpenLayers.Layer.VirtualEarth.prototype = this.map.events.register("addlayer", this, this.loadVEMap); }, + /** Virtual Earth layer is always a base class. + * @type Boolean + */ + isBaseLayer: function() { + return true; + }, + /** * @param {OpenLayers.Bounds} bounds * @param {int} zoomChanged diff --git a/lib/OpenLayers/Layer/Yahoo.js b/lib/OpenLayers/Layer/Yahoo.js index c6c7406a6e..de86b037dc 100644 --- a/lib/OpenLayers/Layer/Yahoo.js +++ b/lib/OpenLayers/Layer/Yahoo.js @@ -37,6 +37,13 @@ OpenLayers.Layer.Yahoo.prototype = Object.extend( new OpenLayers.Layer(), { this.map.events.register("addlayer", this, this.loadYMap); }, + /** Yahoo layer is always a base class. + * @type Boolean + */ + isBaseLayer: function() { + return true; + }, + /** * @param {OpenLayers.Bounds} bounds * @param {int} zoomChanged