OpenLayers Web Components
This is monorepo which contains:
- core OpenLayers elements (incl. map itself) (
elements/openlayers-core
) - common OpenLayers elements (layers, markers, etc) (
elements/openlayers-elements
) - Swiss layers from geoadmin.ch (
elements/swisstopo-elements
)
Features
While extensive, human-friendly documentation is not yet available, be sure to check out the different features supported by the components live:
- Core map features
- OpenStreetMaps
- Adding features to the map (aka. vector layers)
- XYZ Tile layers
- Map markers
- Map interactions
- Adding custom map controls
- Adding overlays (popups, etc)
- Swiss layers
API Docs
All the live demos also include generated API documentation.
Running locally
Simply execute
yarn build
yarn start
And open the webpack-dev-server page (typically http://localhost:8080)
Acknowledgements
Carefully tested on Browserstack