node.js - Why are the Google Maps Marker and InfoWindow not centered? -


i make map code

var map; var myoptions = {     center: new google.maps.latlng(-31.403759,-64.174232),     zoom: 12,     pancontrol: true,     zoomcontrol: true,     maptypecontrol: true,     scalecontrol: true,     streetviewcontrol: true,     overviewmapcontrol: true,     maptypeid: google.maps.maptypeid.roadmap  };  function iniciar() {     map = new google.maps.map(document.getelementbyid("map"),myoptions); }  function marcar(lat, lng) {     var contentstring = '<div id="content">'+         '<div id="sitenotice">'+         '</div>'+         '<h1 id="firstheading" class="firstheading">uluru</h1>'+         '<div id="bodycontent">'+         '<p><b>uluru</b>, referred <b>ayers rock</b>, large ' +         'sandstone rock formation in southern part of '+         'northern territory, central australia. lies 335 km (208 mi) '+         'south west of nearest large town, alice springs; 450 km '+         '(280 mi) road. kata tjuta , uluru 2 major '+         'features of uluru - kata tjuta national park. uluru '+         'sacred pitjantjatjara , yankunytjatjara, '+         'aboriginal people of area. has many springs, waterholes, '+         'rock caves , ancient paintings. uluru listed world '+         'heritage site.</p>'+         '<p>attribution: uluru, <a href="http://en.wikipedia.org/w/index.php?title=uluru&oldid=297882194">'+         'http://en.wikipedia.org/w/index.php?title=uluru</a> (last visited june 22, 2009).</p>'+         '</div>'+         '</div>';     var infowindow = new google.maps.infowindow({         content: contentstring     });     var location=new google.maps.latlng(lat,lng);     var marker = new google.maps.marker({         position: location,          map: maps     });     google.maps.event.addlistener(marker, 'click', function() {         infowindow.open(map,marker);     }); } 

when try click on markers, decalibrated when click on center of marker nothing happens. few centimeters down, cursor appears marker @ point.

so map not centered , marker appears @ real coordinates, have click 2 cm down away marker click on marker...

why that?? has else had happen??

the problem body... in css put

body{ zoom:0.9; margin:0; padding:0; width:100%; } 

the zoom affects google maps remove zoom calibrate marker.... thank all!! hope problem solve other similar problems

and sry bad english! ejejej


Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -