Can you zoom map embedded in website (not TP blog)?

Is it possible to control the zoom level of a TravellersPoint map embedded in another website (eg not a TravellersPoint blog)?

Yeah, it's undocumented, but you can tweak the script source url a little to make it zoom in.

So find the <script ... src="..."> bit of the code

And add this on to the end of that src:

&amp;zoom=5&amp;lat=0.1&amp;lon=0.1

So it becomes <script ... src="...&amp;zoom=5&amp;lat=0.1&amp;lon=0.1 ">

Change the zoom number from 5 to whatever you want and the lat / lon values to wherever you want to center the map. I know it's a bit happy, but hope it helps! Glad to see it embeds nicely on Tumblr too

Thanks Peter!!

Works brilliantly, very much appreciated.


Can you zoom map embedded in website (not TP blog)?

Can you zoom map embedded in website (not TP blog)?

Can you zoom map embedded in website (not TP blog)?

Subscribe to receive free email updates:

0 Response to "Can you zoom map embedded in website (not TP blog)? "

Post a Comment