Skip to content

Feat: Support multiple layers / geometries for same source #75

@arnaudfnr

Description

@arnaudfnr

Objective

As a coordo user, I want to be able to define 2 layers for the same data source in the config.json

Context

In MapLibre, Sources and Layers are separated components that allow a user to render the same data in multiple manners.
https://maplibre.org/maplibre-gl-js/docs/examples/add-multiple-geometries-from-one-geojson-source/

In Data4Trees, what we want to do is the following :

For Seed :
Have one layer that displays icons and when clicked the popup with indicators is displayed. This layer would hide if the zoom become big.
When the zoom becomes big, another layer is made visible : this layer shows polygons filled with color, but the same popup as in the other layer is rendered when a polygon is clicked.

All4Trees:
Have one layer that displays icons and when clicked the popup with indicators is displayed. This layer would hide if the zoom become big.
When the zoom becomes big, another layer is made visible : this layer shows circles, but the same popup as in the other layer is rendered when a polygon is clicked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Priority Task
    No fields configured for Feature.

    Projects

    Status

    Ready to dev

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions