forked from MapComplete/MapComplete
Small fixes, add geolocation feature switch
This commit is contained in:
parent
97a69ff903
commit
de9bb13568
6 changed files with 38 additions and 6 deletions
|
@ -79,14 +79,18 @@ export class GeoLocationHandler extends UIElement {
|
|||
}
|
||||
|
||||
InnerRender(): string {
|
||||
if(!State.state.featureSwitchGeolocation.data){
|
||||
return "";
|
||||
}
|
||||
|
||||
if (this._hasLocation.data) {
|
||||
return "<img src='assets/crosshair-blue.png' alt='locate me'>";
|
||||
return "<img src='assets/crosshair-blue.svg' alt='locate me'>";
|
||||
}
|
||||
if (this._isActive.data) {
|
||||
return "<img src='assets/crosshair-blue-center.png' alt='locate me'>";
|
||||
return "<img src='assets/crosshair-blue-center.svg' alt='locate me'>";
|
||||
}
|
||||
|
||||
return "<img src='assets/crosshair.png' alt='locate me'>";
|
||||
return "<img src='assets/crosshair.svg' alt='locate me'>";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue