Autofix indentation issues (eslint --fix)
This commit is contained in:
@@ -107,7 +107,7 @@ ol.layer.Base.prototype.getLayerStatesArray = function(opt_states) {};
|
||||
*/
|
||||
ol.layer.Base.prototype.getExtent = function() {
|
||||
return /** @type {ol.Extent|undefined} */ (
|
||||
this.get(ol.layer.Property.EXTENT));
|
||||
this.get(ol.layer.Property.EXTENT));
|
||||
};
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ ol.layer.Base.prototype.getExtent = function() {
|
||||
*/
|
||||
ol.layer.Base.prototype.getMaxResolution = function() {
|
||||
return /** @type {number} */ (
|
||||
this.get(ol.layer.Property.MAX_RESOLUTION));
|
||||
this.get(ol.layer.Property.MAX_RESOLUTION));
|
||||
};
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ ol.layer.Base.prototype.getMaxResolution = function() {
|
||||
*/
|
||||
ol.layer.Base.prototype.getMinResolution = function() {
|
||||
return /** @type {number} */ (
|
||||
this.get(ol.layer.Property.MIN_RESOLUTION));
|
||||
this.get(ol.layer.Property.MIN_RESOLUTION));
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ ol.layer.Heatmap = function(opt_options) {
|
||||
this.handleGradientChanged_, this);
|
||||
|
||||
this.setGradient(options.gradient ?
|
||||
options.gradient : ol.layer.Heatmap.DEFAULT_GRADIENT);
|
||||
options.gradient : ol.layer.Heatmap.DEFAULT_GRADIENT);
|
||||
|
||||
this.setBlur(options.blur !== undefined ? options.blur : 15);
|
||||
|
||||
@@ -190,7 +190,7 @@ ol.layer.Heatmap.prototype.getBlur = function() {
|
||||
*/
|
||||
ol.layer.Heatmap.prototype.getGradient = function() {
|
||||
return /** @type {Array.<string>} */ (
|
||||
this.get(ol.layer.Heatmap.Property_.GRADIENT));
|
||||
this.get(ol.layer.Heatmap.Property_.GRADIENT));
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ ol.layer.Tile = function(opt_options) {
|
||||
|
||||
this.setPreload(options.preload !== undefined ? options.preload : 0);
|
||||
this.setUseInterimTilesOnError(options.useInterimTilesOnError !== undefined ?
|
||||
options.useInterimTilesOnError : true);
|
||||
options.useInterimTilesOnError : true);
|
||||
};
|
||||
ol.inherits(ol.layer.Tile, ol.layer.Layer);
|
||||
|
||||
@@ -93,7 +93,7 @@ ol.layer.Tile.prototype.setPreload = function(preload) {
|
||||
*/
|
||||
ol.layer.Tile.prototype.getUseInterimTilesOnError = function() {
|
||||
return /** @type {boolean} */ (
|
||||
this.get(ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
||||
this.get(ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
||||
};
|
||||
|
||||
|
||||
|
||||
+11
-11
@@ -24,7 +24,7 @@ goog.require('ol.style.Style');
|
||||
*/
|
||||
ol.layer.Vector = function(opt_options) {
|
||||
var options = opt_options ?
|
||||
opt_options : /** @type {olx.layer.VectorOptions} */ ({});
|
||||
opt_options : /** @type {olx.layer.VectorOptions} */ ({});
|
||||
|
||||
var baseOptions = ol.obj.assign({}, options);
|
||||
|
||||
@@ -34,21 +34,21 @@ ol.layer.Vector = function(opt_options) {
|
||||
delete baseOptions.updateWhileInteracting;
|
||||
ol.layer.Layer.call(this, /** @type {olx.layer.LayerOptions} */ (baseOptions));
|
||||
|
||||
/**
|
||||
/**
|
||||
* @type {number}
|
||||
* @private
|
||||
*/
|
||||
this.renderBuffer_ = options.renderBuffer !== undefined ?
|
||||
options.renderBuffer : 100;
|
||||
options.renderBuffer : 100;
|
||||
|
||||
/**
|
||||
/**
|
||||
* User provided style.
|
||||
* @type {ol.style.Style|Array.<ol.style.Style>|ol.StyleFunction}
|
||||
* @private
|
||||
*/
|
||||
this.style_ = null;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Style function for use within the library.
|
||||
* @type {ol.StyleFunction|undefined}
|
||||
* @private
|
||||
@@ -57,19 +57,19 @@ ol.layer.Vector = function(opt_options) {
|
||||
|
||||
this.setStyle(options.style);
|
||||
|
||||
/**
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @private
|
||||
*/
|
||||
this.updateWhileAnimating_ = options.updateWhileAnimating !== undefined ?
|
||||
options.updateWhileAnimating : false;
|
||||
options.updateWhileAnimating : false;
|
||||
|
||||
/**
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @private
|
||||
*/
|
||||
this.updateWhileInteracting_ = options.updateWhileInteracting !== undefined ?
|
||||
options.updateWhileInteracting : false;
|
||||
options.updateWhileInteracting : false;
|
||||
};
|
||||
ol.inherits(ol.layer.Vector, ol.layer.Layer);
|
||||
|
||||
@@ -103,7 +103,7 @@ ol.layer.Vector.prototype.getRenderBuffer = function() {
|
||||
*/
|
||||
ol.layer.Vector.prototype.getRenderOrder = function() {
|
||||
return /** @type {ol.RenderOrderFunction|null|undefined} */ (
|
||||
this.get(ol.layer.Vector.Property_.RENDER_ORDER));
|
||||
this.get(ol.layer.Vector.Property_.RENDER_ORDER));
|
||||
};
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ ol.layer.Vector.prototype.setRenderOrder = function(renderOrder) {
|
||||
ol.layer.Vector.prototype.setStyle = function(style) {
|
||||
this.style_ = style !== undefined ? style : ol.style.Style.defaultFunction;
|
||||
this.styleFunction_ = style === null ?
|
||||
undefined : ol.style.Style.createFunction(this.style_);
|
||||
undefined : ol.style.Style.createFunction(this.style_);
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
@@ -33,13 +33,13 @@ ol.layer.VectorTile = function(opt_options) {
|
||||
|
||||
this.setPreload(options.preload ? options.preload : 0);
|
||||
this.setUseInterimTilesOnError(options.useInterimTilesOnError ?
|
||||
options.useInterimTilesOnError : true);
|
||||
options.useInterimTilesOnError : true);
|
||||
|
||||
ol.asserts.assert(options.renderMode == undefined ||
|
||||
options.renderMode == ol.layer.VectorTileRenderType.IMAGE ||
|
||||
options.renderMode == ol.layer.VectorTileRenderType.HYBRID ||
|
||||
options.renderMode == ol.layer.VectorTileRenderType.VECTOR,
|
||||
28); // `renderMode` must be `'image'`, `'hybrid'` or `'vector'`
|
||||
28); // `renderMode` must be `'image'`, `'hybrid'` or `'vector'`
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -91,7 +91,7 @@ ol.layer.VectorTile.prototype.getRenderMode = function() {
|
||||
*/
|
||||
ol.layer.VectorTile.prototype.getUseInterimTilesOnError = function() {
|
||||
return /** @type {boolean} */ (
|
||||
this.get(ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
||||
this.get(ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user