Small fixes, add geolocation feature switch

This commit is contained in:
Pieter Vander Vennet 2020-08-08 14:43:48 +02:00
parent 97a69ff903
commit de9bb13568
6 changed files with 38 additions and 6 deletions

View file

@ -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'>";
}