Insert (embed) Google map with saved position and zoom level

2009-10-27

When making maps through “My Maps” and using “Paste HTML to embed in website” field to post it to you site, final map is often not zoomed properly, and can be positioned not very well… To overcome this, find the src=”" property of iframe tag you just copy-pasted and change its value (what goes after src=” and next ) with URL from “Paste link in email or IM” field.

Thats it :)

Example:

Paste HTML to embed in website:

<iframe width=”425″ height=”350″ frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=102719723394616996847.00046f832873f2afd6c03&amp;ll=55.273186,23.354578&amp;spn=1.250365,4.485588&amp;output=embed“></iframe><br /><small>View <a href=”http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=102719723394616996847.00046f832873f2afd6c03&amp;ll=55.273186,23.354578&amp;spn=1.250365,4.485588&amp;source=embed” style=”color:#0000FF;text-align:left”>Map</a> in a larger map</small>

Change bold text with text from Paste link in email or IM:

http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=102719723394616996847.00046f832873f2afd6c03&ll=54.706772,25.213623&spn=0.211449,0.497818&z=11

PS. By the way if you have some other tips like this, you are welcome to post them in comments.