Groups
Sign in
Groups
Leaflet
Conversations
About
Send feedback
Help
Help using getBounds to set Maxbounds?
10 views
Skip to first unread message
Luca Moiana
unread,
Jul 25, 2015, 4:04:55 AM
7/25/15
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 Leaflet
Hi,
what I'd like to do is to set maxbounds for a map using getbounds from a layer.
I don't understand what's the output of getbounds and how to use it on maxbounds.
thanks for your help
L
Luca Moiana
unread,
Jul 27, 2015, 8:59:52 AM
7/27/15
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 Leaflet, luca....@gmail.com
Note to myself:
map.setMaxBounds(layer.getBounds());
Reply all
Reply to author
Forward
0 new messages