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 => {
|
||||
const bounds = BBox.fromLeafletBounds(leaflet.getBounds().pad(0.2))
|
||||
options.features.GetTilesPerLayerWithin(bounds, tile => {
|
||||
if(tile.layer.layerDef.minzoom > l.zoom){
|
||||
return
|
||||
}
|
||||
new ShowDataLayer(
|
||||
{
|
||||
features: tile,
|
||||
leafletMap: minimap.leafletMap,
|
||||
layerToShow: tile.layer.layerDef,
|
||||
enablePopups: false
|
||||
enablePopups: false,
|
||||
doShowLayer: tile.layer.isDisplayed
|
||||
}
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue