Set zoom level in google map

hi all

the below code works fine and show google map but i am not able set the zoom level in this code

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14014.06881750644!2d77.15507346768672!3d28.584256993014755!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390d1d11d2b09007%3A0x853501a569b49e3c!2sUniversity+of+Delhi!5e0!3m2!1sen!2sin!4v1474452849807" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

how to set zoom level in this code

this code has been provided by google

vineet

Normally you add something like &z=10 (numbers 1–20) to the end of the URL, but for some reason it’s not working with this one. :grimacing:

It must be a new syntax for the map URLs, though I think you can still use the old URLs.

yes i tried it but it didnt worked

vineet

what will be the old url ??

vineet

This url is copied from a map I’m using on a site:-

src="https://maps.google.co.uk/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=epi+island+vanuatu&amp;aq=&amp;sll=-8.89764,161.064634&amp;sspn=0.066736,0.101366&amp;t=h&amp;ie=UTF8&amp;hq=&amp;hnear=Epi&amp;z=11&amp;ll=-16.741098,168.270395&amp;output=embed"

The location is different to what you want, you will want to change parameters. You can see the variable z=11 which sets zoom.

hi Sam

there are many numbers in this old url
can you tell me which is for the longitude and which is for the lattitude ??

i think to change location i will have to change lattitude and longitude values

vineet

I think, that ll is Lat and Long, sll may be the location marker L&L. q is the search query string.
I don’t think you need all the variables, some could be omitted.
Experiment and see what works.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.