Add bike monitoring stations

This commit is contained in:
Pieter Vander Vennet 2020-10-17 22:27:27 +02:00
parent 178b30542c
commit f771695c0b
2 changed files with 38 additions and 0 deletions

View file

@ -12,6 +12,7 @@ import * as buurtnatuur from "../assets/themes/buurtnatuur/buurtnatuur.json"
import * as nature from "../assets/themes/nature/nature.json" import * as nature from "../assets/themes/nature/nature.json"
import * as maps from "../assets/themes/maps/maps.json" import * as maps from "../assets/themes/maps/maps.json"
import * as shops from "../assets/themes/shops/shops.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 {PersonalLayout} from "../Logic/PersonalLayout";
import {StreetWidth} from "./StreetWidth/StreetWidth"; import {StreetWidth} from "./StreetWidth/StreetWidth";
@ -44,6 +45,14 @@ export class AllKnownLayouts {
return layout; return layout;
} }
private static GenerateBikeMonitoringStations(): Layout {
const layout = FromJSON.LayoutFromJSON(bike_monitoring_stations);
layout.hideFromOverview = true;
return layout;
}
public static layoutsList: Layout[] = [ public static layoutsList: Layout[] = [
new PersonalLayout(), new PersonalLayout(),
@ -58,6 +67,7 @@ export class AllKnownLayouts {
FromJSON.LayoutFromJSON(cyclestreets), FromJSON.LayoutFromJSON(cyclestreets),
FromJSON.LayoutFromJSON(maps), FromJSON.LayoutFromJSON(maps),
AllKnownLayouts.GenerateBuurtNatuur(), AllKnownLayouts.GenerateBuurtNatuur(),
AllKnownLayouts.GenerateBikeMonitoringStations(),
new StreetWidth(), // The ugly duckling new StreetWidth(), // The ugly duckling
]; ];

View file

@ -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"
}