forked from MapComplete/MapComplete
Add cycle_highways theme, add configurable overpass backend as feature switch (settable via theme and URL)
This commit is contained in:
parent
f4ea36de9a
commit
ef0826ebb6
21 changed files with 377 additions and 48 deletions
|
@ -1,4 +1,12 @@
|
|||
[
|
||||
{
|
||||
"authors": [
|
||||
"Pieter Vander Vennet"
|
||||
],
|
||||
"path": "add_pin.svg",
|
||||
"license": "CC0",
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"authors": [
|
||||
"Pieter Vander Vennet"
|
||||
|
@ -1346,5 +1354,11 @@
|
|||
"path": "location_unlocked.svg",
|
||||
"license": "CC0",
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"authors": [],
|
||||
"path": "loading.svg",
|
||||
"license": "CC0; trivial",
|
||||
"sources": []
|
||||
}
|
||||
]
|
176
assets/themes/cycle_highways/cycle_highways.json
Normal file
176
assets/themes/cycle_highways/cycle_highways.json
Normal file
|
@ -0,0 +1,176 @@
|
|||
{
|
||||
"id": "cycle_highways",
|
||||
"title": {
|
||||
"en": "Cycle highways"
|
||||
},
|
||||
"hideFromOverview": true,
|
||||
"maintainer": "L'imaginaire",
|
||||
"icon": "./assets/themes/cycle_highways/fietssnelwegen-logo.svg",
|
||||
"overpassUrl": "https://overpass.kumi.de/api/interpreter",
|
||||
"overpassTimeout": 60,
|
||||
"description": {
|
||||
"en": "This map shows cycle highways"
|
||||
},
|
||||
"language": [
|
||||
"en"
|
||||
],
|
||||
"version": "2021-05-22",
|
||||
"startLat": 51.1599,
|
||||
"startLon": 3.3475,
|
||||
"startZoom": 8,
|
||||
"clustering": {
|
||||
"maxZoom": 1
|
||||
},
|
||||
"enableDownload": true,
|
||||
"enablePdfDownload": true,
|
||||
"layers": [
|
||||
{
|
||||
"id": "cycle_highways",
|
||||
"tagRenderings": [
|
||||
{
|
||||
"render": "The name is <b>{name}</b>",
|
||||
"question": "What is the name of this cycle highway?",
|
||||
"freeform": {
|
||||
"key": "name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"render": "Referentienummer is <b>{ref}</b>",
|
||||
"question": "What is the reference number of this cycle highway?",
|
||||
"freeform": {
|
||||
"key": "ref"
|
||||
}
|
||||
},
|
||||
{
|
||||
"render": "The current state of this link is {state}",
|
||||
"question": "What is the state of this link?",
|
||||
"freeform": {
|
||||
"key": "state"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "state=proposed",
|
||||
"then": "This is a proposed route"
|
||||
},
|
||||
{
|
||||
"if": "state=temporary",
|
||||
"then": "This is a temporary deviation"
|
||||
},
|
||||
{
|
||||
"if": "state=",
|
||||
"then": "This link is operational and signposted"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"render": "This part is {_length:km}km long"
|
||||
},
|
||||
"website",
|
||||
{
|
||||
"render":"{all_tags()}"
|
||||
}
|
||||
],
|
||||
"name": {
|
||||
"en": "cycle highways"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "cycle_network=BE-VLG:cycle_highway"
|
||||
},
|
||||
"minzoom": 8,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "cycle highway"
|
||||
}
|
||||
},
|
||||
"width": {
|
||||
"render": "4"
|
||||
},
|
||||
"color": {
|
||||
"render": "#ff7392",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "state=",
|
||||
"then": "#00acfc"
|
||||
},
|
||||
{
|
||||
"if": "state=temporary",
|
||||
"then": "#00acfc"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dashArray": {
|
||||
"render": "",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "state=temporary",
|
||||
"then": "12 10"
|
||||
}
|
||||
]
|
||||
},
|
||||
"filter": [
|
||||
{
|
||||
"options": [
|
||||
{
|
||||
"question": "Name contains 'alt'",
|
||||
"osmTags": "name~.*[aA]lt.*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"options": [
|
||||
{
|
||||
"question": "Name contains 'wenslijn'",
|
||||
"osmTags": "name~.*[wW]enslijn.*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"options": [
|
||||
{
|
||||
"question": "Name contains 'omleiding'",
|
||||
"osmTags": "name~.*[oO]mleiding.*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"options": [
|
||||
{
|
||||
"question": "Reference contains 'alt'",
|
||||
"osmTags": "ref~.*[aA]lt.*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"options": [
|
||||
{
|
||||
"question": "No filter"
|
||||
},
|
||||
{
|
||||
"question": "state=proposed",
|
||||
"osmTags": "state=proposed"
|
||||
},
|
||||
{
|
||||
"question": "state=temporary",
|
||||
"osmTags": "state=temporary"
|
||||
},
|
||||
{
|
||||
"question": "state unset",
|
||||
"osmTags": "state="
|
||||
},
|
||||
{
|
||||
"question": "Other state",
|
||||
"osmTags": {
|
||||
"and": [
|
||||
"state!=",
|
||||
"state!=proposed",
|
||||
"state!=temporary"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"defaultBackgroundId": "CartoDB.Positron"
|
||||
}
|
64
assets/themes/cycle_highways/fietssnelwegen-logo.svg
Normal file
64
assets/themes/cycle_highways/fietssnelwegen-logo.svg
Normal file
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg preserveAspectRatio="none" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="165px" height="155px" viewBox="0 0 165 155" style="enable-background:new 0 0 165 155;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#1582DE;}
|
||||
.st1{fill:#FFFFFF;}
|
||||
</style>
|
||||
<path id="Polygon_2_copy_19" class="st0" d="M81.8,0c-6.4,0-12,3.1-14.8,6.9C56.6,21.2,47,36,38.3,51.4
|
||||
c-14.1,24.8-23.5,43.4-26.9,52.8c-1.8,5.3-1.2,11.1,1.7,15.8c2.7,4.9,7.5,8.2,13,9c11.7,1.3,28,2.9,55.4,2.8c0.1,0-0.1,0,0,0
|
||||
c27.4,0.2,44-1.4,55.7-2.7c5.5-0.8,10.4-4.1,13.1-9c2.9-4.8,3.5-10.6,1.7-15.9c-3.4-9.4-12.8-28-26.9-52.8
|
||||
c-8.7-15.4-18.3-30.3-28.8-44.6C93.6,3.1,87.9,0,81.5,0"/>
|
||||
<path id="F" class="st1" d="M65.8,105.3c0,4.7,3,7.3,7,7.3s7-2.6,7-7.3V85h14.4c3.5,0.2,6.5-2.5,6.7-6c0-0.2,0-0.4,0-0.5
|
||||
c0.1-3.4-2.7-6.3-6.1-6.3c-0.2,0-0.4,0-0.5,0H79.7V58.6h17.1c4.2,0,6.2-3.3,6.2-6.4c0-3.3-2.1-6.4-6.2-6.4H73
|
||||
c-3.8-0.1-7.1,2.9-7.2,6.7c0,0.2,0,0.4,0,0.6L65.8,105.3L65.8,105.3z"/>
|
||||
<path id="Fietssnelwegen.be" class="st1" d="M0,153.4c-0.1,0.7,0.5,1.4,1.2,1.4c0.1,0,0.1,0,0.2,0c0.7,0,1.4-0.5,1.4-1.3
|
||||
c0-0.1,0-0.1,0-0.2v-4.1h2.9c0.7,0,1.3-0.5,1.3-1.2c0,0,0-0.1,0-0.1c0-0.7-0.5-1.3-1.2-1.3c0,0-0.1,0-0.1,0H2.8v-2.7h3.4
|
||||
c0.7,0,1.3-0.6,1.2-1.3c0-0.7-0.6-1.2-1.2-1.2H1.5c-0.8,0-1.4,0.6-1.4,1.3c0,0,0,0.1,0,0.1L0,153.4L0,153.4z M8.5,153.4
|
||||
c-0.1,0.7,0.5,1.4,1.2,1.4c0.1,0,0.1,0,0.2,0c0.7,0,1.4-0.5,1.4-1.3c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1.3-1.2-1.3c0,0-0.1,0-0.1,0
|
||||
h-4.6c-0.8,0-1.4,0.6-1.5,1.4c0,0.1,0,0.2,0,0.3V153.3L157.4,153.3z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 6.8 KiB |
12
assets/themes/cycle_highways/license_info.json
Normal file
12
assets/themes/cycle_highways/license_info.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{
|
||||
"authors": [
|
||||
"De Vlaamse Provincies"
|
||||
],
|
||||
"path": "fietssnelwegen-logo.svg",
|
||||
"license": "Logo by the government",
|
||||
"sources": [
|
||||
"https://fietssnelwegen.be/"
|
||||
]
|
||||
}
|
||||
]
|
|
@ -17,7 +17,7 @@
|
|||
"nl"
|
||||
],
|
||||
"maintainer": "MapComplete",
|
||||
"hideFromOverview": true,
|
||||
"hideFromOverview": false,
|
||||
"defaultBackgroundId": "CartoDB.Voyager",
|
||||
"icon": "./assets/themes/cycle_infra/cycle-infra.svg",
|
||||
"version": "0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue