Convert KaMap and WorldWind to be isBaseLayers, and change FullExtent to MaxExtent.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@813 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-27 23:51:01 +00:00
parent 239a1cefa9
commit 162d05cb25
2 changed files with 8 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ OpenLayers.Layer.WorldWind.prototype =
},
addTile:function(bounds,position) {
var zoom = this.map.getZoom();
var extent = this.map.getFullExtent();
var extent = this.map.getMaxExtent();
zoom = zoom - Math.log(this.map.maxResolution / (this.lzd/512))/Math.log(2);
if (this.map.getResolution() <= (this.lzd/512) && zoom <= this.zoomLevels) {
var deg = this.lzd/Math.pow(2,zoom);
@@ -55,6 +55,9 @@ OpenLayers.Layer.WorldWind.prototype =
return tile;
}
},
isBaseLayer: function() {
return true;
},
/** @final @type String */
CLASS_NAME: "OpenLayers.Layer.WorldWind"
});