Comfortable and convenient ol shortcuts for standard usage.
npm install @geoblocks/ol-comfy
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.
- Documentation;
- Demo;
- Source code
For local development we use a few demos.
``bash`
npm install
npm run dev
The source is transpiled to standard ES modules and published on npm.
`bashCHANGES.mdUpdate the
filevite.config.tsUpdate the
file you have new example files``
npm run build
npm version patch/minor/major
npm publish
git push --tags origin main
npm run gh-pages