From 189a7f1759ea8e2214b9d44d8640e05b6c8550cb Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 13 Oct 2016 11:43:40 +0200 Subject: [PATCH] Rename ol.layer.VectorTileProperty to ol.layer.VectorTile.Property --- src/ol/layer/vectortile.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ol/layer/vectortile.js b/src/ol/layer/vectortile.js index 8def31d2e5..18e9128fc4 100644 --- a/src/ol/layer/vectortile.js +++ b/src/ol/layer/vectortile.js @@ -7,15 +7,6 @@ goog.require('ol.layer.Vector'); goog.require('ol.obj'); -/** - * @enum {string} - */ -ol.layer.VectorTileProperty = { - PRELOAD: 'preload', - USE_INTERIM_TILES_ON_ERROR: 'useInterimTilesOnError' -}; - - /** * @classdesc * Layer for vector tile data that is rendered client-side. @@ -64,7 +55,7 @@ ol.inherits(ol.layer.VectorTile, ol.layer.Vector); * @api */ ol.layer.VectorTile.prototype.getPreload = function() { - return /** @type {number} */ (this.get(ol.layer.VectorTileProperty.PRELOAD)); + return /** @type {number} */ (this.get(ol.layer.VectorTile.Property.PRELOAD)); }; @@ -84,7 +75,7 @@ ol.layer.VectorTile.prototype.getRenderMode = function() { */ ol.layer.VectorTile.prototype.getUseInterimTilesOnError = function() { return /** @type {boolean} */ ( - this.get(ol.layer.VectorTileProperty.USE_INTERIM_TILES_ON_ERROR)); + this.get(ol.layer.VectorTile.Property.USE_INTERIM_TILES_ON_ERROR)); }; @@ -111,6 +102,15 @@ ol.layer.VectorTile.prototype.setUseInterimTilesOnError = function(useInterimTil }; +/** + * @enum {string} + */ +ol.layer.VectorTile.Property = { + PRELOAD: 'preload', + USE_INTERIM_TILES_ON_ERROR: 'useInterimTilesOnError' +}; + + /** * @enum {string} * Render mode for vector tiles: