<html>
<body>
<h1>My First Google Map</h1>
<div id="map" style="width:400px;height:400px">
function myMap() {
var mapOptions = {
center: new google.maps.LatLng(51.5, -0.12),
zoom: 10,
mapTypeId: google.maps.MapTypeId.HYBRID
}
var map = new google.maps.Map(document.getElementById("map"), mapOptions);
}
<script src="https://maps.googleapis.com/maps/api/js?callback=myMap"></script>
</body>
<html>
Read more on: http://www.w3schools.com/graphics/google_maps_intro.asp
Geen opmerkingen:
Een reactie posten