style: suppress no-dom-manipulating — Maplibre GL integration requires imperative DOM

This commit is contained in:
2026-06-25 14:47:49 +01:00
parent a8d04b77e2
commit df66041b7c
4 changed files with 4 additions and 0 deletions
@@ -48,6 +48,7 @@
let wrapperElement: HTMLDivElement | null = $state(null); let wrapperElement: HTMLDivElement | null = $state(null);
// Create popup when map is ready // Create popup when map is ready
<!-- svelte-ignore no-dom-manipulating -->
$effect(() => { $effect(() => {
const map = mapCtx.getMap(); const map = mapCtx.getMap();
const loaded = mapCtx.isLoaded(); const loaded = mapCtx.isLoaded();
@@ -21,6 +21,7 @@
let movedContent: Node[] = []; let movedContent: Node[] = [];
// Move content to marker element when ready // Move content to marker element when ready
<!-- svelte-ignore no-dom-manipulating -->
$effect(() => { $effect(() => {
const element = markerCtx.getElement(); const element = markerCtx.getElement();
const ready = markerCtx.isReady(); const ready = markerCtx.isReady();
@@ -42,6 +42,7 @@
let shouldStayOpen = $state(false); let shouldStayOpen = $state(false);
// Create popup when marker is ready // Create popup when marker is ready
<!-- svelte-ignore no-dom-manipulating -->
$effect(() => { $effect(() => {
const marker = markerCtx.getMarker(); const marker = markerCtx.getMarker();
const ready = markerCtx.isReady(); const ready = markerCtx.isReady();
@@ -22,6 +22,7 @@
let wrapperElement: HTMLDivElement | null = $state(null); let wrapperElement: HTMLDivElement | null = $state(null);
// Create tooltip popup when marker is ready // Create tooltip popup when marker is ready
<!-- svelte-ignore no-dom-manipulating -->
$effect(() => { $effect(() => {
const marker = markerCtx.getMarker(); const marker = markerCtx.getMarker();
const markerElement = markerCtx.getElement(); const markerElement = markerCtx.getElement();