Sie sind auf Seite 1von 2

The Google Maps Javascript API Secret Diary: gmaps.

php
!

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map-canvas { height: 100% }
</style>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?
key=AIzaSyBZFe8s1jJnkVbtZty2gRO3XjhJ4vXcxCo&sensor=false">
</script>
<script type="text/javascript">
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(0, 0),
zoom: 3
};
var map = new google.maps.Map(document.getElementById("mapcanvas"),
mapOptions);
}

google.maps.event.addDomListener(window, 'load', initialize);


</script>
</head>
<body>
<div id="map-canvas"/>
</body>
</html>

Das könnte Ihnen auch gefallen