Rename source.getKeyParams() to source.getKey()
This commit is contained in:
@@ -279,7 +279,7 @@ ol.source.TileImage.prototype.getTile = function(z, x, y, pixelRatio, projection
|
||||
ol.source.TileImage.prototype.getTileInternal = function(z, x, y, pixelRatio, projection) {
|
||||
var /** @type {ol.Tile} */ tile = null;
|
||||
var tileCoordKey = this.getKeyZXY(z, x, y);
|
||||
var paramsKey = this.getKeyParams();
|
||||
var paramsKey = this.getKey();
|
||||
if (!this.tileCache.containsKey(tileCoordKey)) {
|
||||
goog.asserts.assert(projection, 'argument projection is truthy');
|
||||
tile = this.createTile_(z, x, y, pixelRatio, projection, paramsKey);
|
||||
|
||||
@@ -144,12 +144,11 @@ ol.source.Tile.prototype.getGutter = function(projection) {
|
||||
|
||||
|
||||
/**
|
||||
* Return the "parameters" key, a string composed of the source's
|
||||
* parameters/dimensions.
|
||||
* @return {string} The parameters key.
|
||||
* Return the key to be used for all tiles in the source.
|
||||
* @return {string} The key for all tiles.
|
||||
* @protected
|
||||
*/
|
||||
ol.source.Tile.prototype.getKeyParams = function() {
|
||||
ol.source.Tile.prototype.getKey = function() {
|
||||
return this.key_;
|
||||
};
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ ol.source.TileWMS.prototype.getGutterInternal = function() {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.TileWMS.prototype.getKeyParams = function() {
|
||||
ol.source.TileWMS.prototype.getKey = function() {
|
||||
return this.paramsKey_;
|
||||
};
|
||||
|
||||
|
||||
@@ -216,7 +216,7 @@ ol.source.WMTS.prototype.getFormat = function() {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.WMTS.prototype.getKeyParams = function() {
|
||||
ol.source.WMTS.prototype.getKey = function() {
|
||||
return this.dimensionsKey_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user