Rename ol.layer.VectorTileProperty to ol.layer.VectorTile.Property

This commit is contained in:
Frederic Junod
2016-10-13 11:43:40 +02:00
parent 80a6512d55
commit 189a7f1759
+11 -11
View File
@@ -7,15 +7,6 @@ goog.require('ol.layer.Vector');
goog.require('ol.obj'); goog.require('ol.obj');
/**
* @enum {string}
*/
ol.layer.VectorTileProperty = {
PRELOAD: 'preload',
USE_INTERIM_TILES_ON_ERROR: 'useInterimTilesOnError'
};
/** /**
* @classdesc * @classdesc
* Layer for vector tile data that is rendered client-side. * Layer for vector tile data that is rendered client-side.
@@ -64,7 +55,7 @@ ol.inherits(ol.layer.VectorTile, ol.layer.Vector);
* @api * @api
*/ */
ol.layer.VectorTile.prototype.getPreload = function() { 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() { ol.layer.VectorTile.prototype.getUseInterimTilesOnError = function() {
return /** @type {boolean} */ ( 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} * @enum {string}
* Render mode for vector tiles: * Render mode for vector tiles: