forked from MapComplete/MapComplete
Add ios fixes
This commit is contained in:
parent
c26b037ca5
commit
5123c3836e
8 changed files with 136 additions and 200 deletions
|
@ -82,13 +82,13 @@ export class GeoLocationHandler extends UIElement {
|
|||
|
||||
InnerRender(): string {
|
||||
if (this.currentLocation.data) {
|
||||
return "<img src='./assets/crosshair-blue.svg' alt='locate me'>";
|
||||
return "<img src='assets/crosshair-blue.png' alt='locate me'>";
|
||||
}
|
||||
if (this._isActive.data) {
|
||||
return "<img src='./assets/crosshair-blue-center.svg' alt='locate me'>";
|
||||
return "<img src='assets/crosshair-blue-center.png' alt='locate me'>";
|
||||
}
|
||||
|
||||
return "<img src='./assets/crosshair.svg' alt='locate me'>";
|
||||
return "<img src='assets/crosshair.png' alt='locate me'>";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -71,12 +71,12 @@ export class LayerUpdater {
|
|||
|
||||
private _failCount = 0;
|
||||
private handleFail(reason: any) {
|
||||
console.log("QUERY FAILED (retrying in 1 sec)", reason);
|
||||
console.log("QUERY FAILED (retrying in 5 sec)", reason);
|
||||
this.previousBounds = undefined;
|
||||
const self = this;
|
||||
this._failCount++;
|
||||
window?.setTimeout(
|
||||
function(){self.update()}, this._failCount * 1000
|
||||
function(){self.update()}, this._failCount * 5000
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue