Groups
Groups
Sign in
Groups
Groups
Leaflet
Conversations
About
Send feedback
Help
Make a map read-only
1,236 views
Skip to first unread message
MatheuB
unread,
Feb 17, 2012, 8:20:10 AM
2/17/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 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 AM
2/17/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 leafl...@googlegroups.com
Hi Matheu,
Yes, you can easily disable map interaction features like this:
http://leaflet.cloudmade.com/reference.html#map-properties
2012/2/17 MatheuB
<
blan...@gmail.com
>
--
Vladimir Agafonkin
http://agafonkin.com/en
+380 (93) 745 44 61
MatheuB
unread,
Feb 17, 2012, 8:32:42 AM
2/17/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 Leaflet
ohh sorry hadn't see this ;)
thank you Vladimir!
Reply all
Reply to author
Forward
0 new messages