@geoblocks/ol-comfy
    Preparing search index...

    @geoblocks/ol-comfy

    ol-comfy

    CI

    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 and for layer-group. They are stored stably in the map and accessible without worrying about the observed layer or feature.
    • Simplify drawing: enable one tool at once, manage interactions (create, store, destroy).
    • 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