javascript - An easy question about Google Maps - centering -
every time embed iframe google maps keeps marker in middle.
and if there's tooltip , cuts tooltip data:
are there url parameters or center map on tooltip?
well, if using api, can issue call map.setcenter().
if including maps inline in example, need change initial starting point.
the url using embed map is:
http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode= &q=museum+near+washington,+united+states&aq=0 &sll=40.702863,-74.055748&sspn=0.025669,0.055747&ie=utf8 &hq=museum&hnear=washington+d.c.,+district+of+columbia &ll=38.913976,-77.05111&spn=0.052698,0.111494&t=h&z=14 &iwloc=a&cid=4718114823360363843&output=embed
just matter of adjusting parameters.
the parameters need adjust ll = center location
, z = zoom level
, spn/sspn = span / screen span
. surprisingly awkward find information on them, there details on parameters here. try fiddling ll
parameter first if need change centre.
Comments
Post a Comment