feat(web): remember last chosen map location when editing (#16366)

Uses a global store to remember the last location chosen by a user when
editing asset locations. This fixes an annoyance when adding location
data to multiple assets in a row and having to zoom in the same area
everytime.
This commit is contained in:
David Bourgault
2025-02-26 22:01:29 -05:00
committed by GitHub
parent 4b55888d16
commit 8b69114924
2 changed files with 19 additions and 9 deletions

View File

@@ -17,6 +17,7 @@ export const normaizedRorateDegrees = derived(rotateDegrees, (v) => {
export const changedOriention = derived(normaizedRorateDegrees, () => get(normaizedRorateDegrees) % 180 > 0);
//-----other
export const showCancelConfirmDialog = writable<boolean | CallableFunction>(false);
export const lastChosenLocation = writable<{ lng: number; lat: number } | null>(null);
export const editTypes = [
{