Skip to content

Commit 4b0e45b

Browse files
committed
adding comment that the reproject option is deprecated and getBoundsFromLayer is defined in deprecated.js, as suggested by @elemoine.
1 parent 4d8cd08 commit 4b0e45b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/OpenLayers/Tile/Image.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
136136
draw: function() {
137137
var drawn = OpenLayers.Tile.prototype.draw.apply(this, arguments);
138138
if (drawn) {
139+
// The layer's reproject option is deprecated.
139140
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) {
141+
// getBoundsFromBaseLayer is defined in deprecated.js.
140142
this.bounds = this.getBoundsFromBaseLayer(this.position);
141143
}
142144
if (this.isLoading) {

0 commit comments

Comments
 (0)