[ start | index | login ]
start > stefan > googlemaps

googlemaps

Created by stefan. Last edited by stefan, 6 years and 319 days ago. Viewed 687 times. #7
[diff] [history] [edit] [rdf]
labels
attachments

Google Maps Example

>>Google Maps is one of the newest babies of Google. They have got a public >>>>http://maps.google.com/apis/maps/ to display maps on the own page. You have to >>>>http://maps.google.com/apis/maps/signup.html to be allowed to use the service on the own site. You get a key that is valid for a single website URL.

Note that they are a bit picky about the URL: just the domain is not enough, the URL is expected to be the parent folder of where your document containing the google map code resides. This page's URL is >>http://www.stefanrufer.ch/snipsnap/space/stefan/googlemaps so the URL to be registered has to be >>http://www.stefanrufer.ch/snipsnap/space/stefan/

It looks really nice, tough:

The code for this is:

<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAqt0iryCBLWQEJ581k03Y8hSIY88rFBuRK_yxPA1AJWCV3kpccxQsarHVkL-02cWORczlPOOG7a5A2w" type="text/javascript"></script>
<div id="map" style="width: 500px; height: 400px"></div>
<script type="text/javascript">
  var map = new GMap(document.getElementById("map"));
  map.addControl(new GSmallMapControl());
  map.centerAndZoom(new GPoint(-122.1419, 37.4419), 4);
</script>
no comments | post comment
search www.stefanrufer.ch
Google

Content

Me?


Blog Calendar

< May 2012 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

Weblog summary 2007, 2006, 2005, 2004


Content managed by SnipSnap

M

snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt