You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/scripts/google-maps/2.api/13.overlay-view.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,42 @@ For simple cases where remounting is acceptable, `v-if` also works:
94
94
</template>
95
95
```
96
96
97
+
## Map Panning
98
+
99
+
When an overlay opens, the map automatically pans so the overlay is fully visible, matching the native `InfoWindow` behavior. The default padding is 40px from the map edge.
When used inside a `ScriptGoogleMapsMarkerClusterer`, overlay views automatically hide when their parent marker joins a cluster on zoom out. This prevents orphaned overlays from floating over cluster icons.
118
+
119
+
When its marker is clustered, the overlay updates `v-model:open` to `false`. The user will need to reopen the overlay (e.g. click the marker again) after zooming back in.
The `blockMapInteraction` prop (default `true`) calls `google.maps.OverlayView.preventMapHitsAndGesturesFrom()`{lang="ts"} to stop clicks, taps, and drags from propagating through the overlay to the map. Set it to `false` for non-interactive overlays like labels.
0 commit comments