Skip to content

Move layer opacity one level up in the project file #829

@mfisher87

Description

@mfisher87

Use case

Currently, opacity is at layers[{layerId}].parameters.opacity. layers[{layerId}].parameters.* contains fields that are specific to the layer type, specified in packages/schema/src/schema/project/layers. Every schema in that directory contains a opacity property. layers[{layerId}].* contains fields that are generic to all layers, like visible. Those are defined in packages/schema/src/schema/project/jgis.json.

Preferred solution

I think opacity is the exact same type of property as visible -- it's generic to all layers, and their actual functions are in the same category. I think they should be siblings, layer[{layerId}].opacity, layer[{layerId}].visible. They would both be defined only once in packages/schema/src/schema/project/jgis.json.

Alternative solutions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions