bugfix: avoid vue3 interfering with leaflet object

This commit is contained in:
recrof 2025-07-20 00:17:37 +02:00
parent c16985e0cd
commit 2fbb9aab38

View file

@ -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);