forked from MapComplete/MapComplete
		
	Fix PDF export: filtered layers are removed. Fix #514
This commit is contained in:
		
							parent
							
								
									f545575793
								
							
						
					
					
						commit
						2c2649a05b
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -87,12 +87,16 @@ export default class ExportPDF {
 | 
				
			||||||
        minimap.leafletMap .addCallbackAndRunD(leaflet => {
 | 
					        minimap.leafletMap .addCallbackAndRunD(leaflet => {
 | 
				
			||||||
            const bounds = BBox.fromLeafletBounds(leaflet.getBounds().pad(0.2))
 | 
					            const bounds = BBox.fromLeafletBounds(leaflet.getBounds().pad(0.2))
 | 
				
			||||||
            options.features.GetTilesPerLayerWithin(bounds, tile => {
 | 
					            options.features.GetTilesPerLayerWithin(bounds, tile => {
 | 
				
			||||||
 | 
					                if(tile.layer.layerDef.minzoom > l.zoom){
 | 
				
			||||||
 | 
					                    return
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                new ShowDataLayer(
 | 
					                new ShowDataLayer(
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        features: tile,
 | 
					                        features: tile,
 | 
				
			||||||
                        leafletMap: minimap.leafletMap,
 | 
					                        leafletMap: minimap.leafletMap,
 | 
				
			||||||
                        layerToShow: tile.layer.layerDef,
 | 
					                        layerToShow: tile.layer.layerDef,
 | 
				
			||||||
                        enablePopups: false
 | 
					                        enablePopups: false,
 | 
				
			||||||
 | 
					                        doShowLayer: tile.layer.isDisplayed
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue