Google Maps API - Routenplanung
Hallo,
ich bin auf der Suche nach einer Möglichkeit, wie ich durch das Aufrufen einer URL (soll zwei Adressen beinhalten) direkt auf eine Seite von Google Maps komme, die mir die Route zwischen den Punkten anzeigt.
Im Prinzip so:
http://maps.google.de/maps?f=d&source=s_d&saddr=Berlin&dadd ...
Allerdings hätte ich gerne nur die Karte ohne die anderen Elemente (Seitenkopf, Eingabefeld links).
Hat dafür jemand einen Tipp für mich?
ich bin auf der Suche nach einer Möglichkeit, wie ich durch das Aufrufen einer URL (soll zwei Adressen beinhalten) direkt auf eine Seite von Google Maps komme, die mir die Route zwischen den Punkten anzeigt.
Im Prinzip so:
http://maps.google.de/maps?f=d&source=s_d&saddr=Berlin&dadd ...
Allerdings hätte ich gerne nur die Karte ohne die anderen Elemente (Seitenkopf, Eingabefeld links).
Hat dafür jemand einen Tipp für mich?
Please also mark the comments that contributed to the solution of the article
Content-Key: 201368
Url: https://administrator.de/contentid/201368
Printed on: April 27, 2024 at 00:04 o'clock
4 Comments
Latest comment
Dazu musst du einfach den Parameter z=6 in der von Google erstellten URL entfernen, dann wird die Ansicht automatisch passend gezoomt.
Auszug: von www.svennerberg.com/2008/12/simple-maps-with-the-google-static-maps-api/
Auszug: von www.svennerberg.com/2008/12/simple-maps-with-the-google-static-maps-api/
No need for center or zoom
One cool thing with static maps is that if you have markers on it you don’t have to define the center of the map or the > zoom-level. It’s automatically calculated for you so all markers will fit. You can of course override it by explicitly defining center and zoom.
Grüße UweOne cool thing with static maps is that if you have markers on it you don’t have to define the center of the map or the > zoom-level. It’s automatically calculated for you so all markers will fit. You can of course override it by explicitly defining center and zoom.