Skip to content

Commit f4871be

Browse files
authored
fix: import type MarkerClusterGroupOptions from @types/leaflet.markercluster (#141)
1 parent 47d5ce7 commit f4871be

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@nuxt/test-utils": "^3.15.1",
5151
"@nuxt/ui": "^2.20.0",
5252
"@types/leaflet.heat": "^0.2.4",
53+
"@types/leaflet.markercluster": "^1.5.5",
5354
"@types/node": "^22.10.1",
5455
"@typescript-eslint/eslint-plugin": "^8.17.0",
5556
"caniuse-lite": "^1.0.30001687",

src/runtime/composables/useLMarkerCluster.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { MarkerOptions, Map, Marker } from 'leaflet'
1+
import type { MarkerOptions, Map, Marker, MarkerClusterGroupOptions } from 'leaflet'
22

33
interface MarkerProps {
44
name?: string
@@ -11,14 +11,6 @@ interface MarkerProps {
1111
popup?: string
1212
}
1313

14-
interface MarkerClusterGroupOptions {
15-
showCoverageOnHover?: boolean
16-
zoomToBoundsOnClick?: boolean
17-
spiderfyOnMaxZoom?: boolean
18-
removeOutsideVisibleBounds?: boolean
19-
spiderLegPolylineOptions?: any
20-
}
21-
2214
interface Props {
2315
leafletObject: Map
2416
markers: MarkerProps[]

0 commit comments

Comments
 (0)