Fix dependency injection of refactoring

This commit is contained in:
Pieter Vander Vennet 2022-02-16 01:46:55 +01:00
parent f0675a026b
commit 39e6cdfda4
4 changed files with 25 additions and 15 deletions

View file

@ -271,6 +271,7 @@ export default class MapState extends UserRelatedState {
let gpsLayerDef: FilteredLayer = this.filteredLayers.data.filter(l => l.layerDef.id === "gps_location_history")[0]
if (gpsLayerDef !== undefined) {
this.historicalUserLocations = new SimpleFeatureSource(gpsLayerDef, Tiles.tile_index(0, 0, 0), features);
this.changes.setHistoricalUserLocations(this.historicalUserLocations)
}