Skip to content

Commit 45e6f24

Browse files
committed
fix(GoogleMaps): ensure center marker is place when using mapOptions
1 parent 9a2b44a commit 45e6f24

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

playground/pages/third-parties/google-maps/markers.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function removeMarkers() {
3838
:map-options="mapOptions"
3939
:markers="markers"
4040
above-the-fold
41-
@init="setupGoogleMaps"
4241
/>
4342
</div>
4443
<div>

src/runtime/components/ScriptGoogleMaps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ onMounted(() => {
240240
watch(options, () => {
241241
map.value?.setOptions(options.value)
242242
})
243-
watch([() => props.markers, map], () => {
243+
watch([() => props.markers, map], async () => {
244244
if (!map.value) {
245245
return
246246
}

0 commit comments

Comments
 (0)