Skip to content

Commit

Permalink
fix: import type MarkerClusterGroupOptions from `@types/leaflet.mar…
Browse files Browse the repository at this point in the history
…kercluster` (#141)
  • Loading branch information
ManUtopiK authored Dec 19, 2024
1 parent 47d5ce7 commit f4871be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@nuxt/test-utils": "^3.15.1",
"@nuxt/ui": "^2.20.0",
"@types/leaflet.heat": "^0.2.4",
"@types/leaflet.markercluster": "^1.5.5",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"caniuse-lite": "^1.0.30001687",
Expand Down
10 changes: 1 addition & 9 deletions src/runtime/composables/useLMarkerCluster.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MarkerOptions, Map, Marker } from 'leaflet'
import type { MarkerOptions, Map, Marker, MarkerClusterGroupOptions } from 'leaflet'

interface MarkerProps {
name?: string
Expand All @@ -11,14 +11,6 @@ interface MarkerProps {
popup?: string
}

interface MarkerClusterGroupOptions {
showCoverageOnHover?: boolean
zoomToBoundsOnClick?: boolean
spiderfyOnMaxZoom?: boolean
removeOutsideVisibleBounds?: boolean
spiderLegPolylineOptions?: any
}

interface Props {
leafletObject: Map
markers: MarkerProps[]
Expand Down

0 comments on commit f4871be

Please sign in to comment.