forked from MapComplete/MapComplete
		
	Fix caching
This commit is contained in:
		
							parent
							
								
									65dbcb4f12
								
							
						
					
					
						commit
						eb8fea5692
					
				
					 2 changed files with 10 additions and 7 deletions
				
			
		|  | @ -82,12 +82,15 @@ export default class FilteringFeatureSource implements FeatureSourceForLayer, Ti | |||
|                 } | ||||
|             } | ||||
| 
 | ||||
|             const tagsFilter = Array.from(layer.appliedFilters.data.values()); | ||||
|             for (const filter of tagsFilter ?? []) { | ||||
|                 const neededTags : TagsFilter = filter?.currentFilter | ||||
|                 if (neededTags !== undefined && !neededTags.matchesProperties(f.feature.properties)) { | ||||
|                     // Hidden by the filter on the layer itself - we want to hide it no matter wat
 | ||||
|                     return false; | ||||
|             const appliedFilters = layer.appliedFilters?.data | ||||
|             if(appliedFilters !== undefined){ | ||||
|                 const tagsFilter = Array.from(appliedFilters.values()); | ||||
|                 for (const filter of tagsFilter ?? []) { | ||||
|                     const neededTags : TagsFilter = filter?.currentFilter | ||||
|                     if (neededTags !== undefined && !neededTags.matchesProperties(f.feature.properties)) { | ||||
|                         // Hidden by the filter on the layer itself - we want to hide it no matter wat
 | ||||
|                         return false; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue