refactoring(maplibre): WIP

This commit is contained in:
Pieter Vander Vennet 2023-03-24 19:21:15 +01:00
parent 231d67361e
commit 4d48b1cf2b
89 changed files with 1166 additions and 3973 deletions

View file

@ -175,7 +175,7 @@ export default class PointRenderingConfig extends WithContextLoader {
)
}
public GenerateLeafletStyle(
public RenderIcon(
tags: Store<OsmTags>,
clickable: boolean,
options?: {
@ -210,7 +210,7 @@ export default class PointRenderingConfig extends WithContextLoader {
// in MapLibre, the offset is relative to the _center_ of the object, with left = [-x, 0] and up = [0,-y]
let anchorW = 0
let anchorH = iconH / 2
let anchorH = 0
if (mode === "left") {
anchorW = -iconW / 2
}