forked from MapComplete/MapComplete
		
	Fix note import layers
This commit is contained in:
		
							parent
							
								
									0a8164c378
								
							
						
					
					
						commit
						96dc751c8c
					
				
					 2 changed files with 16 additions and 1 deletions
				
			
		|  | @ -71,7 +71,7 @@ export default class DynamicGeoJsonTileSource extends DynamicTileSource { | ||||||
|                     if (!isWhiteListed) { |                     if (!isWhiteListed) { | ||||||
|                         console.debug( |                         console.debug( | ||||||
|                             "Not downloading tile", |                             "Not downloading tile", | ||||||
|                                 zxy, |                                 zxy,"for layer",layer.id, | ||||||
|                             "as it is not on the whitelist" |                             "as it is not on the whitelist" | ||||||
|                         ) |                         ) | ||||||
|                         return undefined |                         return undefined | ||||||
|  |  | ||||||
|  | @ -101,6 +101,10 @@ export default class CreateNoteImportLayer extends Conversion<LayerConfigJson, L | ||||||
|                 geoJsonZoomLevel: 10, |                 geoJsonZoomLevel: 10, | ||||||
|                 maxCacheAge: 0, |                 maxCacheAge: 0, | ||||||
|             }, |             }, | ||||||
|  |              /* We need to set 'pass_all_features' | ||||||
|  |              There are probably many note_import-layers, and we don't want the first one to gobble up all notes and then discard them... | ||||||
|  |              */ | ||||||
|  |             passAllFeatures: true, | ||||||
|             minzoom: Math.min(12, layerJson.minzoom - 2), |             minzoom: Math.min(12, layerJson.minzoom - 2), | ||||||
|             title: { |             title: { | ||||||
|                 render: trs(t.popupTitle, { title }), |                 render: trs(t.popupTitle, { title }), | ||||||
|  | @ -170,6 +174,17 @@ export default class CreateNoteImportLayer extends Conversion<LayerConfigJson, L | ||||||
|                     id: "nearby_images", |                     id: "nearby_images", | ||||||
|                     render: tr(t.nearbyImagesIntro), |                     render: tr(t.nearbyImagesIntro), | ||||||
|                 }, |                 }, | ||||||
|  |                 { | ||||||
|  |                     id:"all_tags", | ||||||
|  |                     render: "{all_tags()}", | ||||||
|  |                     metacondition: { | ||||||
|  |                         or: [ | ||||||
|  |                             "__featureSwitchIsDebugging=true", | ||||||
|  |                             "mapcomplete-show_tags=full", | ||||||
|  |                             "mapcomplete-show_debug=yes", | ||||||
|  |                         ], | ||||||
|  |                     }, | ||||||
|  |                 } | ||||||
|             ], |             ], | ||||||
|             mapRendering: [ |             mapRendering: [ | ||||||
|                 { |                 { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue