Groups
Groups
Sign in
Groups
Groups
Leaflet
Conversations
About
Send feedback
Help
How to make layer control visible at all times? Not a icon?
1,300 views
Skip to first unread message
philip
unread,
Jul 23, 2012, 12:25:16 PM
7/23/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 there,
On the layer control -
http://leaflet.cloudmade.com/examples/layers-control-example.html
The top right has the layer control, normally this shows as an icon until the user mouses over it.
I would like to show as a opened layer control without the need for the user to mouse over it, so that it shows open at all times. How can I do this?
Thanks, Philip
Jason Sanford
unread,
Jul 23, 2012, 12:29:09 PM
7/23/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
You should pass collapsed: false to the layers control options object.
layersControl =
new
L.Control.Layers(baseLayers, overlays, { collapsed: false });
--
Reply all
Reply to author
Forward
0 new messages