12-03-2012 01:59 PM
hi, i have a app which use the jqueryMobile BB theme and the google maps api.
when i want to display the map, i just see a small square at the top but not the whole area like it should be.
here is a screenshot:
how to avoid this and let it display correctly?
my code:
function initialize() {
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canva s"), myOptions);
}
Solved! Go to Solution.
12-03-2012 04:14 PM
Are you sure its not a latency issue? Or that you have the zoom set?
12-03-2012 04:48 PM
no, even if i zoom in or out i just see this small top right area of the map.
12-03-2012 05:13 PM
I found the bug, i need to use checkResize on my map.