mirror of
https://github.com/walkermatt/ol-layerswitcher.git
synced 2026-02-01 15:56:51 +00:00
OpenLayers 3 LayerSwitcher
Grouped layer list control for an OL3 map.
All layers should have a title property and base layers should have a type property set to base. Group layers (ol.layer.Group) can be used to visually group layers together. See examples/layerswitcher.js for usage.
Demo
Clone or download the repository and open examples/layerswitcher.html in a browser or view the example on RawGit.
Tests
To run the tests you'll need to install the dependencies via npm. In the root of the repository run:
npm install
Then run the tests by opening test/index.html in a browser.
License
MIT (c) Matt Walker.
Languages
JavaScript
62%
TypeScript
29.7%
CSS
5.9%
HTML
2.4%