Remove lint
This commit is contained in:
@@ -211,7 +211,9 @@ class Attribution extends Control {
|
||||
continue;
|
||||
}
|
||||
|
||||
const source = /** @type {import("../layer/Layer.js").default} */ (layerState.layer).getSource();
|
||||
const source = /** @type {import("../layer/Layer.js").default} */ (
|
||||
layerState.layer
|
||||
).getSource();
|
||||
if (!source) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -126,9 +126,9 @@ class MousePosition extends Control {
|
||||
* @api
|
||||
*/
|
||||
getCoordinateFormat() {
|
||||
return /** @type {import("../coordinate.js").CoordinateFormat|undefined} */ (this.get(
|
||||
COORDINATE_FORMAT
|
||||
));
|
||||
return /** @type {import("../coordinate.js").CoordinateFormat|undefined} */ (
|
||||
this.get(COORDINATE_FORMAT)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -139,9 +139,9 @@ class MousePosition extends Control {
|
||||
* @api
|
||||
*/
|
||||
getProjection() {
|
||||
return /** @type {import("../proj/Projection.js").default|undefined} */ (this.get(
|
||||
PROJECTION
|
||||
));
|
||||
return /** @type {import("../proj/Projection.js").default|undefined} */ (
|
||||
this.get(PROJECTION)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -319,7 +319,9 @@ class OverviewMap extends Control {
|
||||
*/
|
||||
handleMapPropertyChange_(event) {
|
||||
if (event.key === MapProperty.VIEW) {
|
||||
const oldView = /** @type {import("../View.js").default} */ (event.oldValue);
|
||||
const oldView = /** @type {import("../View.js").default} */ (
|
||||
event.oldValue
|
||||
);
|
||||
if (oldView) {
|
||||
this.unbindView_(oldView);
|
||||
}
|
||||
@@ -407,7 +409,9 @@ class OverviewMap extends Control {
|
||||
}
|
||||
this.viewExtent_ = extent;
|
||||
|
||||
const ovmapSize = /** @type {import("../size.js").Size} */ (ovmap.getSize());
|
||||
const ovmapSize = /** @type {import("../size.js").Size} */ (
|
||||
ovmap.getSize()
|
||||
);
|
||||
|
||||
const ovview = ovmap.getView();
|
||||
const ovextent = ovview.calculateExtentInternal(ovmapSize);
|
||||
|
||||
@@ -247,8 +247,9 @@ class ZoomSlider extends Control {
|
||||
*/
|
||||
handleDraggerStart_(event) {
|
||||
if (!this.dragging_ && event.target === this.element.firstElementChild) {
|
||||
const element = /** @type {HTMLElement} */ (this.element
|
||||
.firstElementChild);
|
||||
const element = /** @type {HTMLElement} */ (
|
||||
this.element.firstElementChild
|
||||
);
|
||||
this.getMap().getView().beginInteraction();
|
||||
this.startX_ = event.clientX - parseFloat(element.style.left);
|
||||
this.startY_ = event.clientY - parseFloat(element.style.top);
|
||||
@@ -277,9 +278,8 @@ class ZoomSlider extends Control {
|
||||
const deltaX = event.clientX - this.startX_;
|
||||
const deltaY = event.clientY - this.startY_;
|
||||
const relativePosition = this.getRelativePosition_(deltaX, deltaY);
|
||||
this.currentResolution_ = this.getResolutionForPosition_(
|
||||
relativePosition
|
||||
);
|
||||
this.currentResolution_ =
|
||||
this.getResolutionForPosition_(relativePosition);
|
||||
this.getMap().getView().setResolution(this.currentResolution_);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user