I\'m using google maps. In my code i\'ve used setCenter() function. My problem is that marker is always located on top left corner of map area (not at the center). Please te
function resize() { var map_obj = document.getElementById("map_canvas"); /* map_obj.style.width = "500px"; map_obj.style.height = "225px";*/ if (map) { map.checkResize(); map.panTo(new GLatLng(lat,lon)); } }