<!DOCTYPE html>
<html>
<body>
<h1>Learning HTML: Add Google Map to your web page</h1>
<div id="mapid" style="width:800px;height:800px;background:blue"></div>
<script>
function loadMap() {
var options = {
center: new google.maps.LatLng(11.5, -0.53),
zoom: 10,
mapTypeId: google.maps.MapTypeId.HYBRID
}
var map = new google.maps.Map(document.getElementById("mapid"), options);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?callback=loadMap"></script>
</body>
</html>
No comments:
Post a Comment