forked from MapComplete/MapComplete
Remove notes from pdf export
This commit is contained in:
parent
917750ab6f
commit
d6eeb74481
2 changed files with 5 additions and 1 deletions
|
@ -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];
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue