diff --git a/Logic/Actors/OverpassFeatureSource.ts b/Logic/Actors/OverpassFeatureSource.ts index e48ae2a3f9..49c605137f 100644 --- a/Logic/Actors/OverpassFeatureSource.ts +++ b/Logic/Actors/OverpassFeatureSource.ts @@ -180,14 +180,19 @@ export default class OverpassFeatureSource implements FeatureSource { } } while (data === undefined && this._isActive.data); - self.retries.setData(0); + try { + if(data === undefined){ + return undefined + } data.features.forEach(feature => SimpleMetaTagger.objectMetaInfo.applyMetaTagsOnFeature(feature, date, undefined)); self.features.setData(data.features.map(f => ({feature: f, freshness: date}))); return [bounds, date, layersToDownload]; } catch (e) { console.error("Got the overpass response, but could not process it: ", e, e.stack) + return undefined } finally { + self.retries.setData(0); self.runningQuery.setData(false); } diff --git a/Models/Constants.ts b/Models/Constants.ts index b8e2df07d6..ec2b8dcb8c 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -2,7 +2,7 @@ import {Utils} from "../Utils"; export default class Constants { - public static vNumber = "0.11.0-rc-1"; + public static vNumber = "0.11.0"; public static ImgurApiKey = '7070e7167f0a25a' public static readonly mapillary_client_token_v3 = 'TXhLaWthQ1d4RUg0czVxaTVoRjFJZzowNDczNjUzNmIyNTQyYzI2' public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85" diff --git a/UI/BigComponents/SimpleAddUI.ts b/UI/BigComponents/SimpleAddUI.ts index 204e7f955f..84e14b6827 100644 --- a/UI/BigComponents/SimpleAddUI.ts +++ b/UI/BigComponents/SimpleAddUI.ts @@ -113,9 +113,9 @@ export default class SimpleAddUI extends Toggle { new Toggle( new Toggle( new Toggle( - addUi, Translations.t.general.add.stillLoading.Clone().SetClass("alert"), - state.featurePipeline.somethingLoaded + addUi, + state.featurePipeline.runningQuery ), Translations.t.general.add.zoomInFurther.Clone().SetClass("alert"), state.locationControl.map(loc => loc.zoom >= Constants.userJourney.minZoomLevelToAddNewPoints)