Remove notes from pdf export

This commit is contained in:
pietervdvn 2022-01-31 11:01:05 +01:00
parent 917750ab6f
commit d6eeb74481
2 changed files with 5 additions and 1 deletions

View file

@ -171,7 +171,7 @@ export class AllKnownLayouts {
private static AllLayouts(): Map<string, LayoutConfig> {
const dict: Map<string, LayoutConfig> = new Map();
for (const layoutConfigJson of known_themes.themes) {
const layout = new LayoutConfig(<LayoutConfigJson>layoutConfigJson, true)
const layout = new LayoutConfig(<LayoutConfigJson> layoutConfigJson, true)
dict.set(layout.id, layout)
for (let i = 0; i < layout.layers.length; i++) {
let layer = layout.layers[i];

View file

@ -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,