author | sl |
Thu, 10 Apr 2014 12:45:33 +0200 | |
changeset 3 | 54ac29018aaf |
permissions | -rw-r--r-- |
sl@0 | 1 |
|
sl@0 | 2 |
|
sl@0 | 3 |
<!DOCTYPE html> |
sl@0 | 4 |
<html> |
sl@0 | 5 |
<head> |
sl@0 | 6 |
<title>Simple Map</title> |
sl@0 | 7 |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> |
sl@0 | 8 |
<meta charset="utf-8"> |
sl@0 | 9 |
<style> |
sl@0 | 10 |
html, body, #map-canvas { |
sl@0 | 11 |
margin: 0; |
sl@0 | 12 |
padding: 0; |
sl@0 | 13 |
height: 100%; |
sl@0 | 14 |
} |
sl@0 | 15 |
</style> |
sl@0 | 16 |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> |
sl@0 | 17 |
<script> |
sl@0 | 18 |
// Enable the visual refresh |
sl@0 | 19 |
google.maps.visualRefresh = true; |
sl@0 | 20 |
|
sl@0 | 21 |
var map; |
sl@0 | 22 |
function initialize() { |
sl@0 | 23 |
var mapOptions = { |
sl@0 | 24 |
zoom: 8, |
sl@0 | 25 |
center: new google.maps.LatLng(-34.397, 150.644), |
sl@0 | 26 |
mapTypeId: google.maps.MapTypeId.ROADMAP |
sl@0 | 27 |
}; |
sl@0 | 28 |
map = new google.maps.Map(document.getElementById('map-canvas'), |
sl@0 | 29 |
mapOptions); |
sl@0 | 30 |
} |
sl@0 | 31 |
|
sl@0 | 32 |
google.maps.event.addDomListener(window, 'load', initialize); |
sl@0 | 33 |
|
sl@0 | 34 |
</script> |
sl@0 | 35 |
</head> |
sl@0 | 36 |
<body> |
sl@0 | 37 |
<div id="map-canvas"></div> |
sl@0 | 38 |
</body> |
sl@0 | 39 |
</html> |
sl@0 | 40 |