Skip to content

Commit

Permalink
fix(GoogleMaps): ensure center marker is place when using mapOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Aug 22, 2024
1 parent 9a2b44a commit 45e6f24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion playground/pages/third-parties/google-maps/markers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function removeMarkers() {
:map-options="mapOptions"
:markers="markers"
above-the-fold
@init="setupGoogleMaps"
/>
</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/ScriptGoogleMaps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ onMounted(() => {
watch(options, () => {
map.value?.setOptions(options.value)
})
watch([() => props.markers, map], () => {
watch([() => props.markers, map], async () => {
if (!map.value) {
return
}
Expand Down

0 comments on commit 45e6f24

Please sign in to comment.