equinor / equinor/webviz-subsurface-components

Measurement tool on drawing layer doesn't show tooltip while picking points on right side of the view

Open
#983 0 comments 0 reactions 0 assignees View on GitHub
AspenTech bug map-component
Dominant language
TypeScript
Stars
49
Forks
45
Avg merge
1d 8h
Merged PRs (30d)
28

Description

Here you see when a line is drawn leftward, tooltip is visible.
![image](https://user-images.githubusercontent.com/9147767/168005408-f08f2a72-357c-4ec7-9bc1-94ba4e40d24e.png)

But when you draw towards right, tooltip is not visible.
![image](https://user-images.githubusercontent.com/9147767/168005992-129a2f6e-342f-439b-88d5-a87386226a5c.png)

In Map.tsx getTooltip=( info: PickInfo), the info argument is empty when the line is drawn in left direction, hence there is nothing is visible on tooltip

Contributor guide

Open the contributing guide

Research direction

Start in Map.tsx at getTooltip(info: PickInfo) and reproduce measurement point picking in both leftward and rightward directions. Trace why the tooltip is absent on the right side, then verify that the tooltip appears while drawing in both directions without regressing the existing left-side behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.