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:
@@ -66,7 +66,7 @@ OpenLayers.Layer.KaMap.prototype =
|
||||
|
||||
var viewSize = this.map.getSize();
|
||||
var bounds = this.map.getExtent();
|
||||
var extent = this.map.getFullExtent();
|
||||
var extent = this.map.getMaxExtent();
|
||||
var resolution = this.map.getResolution();
|
||||
var tilelon = resolution*this.tileSize.w;
|
||||
var tilelat = resolution*this.tileSize.h;
|
||||
@@ -118,6 +118,9 @@ OpenLayers.Layer.KaMap.prototype =
|
||||
} while(tileoffsetlat > bounds.bottom - tilelat)
|
||||
|
||||
},
|
||||
isBaseLayer: function() {
|
||||
return true;
|
||||
},
|
||||
/** @final @type String */
|
||||
CLASS_NAME: "OpenLayers.Layer.KaMap"
|
||||
});
|
||||
|
||||
@@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user