Google Map visibly resizing on load
I'm showing a Google Map within a div using the code below. When the page
loads the map appears to bounce around before settling. Is there a way to
stop this behavior? The page is here.
function initialize() {
myform.search.focus();
geocoder = new google.maps.Geocoder();
var latlng = new google.maps.LatLng(41.850033, -87.6500523);
var mapOptions = {
zoom: 2,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);
}
No comments:
Post a Comment