adding comment that the reproject option is deprecated and getBoundsFromLayer is defined in deprecated.js, as suggested by @elemoine.
This commit is contained in:
@@ -136,7 +136,9 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
draw: function() {
|
draw: function() {
|
||||||
var drawn = OpenLayers.Tile.prototype.draw.apply(this, arguments);
|
var drawn = OpenLayers.Tile.prototype.draw.apply(this, arguments);
|
||||||
if (drawn) {
|
if (drawn) {
|
||||||
|
// The layer's reproject option is deprecated.
|
||||||
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) {
|
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) {
|
||||||
|
// getBoundsFromBaseLayer is defined in deprecated.js.
|
||||||
this.bounds = this.getBoundsFromBaseLayer(this.position);
|
this.bounds = this.getBoundsFromBaseLayer(this.position);
|
||||||
}
|
}
|
||||||
if (this.isLoading) {
|
if (this.isLoading) {
|
||||||
|
|||||||
Reference in New Issue
Block a user