domanda semplice semplice...
perchè riesco a far visualizzare la mappa ma non i marcatori? ;(
codice:<div id="contatori"><script> $.cookie("alt", $(window).height()-25,{path: '/'}); $.cookie("larg", $(window).width(),{path: '/'}); </script> </div><link href="include/css/main.css" rel="stylesheet" type="text/css" /> <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(45.5615912,12.2981034); var myOptions = { zoom: 8, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); } var pos0 = new google.maps.LatLng(45.6662855,12.2420720);var marker0 = new google.maps.Marker({ position: pos0, map: map, title:"Store 1" }); google.maps.event.addListener(marker0, 'click', function() { map.set_center(pos0); map.set_zoom(8); });var pos1 = new google.maps.LatLng(45.5615912,12.2981034);var marker1 = new google.maps.Marker({ position: pos1, map: map, title:"Store 1" }); google.maps.event.addListener(marker1, 'click', function() { map.set_center(pos1); map.set_zoom(8); }); </script> <body style="padding:0px; margin:0px" onload="initialize()"> <div id="map_canvas" style="width:100%; height:100%"></div> </body>

Rispondi quotando