forked from MapComplete/MapComplete
		
	Fix: only show fixmes on high zoom level (performance), add the option to remove a fixme
This commit is contained in:
		
							parent
							
								
									36cdcf0648
								
							
						
					
					
						commit
						2f5091a8cb
					
				
					 1 changed files with 18 additions and 3 deletions
				
			
		|  | @ -4,12 +4,11 @@ | ||||||
|     "en": "OSM objects with FIXME tags", |     "en": "OSM objects with FIXME tags", | ||||||
|     "de": "OSM-Objekte mit FIXME-Tags" |     "de": "OSM-Objekte mit FIXME-Tags" | ||||||
|   }, |   }, | ||||||
|   "minzoom": 12, |   "minzoom": 16, | ||||||
|   "description": { |   "description": { | ||||||
|     "en": "OSM objects that likely need to be fixed, based on a FIXME tag.", |     "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." |     "de": "OSM-Objekte, die wahrscheinlich korrigiert werden müssen, basierend auf einem FIXME-Tag." | ||||||
|   }, |   }, | ||||||
|   "shownByDefault": false, |  | ||||||
|   "syncSelection": "theme-only", |   "syncSelection": "theme-only", | ||||||
|   "source": { |   "source": { | ||||||
|     "osmTags": { |     "osmTags": { | ||||||
|  | @ -28,6 +27,21 @@ | ||||||
|   "tagRenderings": [ |   "tagRenderings": [ | ||||||
|     { |     { | ||||||
|       "id": "fixme", |       "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": { |       "render": { | ||||||
|         "en": "Fixme Text: {fixme}", |         "en": "Fixme Text: {fixme}", | ||||||
|         "de": "Fixme Text: {fixme}" |         "de": "Fixme Text: {fixme}" | ||||||
|  | @ -49,7 +63,8 @@ | ||||||
|         "centroid", |         "centroid", | ||||||
|         "point" |         "point" | ||||||
|       ], |       ], | ||||||
|       "icon": "./assets/svg/bug.svg" |       "icon": "./assets/svg/bug.svg", | ||||||
|  |       "label": "<div class='bg-white rounded p-2'>{fixme}</div>" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "color": "#ff0000", |       "color": "#ff0000", | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue