fix some typescript errors

This commit is contained in:
vcoppe
2025-11-10 13:11:44 +01:00
parent bce7b5984f
commit 16023b0688
13 changed files with 73 additions and 44 deletions

View File

@@ -135,12 +135,19 @@ export class MapillaryLayer {
}
onMouseEnter(e: mapboxgl.MapMouseEvent) {
this.active = true;
if (
e.features &&
e.features.length > 0 &&
e.features[0].properties &&
e.features[0].properties.id
) {
this.active = true;
this.viewer.resize();
this.viewer.moveTo(e.features[0].properties.id);
this.viewer.resize();
this.viewer.moveTo(e.features[0].properties.id);
mapCursor.notify(MapCursorState.MAPILLARY_HOVER, true);
mapCursor.notify(MapCursorState.MAPILLARY_HOVER, true);
}
}
onMouseLeave() {