forked from MapComplete/MapComplete
Add geolocation button which uses device GPS
This commit is contained in:
parent
57c9fcc5aa
commit
a566ab6725
6 changed files with 299 additions and 32 deletions
4
index.ts
4
index.ts
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue