From 4a563c7a1021c2be688c141301959a7ce131c515 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 17 Oct 2020 00:42:35 +0200 Subject: [PATCH] Fix reading of location from the URL, close #138 --- State.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/State.ts b/State.ts index 0647b3844..57ae445b7 100644 --- a/State.ts +++ b/State.ts @@ -141,11 +141,11 @@ export default class State { } this.zoom = asFloat( QueryParameters.GetQueryParameter("z", "" + layoutToUse.startzoom) - .syncWith(LocalStorageSource.Get("zoom"), true)); + .syncWith(LocalStorageSource.Get("zoom"))); this.lat = asFloat(QueryParameters.GetQueryParameter("lat", "" + layoutToUse.startLat) - .syncWith(LocalStorageSource.Get("lat"), true)); + .syncWith(LocalStorageSource.Get("lat"))); this.lon = asFloat(QueryParameters.GetQueryParameter("lon", "" + layoutToUse.startLon) - .syncWith(LocalStorageSource.Get("lon"), true)); + .syncWith(LocalStorageSource.Get("lon"))); this.locationControl = new UIEventSource<{ lat: number, lon: number, zoom: number }>({