Merge pull request #7991 from ahocevar/fix-type-paths
Fix some type paths
This commit is contained in:
@@ -28,7 +28,7 @@ import EventType from './events/EventType.js';
|
|||||||
* should be requested for the passed tile coordinate.
|
* should be requested for the passed tile coordinate.
|
||||||
*
|
*
|
||||||
* @typedef {function(module:ol/tilecoord~TileCoord, number,
|
* @typedef {function(module:ol/tilecoord~TileCoord, number,
|
||||||
* module:ol/proj/Projection~Projection): (string|undefined)} Type
|
* module:ol/proj/Projection~Projection): (string|undefined)} UrlFunction
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ const UTFGrid = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {!module:ol/tileurlfunction~Type}
|
* @type {!module:ol/Tile~UrlFunction}
|
||||||
*/
|
*/
|
||||||
this.tileUrlFunction_ = nullTileUrlFunction;
|
this.tileUrlFunction_ = nullTileUrlFunction;
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const UrlTile = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @protected
|
* @protected
|
||||||
* @type {module:ol/tileurlfunction~Type}
|
* @type {module:ol/Tile~UrlFunction}
|
||||||
*/
|
*/
|
||||||
this.tileUrlFunction = this.fixedTileUrlFunction ?
|
this.tileUrlFunction = this.fixedTileUrlFunction ?
|
||||||
this.fixedTileUrlFunction.bind(this) : nullTileUrlFunction;
|
this.fixedTileUrlFunction.bind(this) : nullTileUrlFunction;
|
||||||
@@ -73,7 +73,7 @@ inherits(UrlTile, TileSource);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {module:ol/tileurlfunction~Type|undefined}
|
* @type {module:ol/Tile~UrlFunction|undefined}
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
UrlTile.prototype.fixedTileUrlFunction;
|
UrlTile.prototype.fixedTileUrlFunction;
|
||||||
@@ -90,7 +90,7 @@ UrlTile.prototype.getTileLoadFunction = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the tile URL function of the source.
|
* Return the tile URL function of the source.
|
||||||
* @return {module:ol/tileurlfunction~Type} TileUrlFunction
|
* @return {module:ol/Tile~UrlFunction} TileUrlFunction
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
UrlTile.prototype.getTileUrlFunction = function() {
|
UrlTile.prototype.getTileUrlFunction = function() {
|
||||||
@@ -149,7 +149,7 @@ UrlTile.prototype.setTileLoadFunction = function(tileLoadFunction) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the tile URL function of the source.
|
* Set the tile URL function of the source.
|
||||||
* @param {module:ol/tileurlfunction~Type} tileUrlFunction Tile URL function.
|
* @param {module:ol/Tile~UrlFunction} tileUrlFunction Tile URL function.
|
||||||
* @param {string=} opt_key Optional new tile key for the source.
|
* @param {string=} opt_key Optional new tile key for the source.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ const WMTS = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} template Template.
|
* @param {string} template Template.
|
||||||
* @return {module:ol/tileurlfunction~Type} Tile URL function.
|
* @return {module:ol/Tile~UrlFunction} Tile URL function.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.createFromWMTSTemplate_ = function(template) {
|
this.createFromWMTSTemplate_ = function(template) {
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ const Zoomify = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} template Template.
|
* @param {string} template Template.
|
||||||
* @return {module:ol/tileurlfunction~Type} Tile URL function.
|
* @return {module:ol/Tile~UrlFunction} Tile URL function.
|
||||||
*/
|
*/
|
||||||
function createFromTemplate(template) {
|
function createFromTemplate(template) {
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {hash as tileCoordHash} from './tilecoord.js';
|
|||||||
/**
|
/**
|
||||||
* @param {string} template Template.
|
* @param {string} template Template.
|
||||||
* @param {module:ol/tilegrid/TileGrid~TileGrid} tileGrid Tile grid.
|
* @param {module:ol/tilegrid/TileGrid~TileGrid} tileGrid Tile grid.
|
||||||
* @return {module:ol/tileurlfunction~Type} Tile URL function.
|
* @return {module:ol/Tile~UrlFunction} Tile URL function.
|
||||||
*/
|
*/
|
||||||
export function createFromTemplate(template, tileGrid) {
|
export function createFromTemplate(template, tileGrid) {
|
||||||
const zRegEx = /\{z\}/g;
|
const zRegEx = /\{z\}/g;
|
||||||
@@ -49,7 +49,7 @@ export function createFromTemplate(template, tileGrid) {
|
|||||||
/**
|
/**
|
||||||
* @param {Array.<string>} templates Templates.
|
* @param {Array.<string>} templates Templates.
|
||||||
* @param {module:ol/tilegrid/TileGrid~TileGrid} tileGrid Tile grid.
|
* @param {module:ol/tilegrid/TileGrid~TileGrid} tileGrid Tile grid.
|
||||||
* @return {module:ol/tileurlfunction~Type} Tile URL function.
|
* @return {module:ol/Tile~UrlFunction} Tile URL function.
|
||||||
*/
|
*/
|
||||||
export function createFromTemplates(templates, tileGrid) {
|
export function createFromTemplates(templates, tileGrid) {
|
||||||
const len = templates.length;
|
const len = templates.length;
|
||||||
@@ -62,8 +62,8 @@ export function createFromTemplates(templates, tileGrid) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Array.<module:ol/tileurlfunction~Type>} tileUrlFunctions Tile URL Functions.
|
* @param {Array.<module:ol/Tile~UrlFunction>} tileUrlFunctions Tile URL Functions.
|
||||||
* @return {module:ol/tileurlfunction~Type} Tile URL function.
|
* @return {module:ol/Tile~UrlFunction} Tile URL function.
|
||||||
*/
|
*/
|
||||||
export function createFromTileUrlFunctions(tileUrlFunctions) {
|
export function createFromTileUrlFunctions(tileUrlFunctions) {
|
||||||
if (tileUrlFunctions.length === 1) {
|
if (tileUrlFunctions.length === 1) {
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ ol.SourceTileOptions;
|
|||||||
* tileGrid: (ol.tilegrid.TileGrid|undefined),
|
* tileGrid: (ol.tilegrid.TileGrid|undefined),
|
||||||
* tileLoadFunction: module:ol/Tile~LoadFunction,
|
* tileLoadFunction: module:ol/Tile~LoadFunction,
|
||||||
* tilePixelRatio: (number|undefined),
|
* tilePixelRatio: (number|undefined),
|
||||||
* tileUrlFunction: (module:ol/tileurlfunction~Type|undefined),
|
* tileUrlFunction: (module:ol/Tile~UrlFunction|undefined),
|
||||||
* url: (string|undefined),
|
* url: (string|undefined),
|
||||||
* urls: (Array.<string>|undefined),
|
* urls: (Array.<string>|undefined),
|
||||||
* wrapX: (boolean|undefined),
|
* wrapX: (boolean|undefined),
|
||||||
|
|||||||
Reference in New Issue
Block a user