Remove lint
This commit is contained in:
@@ -156,9 +156,9 @@ class BaseLayer extends BaseObject {
|
||||
* @api
|
||||
*/
|
||||
getExtent() {
|
||||
return /** @type {import("../extent.js").Extent|undefined} */ (this.get(
|
||||
LayerProperty.EXTENT
|
||||
));
|
||||
return /** @type {import("../extent.js").Extent|undefined} */ (
|
||||
this.get(LayerProperty.EXTENT)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -96,9 +96,9 @@ class BaseTileLayer extends Layer {
|
||||
* @api
|
||||
*/
|
||||
getUseInterimTilesOnError() {
|
||||
return /** @type {boolean} */ (this.get(
|
||||
TileProperty.USE_INTERIM_TILES_ON_ERROR
|
||||
));
|
||||
return /** @type {boolean} */ (
|
||||
this.get(TileProperty.USE_INTERIM_TILES_ON_ERROR)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -178,9 +178,9 @@ class BaseVectorLayer extends Layer {
|
||||
* order.
|
||||
*/
|
||||
getRenderOrder() {
|
||||
return /** @type {import("../render.js").OrderFunction|null|undefined} */ (this.get(
|
||||
Property.RENDER_ORDER
|
||||
));
|
||||
return /** @type {import("../render.js").OrderFunction|null|undefined} */ (
|
||||
this.get(Property.RENDER_ORDER)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,22 +52,7 @@ const DEFAULT_STROKE_STYLE = new Stroke({
|
||||
* @private
|
||||
*/
|
||||
const INTERVALS = [
|
||||
90,
|
||||
45,
|
||||
30,
|
||||
20,
|
||||
10,
|
||||
5,
|
||||
2,
|
||||
1,
|
||||
0.5,
|
||||
0.2,
|
||||
0.1,
|
||||
0.05,
|
||||
0.01,
|
||||
0.005,
|
||||
0.002,
|
||||
0.001,
|
||||
90, 45, 30, 20, 10, 5, 2, 1, 0.5, 0.2, 0.1, 0.05, 0.01, 0.005, 0.002, 0.001,
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -138,7 +138,9 @@ class LayerGroup extends BaseLayer {
|
||||
* @private
|
||||
*/
|
||||
handleLayersAdd_(collectionEvent) {
|
||||
const layer = /** @type {import("./Base.js").default} */ (collectionEvent.element);
|
||||
const layer = /** @type {import("./Base.js").default} */ (
|
||||
collectionEvent.element
|
||||
);
|
||||
this.listenerKeys_[getUid(layer)] = [
|
||||
listen(
|
||||
layer,
|
||||
@@ -156,7 +158,9 @@ class LayerGroup extends BaseLayer {
|
||||
* @private
|
||||
*/
|
||||
handleLayersRemove_(collectionEvent) {
|
||||
const layer = /** @type {import("./Base.js").default} */ (collectionEvent.element);
|
||||
const layer = /** @type {import("./Base.js").default} */ (
|
||||
collectionEvent.element
|
||||
);
|
||||
const key = getUid(layer);
|
||||
this.listenerKeys_[key].forEach(unlistenByKey);
|
||||
delete this.listenerKeys_[key];
|
||||
@@ -172,9 +176,9 @@ class LayerGroup extends BaseLayer {
|
||||
* @api
|
||||
*/
|
||||
getLayers() {
|
||||
return /** @type {!import("../Collection.js").default<import("./Base.js").default>} */ (this.get(
|
||||
Property.LAYERS
|
||||
));
|
||||
return /** @type {!import("../Collection.js").default<import("./Base.js").default>} */ (
|
||||
this.get(Property.LAYERS)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -264,7 +264,8 @@ class Layer extends BaseLayer {
|
||||
map,
|
||||
RenderEventType.PRECOMPOSE,
|
||||
function (evt) {
|
||||
const renderEvent = /** @type {import("../render/Event.js").default} */ (evt);
|
||||
const renderEvent =
|
||||
/** @type {import("../render/Event.js").default} */ (evt);
|
||||
const layerStatesArray = renderEvent.frameState.layerStatesArray;
|
||||
const layerState = this.getLayerState(false);
|
||||
// A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both.
|
||||
|
||||
@@ -90,7 +90,9 @@ class VectorTileLayer extends BaseVectorLayer {
|
||||
delete baseOptions.useInterimTilesOnError;
|
||||
|
||||
super(
|
||||
/** @type {import("./BaseVector.js").Options<import("../source/VectorTile.js").default>} */ (baseOptions)
|
||||
/** @type {import("./BaseVector.js").Options<import("../source/VectorTile.js").default>} */ (
|
||||
baseOptions
|
||||
)
|
||||
);
|
||||
|
||||
if (options.renderMode === VectorTileRenderType.IMAGE) {
|
||||
@@ -171,9 +173,9 @@ class VectorTileLayer extends BaseVectorLayer {
|
||||
* @api
|
||||
*/
|
||||
getUseInterimTilesOnError() {
|
||||
return /** @type {boolean} */ (this.get(
|
||||
TileProperty.USE_INTERIM_TILES_ON_ERROR
|
||||
));
|
||||
return /** @type {boolean} */ (
|
||||
this.get(TileProperty.USE_INTERIM_TILES_ON_ERROR)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user