Fix #2024 (or at least: workaround). The main map will now automatically recover from contextLost-events

This commit is contained in:
Pieter Vander Vennet 2024-07-16 16:00:11 +02:00
parent 7d678d95c7
commit 7d0816219f
3 changed files with 35 additions and 4 deletions

View file

@ -469,6 +469,9 @@ export default class ThemeViewState implements SpecialVisualizationState {
public showCurrentLocationOn(map: Store<MlMap>): ShowDataLayer {
const id = "gps_location"
const flayerGps = this.layerState.filteredLayers.get(id)
if(flayerGps === undefined){
return
}
const features = this.geolocation.currentUserLocation
return new ShowDataLayer(map, {
features,