Skip to content

Commit 74cf345

Browse files
committed
fix: clean overlay remove
1 parent 5689399 commit 74cf345

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gmap-custom-marker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export default {
197197
destroyed() {
198198
if (this.$clusterObject) {
199199
this.$clusterObject.removeMarker(this.$overlay, true);
200-
} else {
200+
} else if (this.$overlay) {
201201
this.$overlay.setMap(null);
202202
this.$overlay = undefined;
203203
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue2-gmap-custom-marker",
3-
"version": "5.6.2",
3+
"version": "5.6.3",
44
"description": "vue 2 google map custom marker component allowing display custom html content on google map using vue2-google-maps",
55
"main": "gmap-custom-marker.vue",
66
"scripts": {

0 commit comments

Comments
 (0)