Skip to content

[FEAT-UI] Add ability to select storm tracks #552

@martyheynbah

Description

@martyheynbah
  • Add the ability for the user to able to select storm tracks via a drag motion on the canvas
  • Update the client store (ex: SelectedStorms) to keep the state of all of the storms selected

Notes on possible steps to approach:

  1. You can start by adding the controls used for reaches (addReachControls) to the the storm-tracks-page in the store/shared/client/MapStore.jsx file
    if (studyView === "feasibility-storm-tracks") {
      get().addStormTracksControls(map, studyView);
    }

    // default controls if not specified
    if (
      ![
        "study-boundary",
        "study-shoreline",
        "study-reach",
        "feasibility-reach",
        "feasibility-storm-tracks",
      ].includes(studyView)
    ) {
      get().addDefaultControls(map, studyView);
    }
  1. At a high level I think you can use maplibre's [queryrenderedfeatures]https://maplibre.org/maplibre-gl-js/docs/API/classes/Map/#queryrenderedfeatures] function to query data inside of the bbox of the rectanlge or polygon you draw

Metadata

Metadata

Assignees

Labels

5SPEffort Estimation: Half Week

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions