Make a map read-only

1,236 views
Skip to first unread message

MatheuB

unread,
Feb 17, 2012, 8:20:10 AM2/17/12
to Leaflet
Hi !

Is there any easy way to fit bounds of a map to show a certain area
and then make it read-only so there is no more possibility to pan or
zoom?

I thought about setting min and max zooms to the same level and sets
panning to false, but just asking if there's a better way to do this?

Thanks :)

Vladimir Agafonkin

unread,
Feb 17, 2012, 8:25:38 AM2/17/12
to leafl...@googlegroups.com
Hi Matheu,

Yes, you can easily disable map interaction features like this:

MatheuB

unread,
Feb 17, 2012, 8:32:42 AM2/17/12
to Leaflet
ohh sorry hadn't see this ;)

thank you Vladimir!
Reply all
Reply to author
Forward
0 new messages