diff --git a/src/app/map/services/map.service.ts b/src/app/map/services/map.service.ts index f503a434d1028a0a67efe359fd5baaa69816fa44..a1ded797f6d6a24b67a2f7edbac5f92ef5331856 100644 --- a/src/app/map/services/map.service.ts +++ b/src/app/map/services/map.service.ts @@ -172,7 +172,14 @@ export class MapService { // 70 is the width of the dataset data details panel divided by 4 (by 2 because the map and the table // share the remaining space and again by 2 because we want to center the point so there is half on the // left, half on the right) - this._map.flyTo({ center: e.lngLat, curve: 1, speed: 0.4, offset: new mapboxgl.Point(-70, 0) }); + this._map.panTo(e.lngLat, { + duration: 500, + // 70 is the width of the dataset data details panel divided by 4 (by 2 because the map and the table + // share the remaining space and again by 2 because we want to center the point so there is half on the + // left, half on the right) + offset: new mapboxgl.Point(-70, 0), + }, + ); } } @@ -503,7 +510,6 @@ export class MapService { // left, half on the right) offset: new mapboxgl.Point(-70, 0), }, - ); }