<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=http://maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=json&oe=utf8\
&sensor=true_or_false&key=ABQIAAAA2MVQU2WsYgQJfgb_atKYwxSwI0hdl5s0_iI4g6qzCwp7oxQUtxS6necfWhUk2vZRYMDc1vIW8r4qgg"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GMapTypeControl());
map.addControl(new GLargeMapControl());
map.addControl(new GScaleControl());
map.addControl(new GOverviewMapControl());
map.setCenter(new GLatLng(-3.990138,-79.20446), 5);
map.setMapType(G_HYBRID_TYPE);
function addtag(point, address) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(address); } );
return marker;
}
var point = new GLatLng(3.990138,-79.20446);
var address = '<b>ECUADOR</b><br/><i>Centro de ECUADOR</i><br /><a href="http://www.centrodeecuador.com">Web del Centro de Ecuador</a>';
var marker = addtag(point, address);
map.addOverlay(marker);
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" align="center" style="width: 500px; height: 500px"></div>
<hr/>
</body>
</html>
Me gusta:
Sé el primero en decir que te gusta esta page.