Groups
Groups
Sign in
Groups
Groups
Leaflet
Conversations
About
Send feedback
Help
Combine getBounds and maxBounds
12 views
Skip to first unread message
Luca Moiana
unread,
Feb 8, 2016, 11:11:48 AM
2/8/16
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 thought it was an easy task, it's becoming a nightmare:
I want to set my maxBounds on the extent of my var lungo.
I can't find a way to have maxBounds working.
any example on that?
Luca Moiana
unread,
Feb 10, 2016, 11:07:39 AM
2/10/16
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
SOLVED:
map.setMaxBounds(LAYER.getBounds(), {
padding: [150, 150]
});
Reply all
Reply to author
Forward
0 new messages