Skip Navigation

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

Travel Forums System Talk Can you zoom map embedded in website (not TP blog)?

1. Posted by bec2895 (Budding Member 2 posts) 2y

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

As you can see on my website (http://bec2895.tumblr.com/where) the map is zoomed right out to the point that part of the route appears twice and there is a grey bar across the top part of the map.

Any suggestions greatly appreciated.

Cheers

2. Posted by Peter (Admin 5522 posts) 2y

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

3. Posted by bec2895 (Budding Member 2 posts) 2y

Thanks Peter!!

Works brilliantly, very much appreciated.