Rename getTileZXY to getTile
This commit is contained in:
@@ -159,7 +159,7 @@ ol.renderer.canvas.TileLayer.prototype.renderFrame =
|
||||
for (x = tileRange.minX; x <= tileRange.maxX; ++x) {
|
||||
for (y = tileRange.minY; y <= tileRange.maxY; ++y) {
|
||||
|
||||
tile = tileSource.getTileZXY(z, x, y, tileGrid, projection);
|
||||
tile = tileSource.getTile(z, x, y, tileGrid, projection);
|
||||
tileState = tile.getState();
|
||||
if (tileState == ol.TileState.LOADED || tileState == ol.TileState.EMPTY) {
|
||||
tilesToDrawByZ[z][tile.tileCoord.toString()] = tile;
|
||||
|
||||
@@ -116,7 +116,7 @@ ol.renderer.dom.TileLayer.prototype.renderFrame =
|
||||
for (x = tileRange.minX; x <= tileRange.maxX; ++x) {
|
||||
for (y = tileRange.minY; y <= tileRange.maxY; ++y) {
|
||||
|
||||
tile = tileSource.getTileZXY(z, x, y, tileGrid, projection);
|
||||
tile = tileSource.getTile(z, x, y, tileGrid, projection);
|
||||
tileState = tile.getState();
|
||||
if (tileState == ol.TileState.LOADED) {
|
||||
tilesToDrawByZ[z][tile.tileCoord.toString()] = tile;
|
||||
|
||||
@@ -263,7 +263,7 @@ ol.renderer.Layer.prototype.updateUsedTiles =
|
||||
ol.renderer.Layer.prototype.createGetTileIfLoadedFunction =
|
||||
function(isLoadedFunction, tileSource, tileGrid, projection) {
|
||||
return function(z, x, y) {
|
||||
var tile = tileSource.getTileZXY(z, x, y, tileGrid, projection);
|
||||
var tile = tileSource.getTile(z, x, y, tileGrid, projection);
|
||||
return isLoadedFunction(tile) ? tile : null;
|
||||
};
|
||||
};
|
||||
@@ -315,7 +315,7 @@ ol.renderer.Layer.prototype.manageTilePyramid =
|
||||
for (x = tileRange.minX; x <= tileRange.maxX; ++x) {
|
||||
for (y = tileRange.minY; y <= tileRange.maxY; ++y) {
|
||||
if (ol.PREEMPTIVELY_LOAD_LOW_RESOLUTION_TILES || z == currentZ) {
|
||||
tile = tileSource.getTileZXY(z, x, y, tileGrid, projection);
|
||||
tile = tileSource.getTile(z, x, y, tileGrid, projection);
|
||||
if (tile.getState() == ol.TileState.IDLE) {
|
||||
tileCenter = tileGrid.getTileCoordCenter(tile.tileCoord);
|
||||
wantedTiles[tile.tileCoord.toString()] = true;
|
||||
|
||||
@@ -267,7 +267,7 @@ ol.renderer.webgl.TileLayer.prototype.renderFrame =
|
||||
for (x = tileRange.minX; x <= tileRange.maxX; ++x) {
|
||||
for (y = tileRange.minY; y <= tileRange.maxY; ++y) {
|
||||
|
||||
tile = tileSource.getTileZXY(z, x, y, tileGrid, projection);
|
||||
tile = tileSource.getTile(z, x, y, tileGrid, projection);
|
||||
tileState = tile.getState();
|
||||
if (tileState == ol.TileState.LOADED) {
|
||||
if (mapRenderer.isTileTextureLoaded(tile)) {
|
||||
|
||||
@@ -122,7 +122,7 @@ ol.source.DebugTileSource.prototype.expireCache = function(usedTiles) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.DebugTileSource.prototype.getTileZXY = function(z, x, y) {
|
||||
ol.source.DebugTileSource.prototype.getTile = function(z, x, y) {
|
||||
var tileCoordKey = ol.TileCoord.getKeyZXY(z, x, y);
|
||||
if (this.tileCache_.containsKey(tileCoordKey)) {
|
||||
return /** @type {!ol.DebugTile_} */ (this.tileCache_.get(tileCoordKey));
|
||||
|
||||
@@ -87,7 +87,7 @@ ol.source.ImageTileSource.prototype.expireCache = function(usedTiles) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.ImageTileSource.prototype.getTileZXY =
|
||||
ol.source.ImageTileSource.prototype.getTile =
|
||||
function(z, x, y, tileGrid, projection) {
|
||||
var tileCoordKey = ol.TileCoord.getKeyZXY(z, x, y);
|
||||
if (this.tileCache_.containsKey(tileCoordKey)) {
|
||||
|
||||
@@ -128,7 +128,7 @@ ol.source.TileSource.prototype.getResolutions = function() {
|
||||
* @param {ol.Projection=} opt_projection Projection.
|
||||
* @return {!ol.Tile} Tile.
|
||||
*/
|
||||
ol.source.TileSource.prototype.getTileZXY = goog.abstractMethod;
|
||||
ol.source.TileSource.prototype.getTile = goog.abstractMethod;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user