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 PM7/23/12
to leafl...@googlegroups.com
Hi there,


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 PM7/23/12
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