Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   How to set a Zoom on Google Maps Embed Code? (https://www.warriorforum.com/programming/862387-how-set-zoom-google-maps-embed-code.html)

grey38 29th October 2013 08:19 PM

How to set a Zoom on Google Maps Embed Code?
 
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp ;q=4680+Crain+Hwy+White+Plains,+MD+20695&amp;aq=&a mp;sll=37.0625,-95.677068&amp;sspn=43.528905,76.025391&amp;ie=UTF8 &amp;hq=&amp;hnear=4680+Crain+Hwy,+White+Plains,+M aryland+20695&amp;t=m&amp;ll=38.582526,-76.948929&amp;spn=0.093933,0.145912&amp;z=12&amp;i wloc=A&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&a mp;q=4680+Crain+Hwy+White+Plains,+MD+20695&amp;aq= &amp;sll=37.0625,-95.677068&amp;sspn=43.528905,76.025391&amp;ie=UTF8 &amp;hq=&amp;hnear=4680+Crain+Hwy,+White+Plains,+M aryland+20695&amp;t=m&amp;ll=38.582526,-76.948929&amp;spn=0.093933,0.145912&amp;z=12&amp;i wloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>

Where in this code can I set a default zoom level so my map will show up more zoomed out? thanks in advance!

SoftwareGeek 1st November 2013 11:22 PM

Re: How to set a Zoom on Google Maps Embed Code?
 
Quote:

Originally Posted by grey38 (Post 8653821)
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp ;q=4680+Crain+Hwy+White+Plains,+MD+20695&amp;aq=&a mp;sll=37.0625,-95.677068&amp;sspn=43.528905,76.025391&amp;ie=UTF8 &amp;hq=&amp;hnear=4680+Crain+Hwy,+White+Plains,+M aryland+20695&amp;t=m&amp;ll=38.582526,-76.948929&amp;spn=0.093933,0.145912&amp;z=12&amp;i wloc=A&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&a mp;q=4680+Crain+Hwy+White+Plains,+MD+20695&amp;aq= &amp;sll=37.0625,-95.677068&amp;sspn=43.528905,76.025391&amp;ie=UTF8 &amp;hq=&amp;hnear=4680+Crain+Hwy,+White+Plains,+M aryland+20695&amp;t=m&amp;ll=38.582526,-76.948929&amp;spn=0.093933,0.145912&amp;z=12&amp;i wloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>

Where in this code can I set a default zoom level so my map will show up more zoomed out? thanks in advance!

Look for "z=" in the code. In the code above there is "z=12". Change it "z=6", for example, to see a zoomed out map.

David Beroff 2nd November 2013 08:56 AM

Re: How to set a Zoom on Google Maps Embed Code?
 
Also be aware that the sll/sspn parameters reveal where you were looking, which is not always something that you want to show.


All times are GMT -6. The time now is 08:02 AM.