forked from MapComplete/MapComplete
More refactoring
This commit is contained in:
parent
6890c5189e
commit
c2d477c97a
12 changed files with 91 additions and 73 deletions
36
assets/layers/cluster_style/cluster_style.json
Normal file
36
assets/layers/cluster_style/cluster_style.json
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"id": "cluster_style",
|
||||
"description": "The style for the clustering in all themes.",
|
||||
"source": {
|
||||
"osmTags": "tileId~*"
|
||||
},
|
||||
"color": {
|
||||
"render": "#3c3",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "count>200",
|
||||
"then": "#f33"
|
||||
},
|
||||
{
|
||||
"if": "count>100",
|
||||
"then": "#c93"
|
||||
},
|
||||
{
|
||||
"if": "count>50",
|
||||
"then": "#cc3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"width": {
|
||||
"render": "1"
|
||||
},
|
||||
"label": {
|
||||
"render": "<div class='rounded-full text-xl font-bold' style='width: 2rem; height: 2rem; background: white'>{count}</div>",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "count>99",
|
||||
"then": "<div class='rounded-full text-xl font-bold flex flex-col' style='width: 2.5rem; height: 2.5rem; background: white'>>99</div>"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
"nl": "Een kaart om toeristisch relevante info op aan te duiden"
|
||||
},
|
||||
"description": {
|
||||
"nl": "Op deze kaart kan je info zien voor toeristen en zelf aanpasingen maken, zichtbaar voor iedereen"
|
||||
"nl": "Op deze kaart kan je info zien die relevant is voor toerisme, zoals:<br/><ul><li>Eetgelegenheden</li><li>Cafés en bars</li><li>(Fiets)oplaadpunten</li><li>Fietspompen, fietserverhuur en fietswinkels</li><li>Uitkijktorens</li><li>...</li></ul> Zie je fouten op de kaart? Dan kan je zelf makkelijk aanpasingen maken, die zichtbaar zijn voor iedereen. Hiervoor dien je een gratis OpenStreetMap account voor te maken.<br/><br/>Met de steun van Toerisme Vlaanderen<img src='./assets/themes/toerisme_vlaanderen/logo.png' />"
|
||||
},
|
||||
"icon": "./assets/svg/star.svg",
|
||||
"startZoom": 8,
|
||||
|
@ -39,9 +39,5 @@
|
|||
"binocular",
|
||||
"observation_tower"
|
||||
],
|
||||
"overiddeAll": {
|
||||
"minZoomVisible": 0
|
||||
},
|
||||
|
||||
"hideFromOverview": true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue