2014-10-18 19:50:31 +01:00
2014-10-18 19:50:31 +01:00
2014-10-18 19:50:31 +01:00
2014-10-18 19:50:31 +01:00
2014-10-11 09:54:09 +01:00
2014-10-11 09:54:09 +01:00
2014-10-11 09:54:09 +01: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.

Description
Layer control for OpenLayers
Readme MIT 1.8 MiB
Languages
JavaScript 62%
TypeScript 29.7%
CSS 5.9%
HTML 2.4%