Add fixme layer (#1390)

This commit is contained in:
Robin van der Linde 2023-05-06 12:19:35 +02:00
parent 1a41d17ece
commit 0e898967a5
No known key found for this signature in database
GPG key ID: 53956B3252478F0D
3 changed files with 59 additions and 3 deletions

View file

@ -0,0 +1,54 @@
{
"id": "fixme",
"name": {
"en": "OSM objects with FIXME tags"
},
"minzoom": 12,
"description": {
"en": "OSM objects that likely need to be fixed, based on a FIXME tag."
},
"shownByDefault": false,
"syncSelection": "theme-only",
"source": {
"osmTags": {
"or": [
"fixme~*",
"FIXME~*"]
}
},
"title": {
"render": {
"en": "OSM object with FIXME tag"
}
},
"tagRenderings": [
{
"id": "fixme",
"render": {
"en": "Fixme Text: {fixme}"
}
},
{
"id": "note",
"condition": "note~*",
"render": {
"en": "Note Text: {note}"
}
},
"all_tags"
],
"mapRendering": [
{
"location": [
"centroid",
"point"
],
"icon": "./assets/svg/bug.svg"
},
{
"color": "#ff0000",
"dashArray": "5,5",
"width": 2
}
]
}

View file

@ -8,10 +8,11 @@
},
"description": "This layer shows notes on OpenStreetMap. Having this layer in your theme will trigger the 'add new note' functionality in the 'addNewPoint'-popup (or if your theme has no presets, it'll enable adding notes)",
"source": {
"osmTags": "id~*",
"osmTags": "date_created~*",
"geoJson": "https://api.openstreetmap.org/api/0.6/notes.json?limit=10000&closed=7&bbox={x_min},{y_min},{x_max},{y_max}",
"geoJsonZoomLevel": 12,
"maxCacheAge": 0
"maxCacheAge": 0,
"isOsmCache": false
},
"minzoom": 10,
"title": {

View file

@ -30,6 +30,7 @@
"clustering": false,
"enableDownload": true,
"layers": [
"note"
"note",
"fixme"
]
}