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:

http://jsfiddle.net/v2sva/

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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -