forked from MapComplete/MapComplete
Add pedestrian paths to entrance-layer, fix rendering in location-input element, fallback to OSM if map layer is not available
This commit is contained in:
parent
fc2ede2259
commit
f29c62ab19
7 changed files with 64 additions and 4 deletions
|
@ -152,6 +152,13 @@
|
|||
"nl": "Een tourniquet-deur (draaideur) die in een cylinder rond een centrale as draait"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "door=sliding",
|
||||
"then": {
|
||||
"en": "A sliding door where the door slides sidewards, typically parallel with a wall",
|
||||
"nl": "Een schuifdeur or roldeur die bij het openen en sluiten zijwaarts beweegt"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "door=overhead",
|
||||
"then": {
|
||||
|
@ -266,7 +273,7 @@
|
|||
"title": "entrance",
|
||||
"preciseInput": {
|
||||
"preferredBackground": "photo",
|
||||
"snapToLayer": "walls_and_buildings"
|
||||
"snapToLayer": ["walls_and_buildings","pedestrian_path"]
|
||||
},
|
||||
"tags": [
|
||||
"entrance=yes"
|
||||
|
|
35
assets/layers/pedestrian_path/pedestrian_path.json
Normal file
35
assets/layers/pedestrian_path/pedestrian_path.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"id": "pedestrian_path",
|
||||
"name": {
|
||||
"en": "Pedestrain paths"
|
||||
},
|
||||
"minzoom": 18,
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"or": [
|
||||
"highway=footway",
|
||||
"highway=path",
|
||||
"highway=corridor",
|
||||
"highway=steps"
|
||||
]
|
||||
}
|
||||
},
|
||||
"title": {},
|
||||
"description": {
|
||||
"en": "Pedestrian footpaths, especially used for indoor navigation and snapping entrances to this layer"
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "./assets/svg/bug.svg",
|
||||
"location": [
|
||||
"point"
|
||||
]
|
||||
},
|
||||
{
|
||||
"color": "#b33",
|
||||
"width": 4,
|
||||
"dashArray": "12 6"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue