mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 17:22:12 +00:00
fix some typescript errors
This commit is contained in:
1 parent
bce7b5984f
commit
16023b0688
13 files changed
+73
-44
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user