diff --git a/UI/ExportPDF.ts b/UI/ExportPDF.ts index 1bb57fb1c2..074efc379a 100644 --- a/UI/ExportPDF.ts +++ b/UI/ExportPDF.ts @@ -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 } ) })