Fix #2024 (or at least: workaround). The main map will now automatically recover from contextLost-events
This commit is contained in:
parent
7d678d95c7
commit
7d0816219f
3 changed files with 35 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue