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
I'm using the L.Control.Layers function and I was wondering if there was a way to set the overlay layers so they default to off or "unchecked" when the map first loads?
Bryan McBride
unread,
Feb 26, 2013, 1:12:12 AM2/26/13
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
Just add the layers to the Layers control without adding them to the map.
Message has been deleted
Message has been deleted
Nazareno Martin
unread,
Mar 1, 2016, 9:03:45 AM3/1/16
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! i have the same problem. I need that all checkbox start as "checked" but its state are "unchecked". How i can resolve it? any idea? Thanks!
ghybs
unread,
Mar 8, 2016, 2:48:11 AM3/8/16
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,
The Layers Control listens to what happens on the map.
So if you programmatically add your overlays to the map (`map.addLayer(myOverlay)`), the Layers Control will tick its checkboxes to reflect their presence.