Help using getBounds to set Maxbounds?

10 views
Skip to first unread message

Luca Moiana

unread,
Jul 25, 2015, 4:04:55 AM7/25/15
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 AM7/27/15
to Leaflet, luca....@gmail.com
Note to myself:

map.setMaxBounds(layer.getBounds());
Reply all
Reply to author
Forward
0 new messages