forked from MapComplete/MapComplete
Refactoring: split icons into proper layered icons, fix and rerun shops-thief
This commit is contained in:
parent
d6cd0516bb
commit
19a760178b
307 changed files with 26845 additions and 116541 deletions
32
src/test.ts
32
src/test.ts
|
@ -1,4 +1,8 @@
|
|||
import { Utils } from "./Utils"
|
||||
import SvelteUIElement from "./UI/Base/SvelteUIElement"
|
||||
import PointRenderingConfig from "./Models/ThemeConfig/PointRenderingConfig"
|
||||
import { UIEventSource } from "./Logic/UIEventSource"
|
||||
import Marker from "./UI/Map/Marker.svelte"
|
||||
|
||||
class Test {
|
||||
public async test() {
|
||||
|
@ -13,4 +17,30 @@ class Test {
|
|||
}
|
||||
}
|
||||
|
||||
new Test().test()
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue