Search code examples
google-mapsgoogle-maps-api-3custom-controlsinfowindow

custom controls are overlapping infowindow on Google Map Apiv3


I'm using Google maps V3 API . I've added a custom control on the Map. Its having a width of 350px and height 300px. When i open infoWindow on Map, custom control will overlap infoWindow.

is there any way to put infoWindow on top of the custom control?


Solution

  • Without some code in your question that demonstrates your issue, we're more or less just guessing at what your problem is.

    Looking at the reference documentation for google.maps.MapPanes tells us that the InfoWindow lives within the top-most layer, but it's not clear what pane these google.maps.Map.controls fall under.

    What you're trying to do may not be possible, by design. I'd say it was a purposeful decision by the Google Maps team to ensure that the map controls are never obscured.