Closed druskacik closed 1 month ago
Hi !
The useMarkerCluster
composable wasn't exposed since v1.1.0 which was released 5 minutes ago lol.
Please update your version of @nuxtjs/leaflet
and see how it goes ! 😄
Hm, I see you :D Thanks, I updated it and it works like charm.
But I wonder, does import L from 'leaflet'
work for you? (That's how L
is imported in the docs.) It doesn't for me, but import * as L from 'leaflet'
solves it.
Cool !
Yeah import L from 'leaflet'
actually works for me with a Client-only page.
I am trying to use the
Leaflet.markercluster
for my map, and I have two errors that are possibly related. I am following this documentation page.These are my dependencies:
venue-map-cluster.vue
:The
VenuesMapCluster
component is wrapped in theClientOnly
component:The setup above throws this error (the page does not load):
If I replace
import L from 'leaflet'
withimport * as L from 'leaflet'
, the page loads, but there's following error in the console:I tried reinstalling the node modules and the error still persists. How can I use marker clustering in Nuxt 3? Thanks!