forked from MapComplete/MapComplete
Merge branch 'develop' of github.com:pietervdvn/MapComplete into develop
This commit is contained in:
commit
4f37bf64a2
14 changed files with 1546 additions and 93 deletions
168
assets/themes/street_lighting/street_lighting.json
Normal file
168
assets/themes/street_lighting/street_lighting.json
Normal file
|
@ -0,0 +1,168 @@
|
|||
{
|
||||
"id": "street_lighting",
|
||||
"maintainer": "Robin van der Linde",
|
||||
"version": "2021-10-22",
|
||||
"language": [
|
||||
"en",
|
||||
"nl"
|
||||
],
|
||||
"title": {
|
||||
"en": "Street Lighting",
|
||||
"nl": "Straatverlichting"
|
||||
},
|
||||
"description": {
|
||||
"en": "On this map you can find everything about street lighting",
|
||||
"nl": "Op deze kaart vind je alles over straatlantaarns"
|
||||
},
|
||||
"icon": "./assets/layers/street_lamps/street_lamp.svg",
|
||||
"startZoom": 19,
|
||||
"startLat": 52.99319,
|
||||
"startLon": 6.56113,
|
||||
"layers": [
|
||||
"street_lamps",
|
||||
{
|
||||
"id": "lit_streets",
|
||||
"name": {
|
||||
"en": "Lit streets",
|
||||
"nl": "Verlichte straten"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"and": [
|
||||
"highway!=",
|
||||
"lit!=no",
|
||||
"lit!="
|
||||
]
|
||||
}
|
||||
},
|
||||
"minZoom": 16,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Lit street",
|
||||
"nl": "Verlichte straat"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "{name}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
"color": "#ff0"
|
||||
}
|
||||
],
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "lit",
|
||||
"question": {
|
||||
"en": "Is this street lit?",
|
||||
"nl": "Is deze straat verlicht?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "lit=yes",
|
||||
"then": {
|
||||
"en": "This street is lit",
|
||||
"nl": "Deze straat is verlicht"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "lit=no",
|
||||
"then": {
|
||||
"en": "This street is not lit",
|
||||
"nl": "Deze straat is niet verlicht"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "lit=sunset-sunrise",
|
||||
"then": {
|
||||
"en": "This street is lit at night",
|
||||
"nl": "Deze straat is 's nachts verlicht"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
},
|
||||
{
|
||||
"if": "lit=24/7",
|
||||
"then": {
|
||||
"en": "This street is lit 24/7",
|
||||
"nl": "Deze straat is 24/7 verlicht"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"allowSplit": true
|
||||
},
|
||||
{
|
||||
"id": "all_streets",
|
||||
"name": {
|
||||
"en": "All streets",
|
||||
"nl": "Alle straten"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "highway!="
|
||||
},
|
||||
"minZoom": 19,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Street",
|
||||
"nl": "Straat"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "{name}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
"color": "#a9a9a9"
|
||||
}
|
||||
],
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "lit",
|
||||
"question": {
|
||||
"en": "Is this street lit?",
|
||||
"nl": "Is deze straat verlicht?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "lit=yes",
|
||||
"then": {
|
||||
"en": "This street is lit",
|
||||
"nl": "Deze straat is verlicht"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "lit=no",
|
||||
"then": {
|
||||
"en": "This street is not lit",
|
||||
"nl": "Deze straat is niet verlicht"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "lit=sunset-sunrise",
|
||||
"then": {
|
||||
"en": "This street is lit at night",
|
||||
"nl": "Deze straat is 's nachts verlicht"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
},
|
||||
{
|
||||
"if": "lit=24/7",
|
||||
"then": {
|
||||
"en": "This street is lit 24/7",
|
||||
"nl": "Deze straat is 24/7 verlicht"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"allowSplit": true
|
||||
}
|
||||
]
|
||||
}
|
58
assets/themes/street_lighting/street_lighting_assen.json
Normal file
58
assets/themes/street_lighting/street_lighting_assen.json
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"id": "street_lighting_assen",
|
||||
"maintainer": "Robin van der Linde",
|
||||
"version": "2021-10-22",
|
||||
"language": [
|
||||
"nl",
|
||||
"en"
|
||||
],
|
||||
"title": {
|
||||
"nl": "Straatverlichting - Assen"
|
||||
},
|
||||
"description": {
|
||||
"nl": "Op deze kaart vind je alles over straatlantaarns + een dataset van Assen"
|
||||
},
|
||||
"icon": "./assets/layers/street_lamps/street_lamp.svg",
|
||||
"startZoom": 19,
|
||||
"startLat": 52.99319,
|
||||
"startLon": 6.56113,
|
||||
"layers": [
|
||||
"street_lamps",
|
||||
{
|
||||
"id": "Assen",
|
||||
"name": "Dataset Assen",
|
||||
"source": {
|
||||
"osmTags": "Lichtmastnummer~*",
|
||||
"#geoJson": "https://opendata.arcgis.com/datasets/ba37cdb372064b3199c548b75d16a609_0.geojson",
|
||||
"geoJson": "https://robinlinde.github.io/tiles/assen_street_lighting/{z}/{x}/{y}.json",
|
||||
"geoJsonZoomLevel": 16,
|
||||
"isOsmCache": false
|
||||
},
|
||||
"calculatedTags": [
|
||||
"_closest_osm_street_lamp=feat.closest('street_lamps')?.properties?.id",
|
||||
"_closest_osm_street_lamp_distance=feat.distanceTo(feat.properties._closest_osm_street_lamp) * 1000",
|
||||
"_has_closeby_feature=Number(feat.properties._closest_osm_street_lamp_distance) < 5 ? 'yes' : 'no'"
|
||||
],
|
||||
"title": "Straatlantaarn in dataset",
|
||||
"mapRendering": [
|
||||
{
|
||||
"location": "point",
|
||||
"icon": {
|
||||
"render": "circle:red",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "_has_closeby_feature=yes",
|
||||
"then": "circle:#008000aa"
|
||||
}
|
||||
]
|
||||
},
|
||||
"iconSize": "20,20,center"
|
||||
}
|
||||
],
|
||||
"tagRenderings": [
|
||||
"all_tags"
|
||||
]
|
||||
}
|
||||
],
|
||||
"hideFromOverview": true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue