forked from MapComplete/MapComplete
Fix: png correctly outputs all markers now
This commit is contained in:
parent
47ae4cb456
commit
905f796baa
20 changed files with 1509 additions and 842 deletions
32
test.ts
32
test.ts
|
@ -4,12 +4,8 @@ import ThemeViewState from "./Models/ThemeViewState"
|
|||
import Combine from "./UI/Base/Combine"
|
||||
import SpecialVisualizations from "./UI/SpecialVisualizations"
|
||||
import {VariableUiElement} from "./UI/Base/VariableUIElement"
|
||||
import SvelteUIElement from "./UI/Base/SvelteUIElement"
|
||||
import {SvgToPdf} from "./Utils/svgToPdf"
|
||||
import {Utils} from "./Utils"
|
||||
import DeleteWizard from "./UI/Popup/DeleteFlow/DeleteWizard.svelte";
|
||||
import DeleteConfig from "./Models/ThemeConfig/DeleteConfig";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
|
||||
function testspecial() {
|
||||
const layout = new LayoutConfig(<any>theme, true) // qp.data === "" ? : new AllKnownLayoutsLazy().get(qp.data)
|
||||
|
@ -32,33 +28,7 @@ async function testPdf() {
|
|||
await pdf.ConvertSvg("nl")
|
||||
}
|
||||
|
||||
|
||||
function testDelete() {
|
||||
const layout = new LayoutConfig(<any>theme, true) // qp.data === "" ? : new AllKnownLayoutsLazy().get(qp.data)
|
||||
const state = new ThemeViewState(layout)
|
||||
const tags = new UIEventSource({"amenity": "public_bookcase"})
|
||||
new SvelteUIElement(DeleteWizard, {
|
||||
state,
|
||||
tags,
|
||||
layer: layout.layers.find(l => l.id === "public_bookcase"),
|
||||
featureId: "node/10944136609",
|
||||
deleteConfig: new DeleteConfig({
|
||||
nonDeleteMappings: [
|
||||
{
|
||||
if: {"and": ["disused:amenity=public_bookcase", "amenity="]},
|
||||
then: {
|
||||
en: "The bookcase still exists but is not maintained anymore"
|
||||
}
|
||||
}
|
||||
]
|
||||
}, "test")
|
||||
}).AttachTo("maindiv")
|
||||
|
||||
}
|
||||
|
||||
testDelete()
|
||||
|
||||
// testPdf().then((_) => console.log("All done"))
|
||||
testPdf().then((_) => console.log("All done"))
|
||||
/*/
|
||||
testspecial()
|
||||
//*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue