Código:
Aparte tengo mi fancybox que lo llamo asi function salvador() {
var myOptions = {
zoom: 15,
center: new google.maps.LatLng(-12.207291133469997,-76.93360671401024),
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("salvador"),
myOptions);
var image = 'http://www.lineauno.pe/iconmap.png';
var myLatLng = new google.maps.LatLng(-12.207291133469997,-76.93360671401024);
var beachMarker = new google.maps.Marker({
position: myLatLng,
map: map,
icon: image
});}
Código:
$(document).ready(function() {
$("#various1").fancybox({});
$("#various2").fancybox({});
});
Aca abren los mapas, el primer DIV contiene la capa contenedora del fancybox y el que le sigue el que ejecuta el google maps para abrir el mapa
Código HTML:
<div id="inline1" style="width:640px; height:480px; overflow:auto;"> <div id="salvador" style="width:640px; height:480px"></div> </div>
Código HTML:
<a id="various1" href="#inline1" onClick="salvador();"><img src="css/images/maps.png" /></a>
Código:
Pero no se donde agregarlo, no entiendo, ojala alguien me pueda ashudar, este es el link de la ashudagoogle.maps.event.trigger(map, 'resize');
http://groups.google.com/group/googl...4567d14901aca4


