forked from MapComplete/MapComplete
Themes(note): don't show notes which have _no_ comments; these are probably redacted. Fix #2299
This commit is contained in:
parent
ceadd9fdef
commit
ec7b16638d
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
"_is_import_note:=(() => {const lines = feat.properties['_first_comment'].split('\\n'); const matchesMapCompleteURL = lines.map(l => l.match(\".*https://mapcomplete.\\(osm.be|org\\)/\\([a-zA-Z_-]+\\)\\(.html\\).*#import\")); const matchedIndexes = matchesMapCompleteURL.map((doesMatch, i) => [doesMatch !== null, i]).filter(v => v[0]).map(v => v[1]); return matchedIndexes[0] })()"
|
||||
],
|
||||
"minzoom": 7,
|
||||
"isShown": "_total_comments>0",
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Note",
|
||||
|
|
Loading…
Reference in a new issue