From d6eeb7448120cb18da0cb9a923028d2411cd51fe Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 31 Jan 2022 11:01:05 +0100 Subject: [PATCH] Remove notes from pdf export --- Customizations/AllKnownLayouts.ts | 2 +- UI/ExportPDF.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts index ffdb1a0f1..2b3ce5c65 100644 --- a/Customizations/AllKnownLayouts.ts +++ b/Customizations/AllKnownLayouts.ts @@ -171,7 +171,7 @@ export class AllKnownLayouts { private static AllLayouts(): Map { const dict: Map = new Map(); for (const layoutConfigJson of known_themes.themes) { - const layout = new LayoutConfig(layoutConfigJson, true) + const layout = new LayoutConfig( layoutConfigJson, true) dict.set(layout.id, layout) for (let i = 0; i < layout.layers.length; i++) { let layer = layout.layers[i]; diff --git a/UI/ExportPDF.ts b/UI/ExportPDF.ts index c229e8c03..c4b9f6b4b 100644 --- a/UI/ExportPDF.ts +++ b/UI/ExportPDF.ts @@ -86,6 +86,10 @@ export default class ExportPDF { if (tile.layer.layerDef.minzoom > l.zoom) { return } + if(tile.layer.layerDef.id.startsWith("note_import")){ + // Don't export notes to import + return; + } new ShowDataLayer( { features: tile,