Google Maps V3 – Scrollbar bei InfoWindow entfernen

Gestern wurde die V2 API von Google Maps abgeschaltet. Nach der Migration auf V3 ist mir unter anderem aufgefallen dass der InfoWindow Content manchmal mit Scrollbars dargestellt wird:

InfoWindow

Ein kurzer Blick in den Quelltext verrät auch gleich den „Schuldigen“:
„Google Maps V3 — Scrollbar bei InfoWindow entfernen“ weiterlesen

Set zoom level of a google map so that all markers are visible

A couple of months ago I needed to set the zoom level of a Google Map so that all markers in the map are visible. After hours of reading the API documentation, I did not find any solution on that issue, so I wrote a little Javascript function that does exactly that.

Hi out there,
A couple of months ago I needed to set the zoom level of a Google Map so that all markers in the map are visible. After hours of reading the API documentation, I did not find any solution on that issue, so I wrote a little Javascript function that does exactly that.

This function has to be called after all markers have been inserted into the map.
Here I set up a quick example: https://www.adick.at/wp-content/uploads/map/

EDIT:
The above example is deprecated. It is based on a function I wrote some months ago –
now there is a better and more common way for doing this: http://econym.org.uk/gmap/example_map14.htm

Cheers
Alex