Browse Source

fix: restore globe projection without 3D pitch on route editor close

main
xiaosi 2 weeks ago
parent
commit
a23c8cc711
  1. 5
      src/views/TasksView/TasksView.vue

5
src/views/TasksView/TasksView.vue

@ -818,10 +818,9 @@ function teardownRouteMap() {
} }
if (routeMapAttached) { if (routeMapAttached) {
mapHelper.restoreMapContainer() mapHelper.restoreMapContainer()
// globe
mapHelper.toggleMapMode({ is3D: true })
// globe + pitch 0 3D pitch 45
try { try {
routeMapInstance?.easeTo?.({ pitch: 0, bearing: 0, duration: 0 })
mapHelper.getMap()?.setProjection?.('globe')
} catch (_) { } catch (_) {
/* ignore */ /* ignore */
} }

Loading…
Cancel
Save