Comfortable and convenient Openlayers helpers for standard usages.
This library provides a good help to answer common Openlayers needs in a web application using web-components:
- Adds identifier to layers, interactions and controls to be able to get and manage them in every component.
- Add some observables for features. They are accessible in the group, and you don't need to follow the feature or the layer itself to be noticed by a change.
- Simplify interactions: enable one tool at once, manage interactions by group (create, store, destroy, toggle).
- Add some utils, shortcuts and helpers function.
Ol-Comfy is built in a non-binding manner: take only what you need, extend what you need. Every class is responsible for what they manage and store/retrieve information in/from the map. This way you can destroy an instance, create another one and find again the same state.
For local development we use a few demos.
npm install
npm run dev
The source is transpiled to standard ES modules and published on npm.
# update CHANGES.md
npm version patch
npm publish
git push --tags origin main
npm run gh-pages