Skip to content

Leaflet layer control with support for grouping overlays together.

License

Notifications You must be signed in to change notification settings

jbsetton/leaflet-groupedlayercontrol

 
 

Repository files navigation

leaflet-groupedlayercontrol

Leaflet layer control with support for grouping overlays together. Also supports making groups exclusive (radio instead of checkbox).

This project is looking for a maintainer. Interested? Open an issue.

preview

Demos: Basic | Advanced

Installation

Include the compressed JavaScript and CSS files located in the /dist folder.

This project is also available via bower and jspm:

bower install leaflet-groupedlayercontrol

Usage

Initialization

Add groupings to your overlay layers object, and swap out the default layer control with the new one.

var