Skip to content

Commit aa47872

Browse files
committed
Try to fix error "marker.getDraggable is not a function"
1 parent dfd3062 commit aa47872

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"webpack-merge": "^5.10.0"
4444
},
4545
"homepage": "https://vue-map.netlify.app/",
46+
"bundleDependencies": false,
4647
"license": "MIT",
4748
"repository": {
4849
"type": "git",

src/components/cluster.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default buildComponent({
8383
}
8484
return MarkerClusterer
8585
},
86-
ctrArgs: ({ map, ...otherOptions }) => [map, otherOptions],
86+
ctrArgs: ({ map, ...otherOptions }) => [map, [], otherOptions],
8787
afterCreate(inst) {
8888
const reinsertMarkers = () => {
8989
const oldMarkers = inst.getMarkers()

src/components/map.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ export default {
199199
.vue-map {
200200
width: 100%;
201201
height: 100%;
202-
min-height: 2rem;
203202
}
203+
204+
205+
.vue-map-container {
206+
height: 100%;
207+
}
208+
204209
</style>

0 commit comments

Comments
 (0)