Feature: add more vector layers from maptiler; add some fixes to theme setting handler

This commit is contained in:
Pieter Vander Vennet 2023-09-24 18:24:10 +02:00
parent 94f9fe7b5f
commit b3edbe846c
18 changed files with 155 additions and 99 deletions

View file

@ -29,7 +29,7 @@
const templateUrls = SvgToPdf.templates[templateName].pages
const templates: string[] = await Promise.all(templateUrls.map((url) => Utils.download(url)))
console.log("Templates are", templates)
const bg = state.mapProperties.rasterLayer.data ?? AvailableRasterLayers.maplibre
const bg = state.mapProperties.rasterLayer.data ?? AvailableRasterLayers.maptilerDefaultLayer
const creator = new SvgToPdf(title, templates, {
state,
freeComponentId: "belowmap",