Reputation: 17906
let´s say this is the very right of my google map :
i have a box with opacity there containing information, i wonder if there was a way to let overlays like markers not appear behind the box or define an area for them or add an overall overlay margin padding or sth like let google scroll the map until the infowindow is in full sight as google does when its not on the map
maybe someone has an opinion to this? could there be an easy overridal?
for any hint
thanks in advance
Upvotes: 1
Views: 198
Reputation: 117334
create a custom control at control-position RIGHT_CENTER
with a width equal to the width of the box and a height of 0
.
With the height of 0
this control will be hidden, but the API will still recognize this control and will try to pan the infoWindow to a position where it's not covered by the control.
Upvotes: 2