diff --git a/assets/layers/mobility_hub/hub-gd.svg b/assets/layers/mobility_hub/hub-gd.svg new file mode 100644 index 000000000..6e69e0e4a --- /dev/null +++ b/assets/layers/mobility_hub/hub-gd.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + diff --git a/assets/layers/mobility_hub/hub-gd.svg.license b/assets/layers/mobility_hub/hub-gd.svg.license new file mode 100644 index 000000000..ae0827101 --- /dev/null +++ b/assets/layers/mobility_hub/hub-gd.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Provincie Groningen; Provincie Drenthe +SPDX-License-Identifier: LicenseRef-ALL-RIGHTS-RESERVED \ No newline at end of file diff --git a/assets/layers/mobility_hub/license_info.json b/assets/layers/mobility_hub/license_info.json new file mode 100644 index 000000000..ff5c60df5 --- /dev/null +++ b/assets/layers/mobility_hub/license_info.json @@ -0,0 +1,21 @@ +[ + { + "path": "hub-gd.svg", + "license": "ALL-RIGHTS-RESERVED", + "authors": [ + "Provincie Groningen", + "Provincie Drenthe" + ], + "sources": [ + "https://www.reisviahub.nl/" + ] + }, + { + "path": "logo-hub.svg", + "license": "ALL-RIGHTS-RESERVED", + "authors": [ + "Mijksenaar" + ], + "sources": [] + } +] \ No newline at end of file diff --git a/assets/layers/mobility_hub/logo-hub.svg b/assets/layers/mobility_hub/logo-hub.svg new file mode 100644 index 000000000..ea9f6c807 --- /dev/null +++ b/assets/layers/mobility_hub/logo-hub.svg @@ -0,0 +1,61 @@ + + + + + + + + + + hub + + + diff --git a/assets/layers/mobility_hub/logo-hub.svg.license b/assets/layers/mobility_hub/logo-hub.svg.license new file mode 100644 index 000000000..8681106e9 --- /dev/null +++ b/assets/layers/mobility_hub/logo-hub.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Mijksenaar +SPDX-License-Identifier: LicenseRef-ALL-RIGHTS-RESERVED \ No newline at end of file diff --git a/assets/layers/mobility_hub/mobility_hub.json b/assets/layers/mobility_hub/mobility_hub.json new file mode 100644 index 000000000..5b168c864 --- /dev/null +++ b/assets/layers/mobility_hub/mobility_hub.json @@ -0,0 +1,137 @@ +{ + "credits": "Robin van der Linde", + "minzoom": 8, + "pointRendering": [ + { + "location": [ + "point", + "centroid" + ], + "marker": [ + { + "icon": { + "mappings": [ + { + "if": "network=Groningen-Drenthe", + "then": "./assets/layers/mobility_hub/hub-gd.svg" + } + ], + "render": "./assets/layers/mobility_hub/logo-hub.svg" + } + } + ], + "anchor": { + "render": "bottom", + "mappings": [ + { + "if": "network=Groningen-Drenthe", + "then": "center" + } + ] + } + } + ], + "tagRenderings": [ + "images", + { + "question": { + "en": "What is the name of this mobility hub?", + "nl": "Wat is de naam van deze mobiliteitshub?" + }, + "id": "name", + "render": { + "en": "This mobility hub is called {name}", + "nl": "Deze mobiliteitshub heet {name}" + }, + "freeform": { + "key": "name", + "type": "string", + "placeholder": { + "en": "Name of the mobility hub", + "nl": "Naam van de mobiliteitshub" + } + } + }, + { + "question": { + "en": "To which network does this mobility hub belong to?", + "nl": "Bij welk netwerk hoort deze mobiliteitshub?" + }, + "id": "network", + "freeform": { + "key": "network", + "type": "string", + "placeholder": { + "en": "Network for this mobility hub", + "nl": "Netwerk van deze mobiliteitshub" + } + }, + "render": { + "en": "This mobility hub belongs to the network {network}", + "nl": "Deze mobiliteitshub hoort bij het netwerk {network}" + } + }, + "website" + ], + "lineRendering": [ + { + "width": 1, + "color": { + "render": "#00b26b", + "mappings": [ + { + "if": "network=Groningen-Drenthe", + "then": "#0077db" + }, + { + "if": "network=Jelbi", + "then": "#f0d722" + } + ] + } + } + ], + "credits:uid": 5093765, + "id": "mobility_hub", + "name": { + "en": "Mobility Hubs", + "nl": "Mobiliteitshubs" + }, + "source": { + "osmTags": "amenity=mobility_hub" + }, + "description": { + "en": "Mobility hubs are places where different kinds of transit meet, making it easy to switch between them", + "nl": "Mobiliteitshubs zijn plaatsen waar verschillende soorten vervoer bij elkaar komen, waardoor het makkelijk is om te wisselen van vervoer" + }, + "title": { + "render": { + "en": "Mobility hub", + "nl": "Mobiliteitshub" + }, + "mappings": [ + { + "if": "name~.*", + "then": { + "en": "Mobility hub {name}", + "nl": "Mobiliteitshub {name}" + } + } + ] + }, + "presets": [ + { + "title": { + "en": "a mobility hub", + "nl": "een mobiliteitshub" + }, + "tags": [ + "amenity=mobility_hub" + ] + } + ], + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": false + } +} \ No newline at end of file diff --git a/assets/themes/transit/transit.json b/assets/themes/transit/transit.json index 313a6fb06..ca501b050 100644 --- a/assets/themes/transit/transit.json +++ b/assets/themes/transit/transit.json @@ -41,6 +41,7 @@ "Robin van der Linde" ], "layers": [ + "mobility_hub", "transit_stops", "transit_routes", { @@ -74,4 +75,4 @@ ] } ] -} +} \ No newline at end of file