2020-10-27 01:01:34 +01:00
|
|
|
|
|
|
|
import * as drinkingWater from "../assets/layers/drinking_water/drinking_water.json";
|
|
|
|
import * as ghostbikes from "../assets/layers/ghost_bike/ghost_bike.json"
|
|
|
|
import * as viewpoint from "../assets/layers/viewpoint/viewpoint.json"
|
|
|
|
import * as bike_parking from "../assets/layers/bike_parking/bike_parking.json"
|
|
|
|
import * as bike_repair_station from "../assets/layers/bike_repair_station/bike_repair_station.json"
|
|
|
|
import * as birdhides from "../assets/layers/bird_hide/birdhides.json"
|
|
|
|
import * as nature_reserve from "../assets/layers/nature_reserve/nature_reserve.json"
|
|
|
|
import * as bike_cafes from "../assets/layers/bike_cafe/bike_cafes.json"
|
|
|
|
import * as bike_monitoring_station from "../assets/layers/bike_monitoring_station/bike_monitoring_station.json"
|
|
|
|
import * as cycling_themed_objects from "../assets/layers/cycling_themed_object/cycling_themed_objects.json"
|
|
|
|
import * as bike_shops from "../assets/layers/bike_shop/bike_shop.json"
|
2020-11-09 19:55:29 +01:00
|
|
|
import * as bike_cleaning from "../assets/layers/bike_cleaning/bike_cleaning.json"
|
2021-01-05 02:59:29 +01:00
|
|
|
import * as bicycle_library from "../assets/layers/bicycle_library/bicycle_library.json"
|
|
|
|
|
2020-10-27 01:01:34 +01:00
|
|
|
import * as maps from "../assets/layers/maps/maps.json"
|
|
|
|
import * as information_boards from "../assets/layers/information_board/information_board.json"
|
2020-11-17 02:22:48 +01:00
|
|
|
import * as direction from "../assets/layers/direction/direction.json"
|
2020-11-17 16:29:51 +01:00
|
|
|
import * as surveillance_camera from "../assets/layers/surveillance_cameras/surveillance_cameras.json"
|
2020-11-21 16:44:48 +01:00
|
|
|
import * as toilets from "../assets/layers/toilets/toilets.json"
|
2020-11-25 16:10:14 +01:00
|
|
|
import * as bookcases from "../assets/layers/public_bookcases/public_bookcases.json"
|
2020-12-27 14:23:45 +01:00
|
|
|
import * as tree_nodes from "../assets/layers/trees/tree_nodes.json"
|
2020-10-27 01:01:34 +01:00
|
|
|
import LayerConfig from "./JSON/LayerConfig";
|
|
|
|
|
|
|
|
export default class SharedLayers {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static sharedLayers: Map<string, LayerConfig> = SharedLayers.getSharedLayers();
|
|
|
|
|
|
|
|
private static getSharedLayers(){
|
|
|
|
const sharedLayersList = [
|
2020-11-17 16:29:51 +01:00
|
|
|
new LayerConfig(drinkingWater,[], "shared_layers"),
|
|
|
|
new LayerConfig(ghostbikes,[], "shared_layers"),
|
|
|
|
new LayerConfig(viewpoint,[], "shared_layers"),
|
|
|
|
new LayerConfig(bike_parking,[], "shared_layers"),
|
|
|
|
new LayerConfig(bike_repair_station,[], "shared_layers"),
|
|
|
|
new LayerConfig(bike_monitoring_station,[], "shared_layers"),
|
|
|
|
new LayerConfig(birdhides,[], "shared_layers"),
|
|
|
|
new LayerConfig(nature_reserve,[], "shared_layers"),
|
|
|
|
new LayerConfig(bike_cafes,[], "shared_layers"),
|
2021-01-05 02:59:29 +01:00
|
|
|
new LayerConfig(bicycle_library, [], "bike_library"),
|
2020-11-17 16:29:51 +01:00
|
|
|
new LayerConfig(cycling_themed_objects,[], "shared_layers"),
|
|
|
|
new LayerConfig(bike_shops,[], "shared_layers"),
|
|
|
|
new LayerConfig(bike_cleaning,[], "shared_layers"),
|
|
|
|
new LayerConfig(maps,[], "shared_layers"),
|
|
|
|
new LayerConfig(direction,[], "shared_layers"),
|
|
|
|
new LayerConfig(information_boards,[], "shared_layers"),
|
2020-11-21 16:44:48 +01:00
|
|
|
new LayerConfig(toilets,[], "shared_layers"),
|
2020-11-25 16:10:14 +01:00
|
|
|
new LayerConfig(bookcases,[], "shared_layers"),
|
2020-12-27 14:23:45 +01:00
|
|
|
new LayerConfig(surveillance_camera,[], "shared_layers"),
|
|
|
|
new LayerConfig(tree_nodes,[], "shared_layers")
|
2020-10-27 01:01:34 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
const sharedLayers = new Map<string, LayerConfig>();
|
|
|
|
for (const layer of sharedLayersList) {
|
|
|
|
sharedLayers.set(layer.id, layer);
|
|
|
|
sharedLayers[layer.id] = layer;
|
|
|
|
}
|
|
|
|
return sharedLayers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-12-27 14:23:45 +01:00
|
|
|
}
|