how can I use gmap for a map that has no fixed size in a div-tag?
Google code:
Code: Select all
function initialize() {
var latlng = new google.maps.LatLng(48.780218, 9.167211);
var myOptions = {
zoom: 17,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("locate"), myOptions);
}
....
<div id="locate"/>
Thanks
Michael