Skip to content

Commit

Permalink
Fix: only show fixmes on high zoom level (performance), add the optio…
Browse files Browse the repository at this point in the history
…n to remove a fixme
  • Loading branch information
pietervdvn committed Jun 20, 2023
1 parent 36cdcf0 commit 2f5091a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions assets/layers/fixme/fixme.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"en": "OSM objects with FIXME tags",
"de": "OSM-Objekte mit FIXME-Tags"
},
"minzoom": 12,
"minzoom": 16,
"description": {
"en": "OSM objects that likely need to be fixed, based on a FIXME tag.",
"de": "OSM-Objekte, die wahrscheinlich korrigiert werden müssen, basierend auf einem FIXME-Tag."
},
"shownByDefault": false,
"syncSelection": "theme-only",
"source": {
"osmTags": {
Expand All @@ -28,6 +27,21 @@
"tagRenderings": [
{
"id": "fixme",
"freeform": {
"key": "fixme",
"type": "text"
},
"question": {
"en": "What is wrong with this feature?"
},
"mappings": [
{
"if": "fixme=",
"then": {
"en": "This issue has been resolved"
}
}
],
"render": {
"en": "Fixme Text: {fixme}",
"de": "Fixme Text: {fixme}"
Expand All @@ -49,7 +63,8 @@
"centroid",
"point"
],
"icon": "./assets/svg/bug.svg"
"icon": "./assets/svg/bug.svg",
"label": "<div class='bg-white rounded p-2'>{fixme}</div>"
},
{
"color": "#ff0000",
Expand Down

0 comments on commit 2f5091a

Please sign in to comment.