mirror of
https://github.com/meshcore-dev/map.meshcore.dev.git
synced 2026-04-20 22:13:50 +00:00
bugfix: avoid vue3 interfering with leaflet object
This commit is contained in:
parent
c16985e0cd
commit
2fbb9aab38
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue