-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Here we should be able to pass the markerClusterGroup
options.
Something like :
...
interface Props {
leafletObject: Map
markers: MarkerProps[]
options: MarkerClusterGroupOptions
}
export const useLMarkerCluster = async (props: Props) => {
// Get Leaflet from the window object
const L = window.L
// Lazy-load leaflet.markercluster
// Importing it at the top level will cause errors because it could be loaded before the Leaflet library
const { MarkerClusterGroup } = await import('leaflet.markercluster')
// Initialize marker cluster
const markerCluster = new MarkerClusterGroup(props.options)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request