The marker is not centered in the iframe for google map

I have a strange requirement of an open google map in an iframe. I have an address that I use to transfer and convert to google map. but the problem in the size of my iframe is 200 * 200, so the marker is not centered. and another problem is that the infowindow marker also gets poppedup after a few seconds, which makes my marker out of boundry.and the marker moves out of center. my code is as follows.

$(document).ready(function(){ $("#map_address").each(function(){ var embed ='<iframe class="map_google" width="200" scrolling="no" height="200" frameborder="0" src="https:/maps.google.com/maps?&q=Ahmedabad&output=embed" marginwidth="0" marginheight="0">'; $(this).html(embed); }); }); 

I want to close the marker information window and make the marker abandoned. Any help would be appreciated.

it was created using http://jsbin.com/welcome/68407/edit

+6
source share
1 answer

Add an iwloc parameter with no value to the iframe url: http://jsbin.com/emoyup/1/edit

Description of URL parameters: http://www.seomoz.org/ugc/everything-you-never-wanted-to-know-about-google-maps-parameters

+11
source

All Articles