Merge pull request #8287 from fredj/rename_TileUTFGrid
Rename ol/source/TileUTFGrid to ol/source/UTFGrid
This commit is contained in:
@@ -20,9 +20,9 @@ export {default as TileArcGISRest} from './source/TileArcGISRest.js';
|
||||
export {default as TileDebug} from './source/TileDebug.js';
|
||||
export {default as TileImage} from './source/TileImage.js';
|
||||
export {default as TileJSON} from './source/TileJSON.js';
|
||||
export {default as TileUTFGrid} from './source/TileUTFGrid.js';
|
||||
export {default as TileWMS} from './source/TileWMS.js';
|
||||
export {default as UrlTile} from './source/UrlTile.js';
|
||||
export {default as UTFGrid} from './source/UTFGrid.js';
|
||||
export {default as Vector} from './source/Vector.js';
|
||||
export {default as WMTS} from './source/WMTS.js';
|
||||
export {default as XYZ} from './source/XYZ.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @module ol/source/TileUTFGrid
|
||||
* @module ol/source/UTFGrid
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import Tile from '../Tile.js';
|
||||
@@ -252,7 +252,7 @@ CustomTile.prototype.load = function() {
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {boolean} [preemptive=true]
|
||||
* If `true` the TileUTFGrid source loads the tiles based on their "visibility".
|
||||
* If `true` the UTFGrid source loads the tiles based on their "visibility".
|
||||
* This improves the speed of response, but increases traffic.
|
||||
* Note that if set to `false`, you need to pass `true` as `opt_request`
|
||||
* to the `forDataAtCoordinateAndResolution` method otherwise no data
|
||||
@@ -272,7 +272,7 @@ CustomTile.prototype.load = function() {
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/source/Tile}
|
||||
* @param {module:ol/source/TileUTFGrid~Options=} options Source options.
|
||||
* @param {module:ol/source/UTFGrid~Options=} options Source options.
|
||||
* @api
|
||||
*/
|
||||
const UTFGrid = function(options) {
|
||||
@@ -384,7 +384,7 @@ UTFGrid.prototype.forDataAtCoordinateAndResolution = function(
|
||||
if (this.tileGrid) {
|
||||
const tileCoord = this.tileGrid.getTileCoordForCoordAndResolution(
|
||||
coordinate, resolution);
|
||||
const tile = /** @type {!module:ol/source/TileUTFGrid~CustomTile} */(this.getTile(
|
||||
const tile = /** @type {!module:ol/source/UTFGrid~CustomTile} */(this.getTile(
|
||||
tileCoord[0], tileCoord[1], tileCoord[2], 1, this.getProjection()));
|
||||
tile.forDataAtCoordinate(coordinate, callback, null, opt_request);
|
||||
} else {
|
||||
Reference in New Issue
Block a user