From 3ec2cb1e6aae04b59cdb4302385637bc25b47e54 Mon Sep 17 00:00:00 2001 From: Florent gravin Date: Wed, 28 Mar 2018 16:49:39 +0200 Subject: [PATCH] Remove olx.source.TileDebugOptions --- externs/olx.js | 24 ------------------------ src/ol/source/TileDebug.js | 10 +++++++++- 2 files changed, 9 insertions(+), 25 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 48a167b202..e8488049ec 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -483,30 +483,6 @@ olx.source.MapQuestOptions.prototype.tileLoadFunction; olx.source.MapQuestOptions.prototype.url; -/** - * @typedef {{projection: ol.ProjectionLike, - * tileGrid: (ol.tilegrid.TileGrid|undefined), - * wrapX: (boolean|undefined)}} - */ -olx.source.TileDebugOptions; - - -/** - * Projection. - * @type {ol.ProjectionLike} - * @api - */ -olx.source.TileDebugOptions.prototype.projection; - - -/** - * Tile grid. - * @type {ol.tilegrid.TileGrid|undefined} - * @api - */ -olx.source.TileDebugOptions.prototype.tileGrid; - - /** * @typedef {{attributions: (ol.AttributionLike|undefined), * cacheSize: (number|undefined), diff --git a/src/ol/source/TileDebug.js b/src/ol/source/TileDebug.js index 5860b67ed3..b6ac62b4b8 100644 --- a/src/ol/source/TileDebug.js +++ b/src/ol/source/TileDebug.js @@ -75,6 +75,14 @@ LabeledTile.prototype.getImage = function() { LabeledTile.prototype.load = function() {}; +/** + * @typedef {Object} Options + * @property {ol.ProjectionLike} projection Projection. + * @property {ol.tilegrid.TileGrid} [tileGrid] Tile grid. + * @property {boolean} [wrapX=true] Whether to wrap the world horizontally. + */ + + /** * @classdesc * A pseudo tile source, which does not fetch tiles from a server, but renders @@ -85,7 +93,7 @@ LabeledTile.prototype.load = function() {}; * * @constructor * @extends {ol.source.Tile} - * @param {olx.source.TileDebugOptions} options Debug tile options. + * @param {module:ol/source/TileDebug~Options=} options Debug tile options. * @api */ const TileDebug = function(options) {