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> {
|
private static AllLayouts(): Map<string, LayoutConfig> {
|
||||||
const dict: Map<string, LayoutConfig> = new Map();
|
const dict: Map<string, LayoutConfig> = new Map();
|
||||||
for (const layoutConfigJson of known_themes.themes) {
|
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)
|
dict.set(layout.id, layout)
|
||||||
for (let i = 0; i < layout.layers.length; i++) {
|
for (let i = 0; i < layout.layers.length; i++) {
|
||||||
let layer = layout.layers[i];
|
let layer = layout.layers[i];
|
||||||
|
|
|
@ -86,6 +86,10 @@ export default class ExportPDF {
|
||||||
if (tile.layer.layerDef.minzoom > l.zoom) {
|
if (tile.layer.layerDef.minzoom > l.zoom) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if(tile.layer.layerDef.id.startsWith("note_import")){
|
||||||
|
// Don't export notes to import
|
||||||
|
return;
|
||||||
|
}
|
||||||
new ShowDataLayer(
|
new ShowDataLayer(
|
||||||
{
|
{
|
||||||
features: tile,
|
features: tile,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue