Groups
Groups
Sign in
Groups
Groups
[deprecated] Google Maps JavaScript API v3. Please use the latest post.
Conversations
About
Send feedback
Help
Centre a map around multiple markers
70 views
Skip to first unread message
shaun
unread,
Jan 8, 2012, 4:27:41 PM
1/8/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
Hi,
Can someone tell me how I can centre a map around multiple markers please:
http://shaunthornburgh.com/test/
Alan Pearce
unread,
Jan 8, 2012, 7:15:17 PM
1/8/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
You could create a latLngBounds and extend it with the coords of the
markers. Then pass the latLngBounds to the fitBounds method of the
map.
Hope this helps
Alan
Reply all
Reply to author
Forward
0 new messages