diff --git a/assets/themes/cyclenodes/README.md b/assets/themes/cyclenodes/README.md new file mode 100644 index 000000000..692055493 --- /dev/null +++ b/assets/themes/cyclenodes/README.md @@ -0,0 +1,10 @@ +This is a theme for mapping cycle node networks. +The intention is to make it easy to map the cycle nodes itself while riding +the bike and then continue mapping at home and add the routes itself +and connecting the nodes. + +This theme is based on a version first developed by Seppe Santes here: +https://github.com/seppesantens/MapComplete-Themes/blob/main/cyclenodenetworks/cyclenodenetworks.json + +A description on how to map cycle node networks in OSM can be found +[on the OSM wiki](https://wiki.openstreetmap.org/wiki/Cycle_Node_Network_Tagging). diff --git a/assets/themes/cyclenodes/cyclenodes.json b/assets/themes/cyclenodes/cyclenodes.json new file mode 100644 index 000000000..5b7ef569f --- /dev/null +++ b/assets/themes/cyclenodes/cyclenodes.json @@ -0,0 +1,135 @@ +{ + "id": "cyclenodes", + "title": { + "en": "Cycle Node Networks", + "de": "Fahrrad-Knotenpunktnetzwerke" + }, + "description": { + "en": "This map shows cycle node networks and allows you to add new nodes easily", + "de": "Diese Karte zeigt Knotenpunktnetzwerke für Radfahrer und erlaubt auch neue Knoten zu mappen" + }, + "language": [ + "en", + "de" + ], + "maintainer": "Sebastian Kürten", + "icon": "./assets/themes/cyclenodes/logo.svg", + "version": "0", + "startLat": 51.755515, + "startLon": 14.327545, + "startZoom": 11, + "widenFactor": 0.05, + "roamingRenderings": [], + "layers": [ + { + "id": "node2node", + "name": { + "en": "node to node links" + }, + "source": { + "osmTags": { + "and": [ + "network=rcn", + "network:type=node_network" + ] + } + }, + "minzoom": 12, + "title": { + "render": { + "en": "node to node link" + }, + "mappings": [ + { + "if": "ref~*", + "then": { + "en": "node to node link {ref}" + } + } + ] + }, + "width": { + "render": "4" + }, + "color": { + "render": "#00a703" + }, + "tagRenderings": [ + { + "question": { + "en": "When was this node to node link last surveyed?" + }, + "render": { + "en": "This node to node link was last surveyed on {survey:date}" + }, + "freeform": { + "key": "survey:date", + "type": "date" + }, + "mappings": [ + { + "if": "survey:date:={_now:date}", + "then": "Surveyed today!" + } + ] + } + ] + }, + { + "id": "node", + "name": { + "en": "nodes" + }, + "source": { + "osmTags": "rcn_ref~*" + }, + "minzoom": 12, + "title": { + "render": { + "en": "cycle node {rcn_ref}" + } + }, + "label": { + "mappings": [ + { + "if": "rcn_ref~*", + "then": "
{rcn_ref}
" + } + ] + }, + "tagRenderings": [ + { + "question": { + "en": "When was this cycle node last surveyed?" + }, + "render": { + "en": "This cycle node was last surveyed on {survey:date}" + }, + "freeform": { + "key": "survey:date", + "type": "date" + }, + "mappings": [ + { + "if": "survey:date:={_now:date}", + "then": "Surveyed today!" + } + ] + }, + { + "question": { + "en": "How many other cycle nodes does this node link to?" + }, + "render": { + "en": "This node links to {expected_rcn_route_relations} other cycle nodes." + }, + "freeform": { + "key": "expected_rcn_route_relations", + "type": "int" + } + }, + "images" + ] + } + ] +} \ No newline at end of file diff --git a/assets/themes/cyclenodes/logo.svg b/assets/themes/cyclenodes/logo.svg new file mode 100644 index 000000000..3dfa3e63b --- /dev/null +++ b/assets/themes/cyclenodes/logo.svg @@ -0,0 +1,120 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + 25 + + +