diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts index b5af747..35612fb 100644 --- a/Customizations/AllKnownLayouts.ts +++ b/Customizations/AllKnownLayouts.ts @@ -12,6 +12,7 @@ import * as buurtnatuur from "../assets/themes/buurtnatuur/buurtnatuur.json" import * as nature from "../assets/themes/nature/nature.json" import * as maps from "../assets/themes/maps/maps.json" import * as shops from "../assets/themes/shops/shops.json" +import * as bike_monitoring_stations from "../assets/themes/bike_monitoring_station/bike_monitoring_stations.json" import {PersonalLayout} from "../Logic/PersonalLayout"; import {StreetWidth} from "./StreetWidth/StreetWidth"; @@ -44,6 +45,14 @@ export class AllKnownLayouts { return layout; } + private static GenerateBikeMonitoringStations(): Layout { + const layout = FromJSON.LayoutFromJSON(bike_monitoring_stations); + layout.hideFromOverview = true; + return layout; + } + + + public static layoutsList: Layout[] = [ new PersonalLayout(), @@ -58,6 +67,7 @@ export class AllKnownLayouts { FromJSON.LayoutFromJSON(cyclestreets), FromJSON.LayoutFromJSON(maps), AllKnownLayouts.GenerateBuurtNatuur(), + AllKnownLayouts.GenerateBikeMonitoringStations(), new StreetWidth(), // The ugly duckling ]; diff --git a/assets/themes/bike_monitoring_station/bike_monitoring_stations.json b/assets/themes/bike_monitoring_station/bike_monitoring_stations.json new file mode 100644 index 0000000..0d6be70 --- /dev/null +++ b/assets/themes/bike_monitoring_station/bike_monitoring_stations.json @@ -0,0 +1,28 @@ +{ + "id": "bike_monitoring_stations", + "title": { + "en": "Bike Monitoring stations" + }, + "shortDescription": { + "en": "Bike monitoring stations with live data from Brussels Mobility" + }, + "description": { + "en": "This theme shows bike monitoring stations with live data" + }, + "language": [ + "en" + ], + "maintainer": "", + "icon": "./assets/layers/bike_monitoring_station/monitoring_station.svg", + "version": "0", + "startLat": 50.8435, + "startLon": 4.3688, + "startZoom": 14, + "widenFactor": 0.05, + "socialImage": "", + "layers": [ + "bike_monitoring_station" + ], + "roamingRenderings": [], + "defaultBackgroundId": "Stadia.AlidadeSmoothDark" +} \ No newline at end of file