Refactoring of import button, various improvements

This commit is contained in:
Pieter Vander Vennet 2021-12-10 04:00:02 +01:00
parent cabbdf96db
commit a095af4f18
17 changed files with 527 additions and 328 deletions

View file

@ -1,6 +1,6 @@
{
"id": "conflation",
"description": "If the import-button is set to conflate two ways, a preview is shown. This layer defines how this preview is rendered. This layer cannot be included in a theme.",
"description": "If the import-button moves OSM points, the imported way points or conflates, a preview is shown. This layer defines how this preview is rendered. This layer cannot be included in a theme.",
"minzoom": 1,
"source": {
"osmTags": {
@ -20,16 +20,36 @@
},
{
"location": "end",
"icon": "circle:#0f0",
"icon": {
"render": "circle:#0f0",
"mappings":[ {
"if": "move=no",
"then": "ring:#0f0"
}]
},
"iconSize": "10,10,center"
},
{
"location": "start",
"icon": "square:#f00",
"iconSize": "10,10,center"
"iconSize": {
"render":"10,10,center",
"mappings": [
{
"if": "distance<0.1",
"then": "0,0,center"
}
]
}
},
{
"width": "3",
"width": {
"render": "3",
"mappings": [{
"if": "distance<0.2",
"then": "0"
}]
},
"color": "#00f",
"dasharray": {
"render": "",