Add geolocation button which uses device GPS

This commit is contained in:
Pieter Vander Vennet 2020-06-28 02:42:22 +02:00
parent 57c9fcc5aa
commit a566ab6725
6 changed files with 299 additions and 32 deletions

View file

@ -17,6 +17,7 @@ import {MessageBoxHandler} from "./UI/MessageBoxHandler";
import {Overpass} from "./Logic/Overpass";
import {FixedUiElement} from "./UI/FixedUiElement";
import {FeatureInfoBox} from "./UI/FeatureInfoBox";
import {GeoLocationHandler} from "./Logic/GeoLocationHandler";
let dryRun = false;
@ -188,6 +189,9 @@ Helpers.LastEffortSave(changes);
osmConnection.registerActivateOsmAUthenticationClass();
new GeoLocationHandler(bm).AttachTo("geolocate-button");
// --------------- Send a ping to start various action --------
locationControl.ping();