patch for #910 - removing extraneous moveTo() from tile/image.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -38,7 +38,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
|
||||
/** TBD 3.0 - reorder the parameters to the init function to remove
|
||||
* URL. the getUrl() function on the layer gets called on
|
||||
* each draw() and moveTo(), so no need to specify it here.
|
||||
* each draw(), so no need to specify it here.
|
||||
*
|
||||
* Constructor: OpenLayers.Tile.Image
|
||||
* Constructor for a new <OpenLayers.Tile.Image> instance.
|
||||
@@ -139,23 +139,6 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: moveTo
|
||||
* Reposition the tile.
|
||||
*
|
||||
* Parameters:
|
||||
* bounds - {<OpenLayers.Bounds>}
|
||||
* position - {<OpenLayers.Pixel>}
|
||||
* redraw - {Boolean} Call draw method on tile after moving? Default is true
|
||||
*/
|
||||
moveTo: function (bounds, position, redraw) {
|
||||
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) {
|
||||
bounds = this.getBoundsFromBaseLayer(position);
|
||||
}
|
||||
this.url = this.layer.getURL(bounds);
|
||||
OpenLayers.Tile.prototype.moveTo.apply(this, arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: initImgDiv
|
||||
* Creates the imgDiv property on the tile.
|
||||
|
||||
Reference in New Issue
Block a user