diff --git a/Models/ThemeConfig/LegacyJsonConvert.ts b/Models/ThemeConfig/LegacyJsonConvert.ts index 4128e6d919..a3496d0fdf 100644 --- a/Models/ThemeConfig/LegacyJsonConvert.ts +++ b/Models/ThemeConfig/LegacyJsonConvert.ts @@ -29,7 +29,7 @@ export default class LegacyJsonConvert { } } - if (config.mapRendering === undefined && config.id !== "sidewalks") { + if (config.mapRendering === undefined) { config.mapRendering = [] // This is a legacy format, lets create a pointRendering let location: ("point" | "centroid")[] = ["point"] diff --git a/assets/themes/cyclenodes/cyclenodes.json b/assets/themes/cyclenodes/cyclenodes.json index 7dedd64611..e5cc511bf4 100644 --- a/assets/themes/cyclenodes/cyclenodes.json +++ b/assets/themes/cyclenodes/cyclenodes.json @@ -15,12 +15,12 @@ "maintainer": "Sebastian Kürten", "icon": "./assets/themes/cyclenodes/logo.svg", "version": "0", + "hideFromOverview": true, "startLat": 51.755515, "startLon": 14.327545, "startZoom": 11, "widenFactor": 0.05, - "roamingRenderings": [], - "clustering":{ + "clustering": { "maxZoom": 11, "minNeededElements": 1000000 }, @@ -34,7 +34,8 @@ "osmTags": { "and": [ "network=rcn", - "network:type=node_network" + "network:type=node_network", + "route=bicycle" ] } }, @@ -52,12 +53,16 @@ } ] }, - "width": { - "render": "4" - }, - "color": { - "render": "#00a703" - }, + "mapRendering": [ + { + "width": { + "render": "4" + }, + "color": { + "render": "#00a703" + } + } + ], "tagRenderings": [ { "question": { @@ -75,8 +80,10 @@ "if": "survey:date:={_now:date}", "then": "Surveyed today!" } - ] - } + ], + "id": "node2node-survey:date" + }, + "export_as_gpx" ] }, { @@ -86,12 +93,31 @@ }, "source": { "osmTags": { - "or": [ - "network:type=node_network", + "and": [ "rcn_ref~*" ] } }, + "mapRendering": [ + { + "location": [ + "point", + "centroid" + ], + "label": { + "mappings": [ + { + "if": "rcn_ref~*", + "then": "