Skip to content

Commit 45a8b07

Browse files
authored
fix(GoogleMaps): center marker always shown on maps placeholder image #402 (#454)
1 parent 5d1403e commit 45a8b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/components/ScriptGoogleMaps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ const placeholder = computed(() => {
418418
style: props.mapOptions?.styles ? transformMapStyles(props.mapOptions.styles) : undefined,
419419
markers: [
420420
...(props.markers || []),
421-
center,
421+
(typeof props.centerMarker === 'undefined' || props.centerMarker) && center,
422422
]
423423
.filter(Boolean)
424424
.map((m) => {

0 commit comments

Comments
 (0)