Detect current basemap

11 views
Skip to first unread message

John Muccigrosso

unread,
Nov 2, 2016, 7:54:18 AM11/2/16
to Leaflet
I'm using a fairly straightforward application of the layers control to allow users to select one of several basemaps. How can I tell which one they've selected?

Thanks.

k_man_au

unread,
Nov 7, 2016, 9:13:48 PM11/7/16
to Leaflet
maybe cycle through your basemaps and use map.hasLayer(baseMap)? someone else may know a better way?
Reply all
Reply to author
Forward
0 new messages