From 5b7227a0bf418937cb836e820a3ed0d1796e0054 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 8 Dec 2015 17:45:37 +0100 Subject: [PATCH] Mark olx.source.WMTSOptions#dimensions as not null --- externs/olx.js | 4 ++-- src/ol/source/wmtssource.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 7b0ae01895..1c99056954 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -5537,7 +5537,7 @@ olx.source.VectorOptions.prototype.wrapX; * version: (string|undefined), * format: (string|undefined), * matrixSet: string, - * dimensions: (Object|undefined), + * dimensions: (!Object|undefined), * url: (string|undefined), * maxZoom: (number|undefined), * tileLoadFunction: (ol.TileLoadFunctionType|undefined), @@ -5676,7 +5676,7 @@ olx.source.WMTSOptions.prototype.matrixSet; /** * Additional "dimensions" for tile requests. This is an object with properties * named like the advertised WMTS dimensions. - * @type {Object|undefined} + * @type {!Object|undefined} * @api stable */ olx.source.WMTSOptions.prototype.dimensions; diff --git a/src/ol/source/wmtssource.js b/src/ol/source/wmtssource.js index 1cbd44da1c..4e8231e08e 100644 --- a/src/ol/source/wmtssource.js +++ b/src/ol/source/wmtssource.js @@ -53,7 +53,7 @@ ol.source.WMTS = function(options) { /** * @private - * @type {Object} + * @type {!Object} */ this.dimensions_ = options.dimensions !== undefined ? options.dimensions : {}; @@ -197,7 +197,7 @@ goog.inherits(ol.source.WMTS, ol.source.TileImage); * Get the dimensions, i.e. those passed to the constructor through the * "dimensions" option, and possibly updated using the updateDimensions * method. - * @return {Object} Dimensions. + * @return {!Object} Dimensions. * @api */ ol.source.WMTS.prototype.getDimensions = function() {