Skip to content

bloigge/Leaflet.GISLayers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.GISLayers

A leaflet layers control which enables drag and drop reordering and grouping of layers.

Demo

Demo

Installation

  • L.control.gisLayers takes a config object. On the first level two arrays initialize the basemaps and overlays.
  • A layer is an Object which has a data and name property. The value of the data property points to a Leaflet layer.
  • A group is an Object which has a data, a name and a grouped property. The value of the data property is an array which holds Leaflet layers and/or groups.
[
  {
    "test": 123
  }
]

ToDos

  • Add dotted guidelines between groups and layers
  • Init each layer on a separate pane using a config flag (better zIndex handling for tilelayer vs. geojson / non-tilelayer)

Author

Bernd Loigge

License

"THE BEER-WARE LICENSE" (Revision 42): Bernd Loigge wrote this. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published