First working version of snapping to already existing ways from the add-UI (still too slow though), partial fix of #436

This commit is contained in:
Pieter Vander Vennet 2021-08-07 21:19:01 +02:00
parent bf2d634208
commit 0a01561d37
15 changed files with 460 additions and 143 deletions

View file

@ -53,6 +53,11 @@
"description": {
"en": "A bollard in the road",
"nl": "Een paaltje in de weg"
},
"preciseInput": {
"preferredBackground": ["photo"],
"snapToLayer": "cycleways_and_roads",
"maxSnapDistance": 25
}
},
{
@ -66,6 +71,11 @@
"description": {
"en": "Cycle barrier, slowing down cyclists",
"nl": "Fietshekjes, voor het afremmen van fietsers"
},
"preciseInput": {
"preferredBackground": ["photo"],
"snapToLayer": "cycleways_and_roads",
"maxSnapDistance": 25
}
}
],

View file

@ -66,6 +66,11 @@
"description": {
"en": "Crossing for pedestrians and/or cyclists",
"nl": "Oversteekplaats voor voetgangers en/of fietsers"
},
"preciseInput": {
"preferredBackground": ["photo"],
"snapToLayer": "cycleways_and_roads",
"maxSnapDistance": 25
}
},
{
@ -79,6 +84,11 @@
"description": {
"en": "Traffic signal on a road",
"nl": "Verkeerslicht op een weg"
},
"preciseInput": {
"preferredBackground": ["photo"],
"snapToLayer": "cycleways_and_roads",
"maxSnapDistance": 25
}
}
],

View file

@ -16,14 +16,14 @@
"en",
"nl"
],
"maintainer": "",
"maintainer": "MapComplete",
"defaultBackgroundId": "CartoDB.Voyager",
"icon": "./assets/themes/cycle_infra/cycle-infra.svg",
"version": "0",
"startLat": 51,
"startLon": 3.75,
"startZoom": 11,
"widenFactor": 0,
"widenFactor": 0.05,
"socialImage": "./assets/themes/cycle_infra/cycle-infra.svg",
"enableDownload": true,
"layers": [