Pass transformed tile coordinates to the tileUrlFunction
This commit is contained in:
@@ -37,12 +37,6 @@ ol.source.XYZ = function(options) {
|
||||
wrapX: goog.isDef(options.wrapX) ? options.wrapX : true
|
||||
});
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.TileCoordTransformType}
|
||||
*/
|
||||
this.tileCoordTransform_ = tileGrid.createTileCoordTransform();
|
||||
|
||||
if (goog.isDef(options.tileUrlFunction)) {
|
||||
this.setTileUrlFunction(options.tileUrlFunction);
|
||||
} else if (goog.isDef(options.urls)) {
|
||||
@@ -55,17 +49,6 @@ ol.source.XYZ = function(options) {
|
||||
goog.inherits(ol.source.XYZ, ol.source.TileImage);
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* @api
|
||||
*/
|
||||
ol.source.XYZ.prototype.setTileUrlFunction = function(tileUrlFunction) {
|
||||
goog.base(this, 'setTileUrlFunction',
|
||||
ol.TileUrlFunction.withTileCoordTransform(
|
||||
this.tileCoordTransform_, tileUrlFunction));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Set the URL to use for requests.
|
||||
* @param {string} url URL.
|
||||
|
||||
Reference in New Issue
Block a user