Skip to content

Built Controls For Legend Configuration #365

Description

@lhawkman27

Summary/Description

We need to build out controls for the the legend configuration. This will replace the legend block in our current JSON Blob control.

  "legend": {
    "title": "Maximum Wind Gusts (mph)"
  }

title control: text entry (used in the GeoSet Map legend)
name control: text entry

Motivation/Context

The JSON blob has been useful as a fast prototyping surface, but it is now carrying too much product behavior: category coloring, metric coloring, point sizing, legends, text overlay, styling, defaults, maybe more. That makes it hard for users, hard to validate, and easy for MVT/non-MVT behavior to drift.

Acceptance

  • legend config works as expected.
  • legend state is derived from controls, not parsed JSON.
  • Update docs

Wiki Page:
https://github.com/raft-tech/GeoSet/wiki/GeoSet-Map-Layer#geojson-config

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreCatchall for tasks that are more like chores than real workenhancementNew feature or request

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions