I am using jQuery mobile and I have to display some maps. I use a function that creates maps every time I click on a specific link, but after generating the first map, others are not displayed correctly.
Here is an example, First map:

Other cards:

I use this function:
function buildMap(div){ var coord = new google.maps.LatLng(lat, lng); var options = { zoom: 13, scrollwheel: false, scaleControl: true, mapTypeControl: false, center: coord, mapTypeId: google.maps.MapTypeId.HYBRID }; var map = new google.maps.Map(div, options); return map; }
Can you help me?
Thanks!
source share