2023-09-15 01:16:33 +02:00
|
|
|
import { Utils } from "./Utils"
|
2023-10-06 23:56:50 +02:00
|
|
|
import SvelteUIElement from "./UI/Base/SvelteUIElement"
|
|
|
|
import PointRenderingConfig from "./Models/ThemeConfig/PointRenderingConfig"
|
|
|
|
import { UIEventSource } from "./Logic/UIEventSource"
|
|
|
|
import Marker from "./UI/Map/Marker.svelte"
|
2023-03-26 05:58:28 +02:00
|
|
|
|
2023-09-15 01:16:33 +02:00
|
|
|
class Test {
|
|
|
|
public async test() {
|
|
|
|
await Utils.waitFor(0)
|
|
|
|
const response = await fetch("http://localhost:1235/layers/atm/atm.json", {
|
|
|
|
method: "POST",
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/json;charset=utf-8",
|
|
|
|
},
|
|
|
|
body: JSON.stringify({}),
|
|
|
|
})
|
|
|
|
}
|
2023-03-28 05:13:48 +02:00
|
|
|
}
|
2023-04-06 01:33:08 +02:00
|
|
|
|
2023-10-06 23:56:50 +02:00
|
|
|
const tags = new UIEventSource({
|
|
|
|
id: "node/13",
|
|
|
|
amenity: "public_bookcase",
|
|
|
|
})
|
|
|
|
|
|
|
|
const config = new PointRenderingConfig(
|
|
|
|
{
|
|
|
|
location: ["point"],
|
|
|
|
iconSize: "20,20",
|
|
|
|
marker: [
|
|
|
|
{
|
|
|
|
icon: "circle",
|
|
|
|
color: "orange",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: "./assets/layers/atm.atm.svg",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"test"
|
|
|
|
)
|
|
|
|
|
|
|
|
new SvelteUIElement(Marker, {
|
|
|
|
config,
|
|
|
|
tags,
|
|
|
|
}).AttachTo("maindiv")
|
|
|
|
// new Test().test()
|