Hi, Im trying to add google maps in a modal, however the maps window is showing but the map is loaded into the top right corner and I can't move it at all.
Any help please :) ? Here is my code for the map and the modal.
$('#google-map1').gMap({
address: 'ul. Radetski 2, 3001 Vratsa, Bulgaria',
maptype: 'ROADMAP',
zoom: 17,
markers: [
{
address: "ul. Radetski 2, 3001 Vratsa, Bulgaria",
icon: {
image: "images/icons/map-icon-red.png",
iconsize: [32, 39],
iconanchor: [32,39]
}
}
],
doubleclickzoom: true,
scrollwheel: false,
controls: {
panControl: true,
zoomControl: true,
mapTypeControl: true,
scaleControl: true,
streetViewControl: true,
overviewMapControl: true
}
});<!-- Modal -->
<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title1</h4>
</div>
<div class="modal-body">
<div id="google-map1" class="gmap" style="height: 500px;"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>