style: suppress no-dom-manipulating — Maplibre GL integration requires imperative DOM
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user