<!DOCTYPE html>
<html>
<head>
<title>Mobile-Web-App: Google Maps</title>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<style>
#mapcanvas { height: 360px; width: 480px}
</style>
<script>
var map;
function loadmap(){
var options = {
zoom: 15,
center: new google.maps.LatLng(51.507222, -0.1275),
mapTypeId: google.maps.MapTypeId.SATELLITE,
};
map = new google.maps.Map(document.getElementById("mapcanvas"), options);
}
</script>
</head>
<body onload="loadmap();">
<h1>Mobile-Web-App: Google Maps</h1>
<div id="mapcanvas"></div>
</body>
</html>
Wednesday, February 22, 2012
Embed Google Maps in web page using Javascript
Labels:
Code.Javascript,
Geo,
Google APIs,
Maps
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment