![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/04/2013, 07:48
|
| | Fecha de Ingreso: abril-2013
Mensajes: 19
Antigüedad: 11 años, 10 meses Puntos: 0 | |
Marcadores Hola a todos, estoy utilizando el siguiente código para crear y mostrar un mapa. hasta aquí todo bien, pero necesito crear más marcadores, alguien puede ayudarme ???
Un Saludo
Gracias
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var myLatlng = new google.maps.LatLng(41.4965171,2.0561193);
var myOptions = {
zoom: 15,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map($("#map_canvas").get(0), myOptions);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title:"Hola Mundo"
});
}
</script>
</head>
<body onload="initialize()">
<div id="map_canvas" style="width: 640px; height: 400px;"></div>
</body>
</html> |