vinpkl
September 21, 2016, 10:18am
1
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
ralphm
September 21, 2016, 10:45am
2
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.
SamA74
September 21, 2016, 10:50am
3
It must be a new syntax for the map URLs, though I think you can still use the old URLs.
vinpkl
September 21, 2016, 11:05am
4
yes i tried it but it didnt worked
vineet
vinpkl
September 21, 2016, 11:06am
5
what will be the old url ??
vineet
SamA74
September 21, 2016, 11:16am
6
This url is copied from a map I’m using on a site:-
src="https://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=epi+island+vanuatu&aq=&sll=-8.89764,161.064634&sspn=0.066736,0.101366&t=h&ie=UTF8&hq=&hnear=Epi&z=11&ll=-16.741098,168.270395&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.
vinpkl
September 21, 2016, 11:34am
7
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
SamA74
September 21, 2016, 11:43am
8
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.
system
Closed
December 21, 2016, 6:43pm
9
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.