From f771695c0ba47df4c230c8407e5adab678517c15 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 17 Oct 2020 22:27:27 +0200 Subject: [PATCH] Add bike monitoring stations --- Customizations/AllKnownLayouts.ts | 10 +++++++ .../bike_monitoring_stations.json | 28 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 assets/themes/bike_monitoring_station/bike_monitoring_stations.json diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts index b5af747da..35612fb63 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 000000000..0d6be70d5 --- /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