From 2fbb9aab3842964652ac0f75425768b8ddd6fb7b Mon Sep 17 00:00:00 2001 From: recrof Date: Sun, 20 Jul 2025 00:17:37 +0200 Subject: [PATCH] bugfix: avoid vue3 interfering with leaflet object --- src/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.js b/src/map.js index e96ffba..096213c 100644 --- a/src/map.js +++ b/src/map.js @@ -1,4 +1,4 @@ -import { createApp, reactive, ref, computed, watch, onMounted } from '../lib/vue.esm-browser.js'; +import { createApp, reactive, ref, computed, watch, onMounted, toRaw } from '../lib/vue.esm-browser.js'; import * as ntools from './node-utils.js'; const apiUrl = 'https://map.meshcore.dev/api/v1/nodes'; @@ -239,7 +239,7 @@ createApp({ } for(const node of nodes) { - markerClusterGroup.addLayer(node.marker); + markerClusterGroup.addLayer(toRaw(node.marker)); } map.addLayer(markerClusterGroup);