Difficult to select lines that overlap a polygon
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 640
- PR merge metrics
- No merged PRs in 30d
Description
Hello, first off, I wanted to thank everyone for their hard work on this tool and say that Next is looking really good, and I already use it more than the original geojson.io.
**Problem Statement**
When a line overlaps a polygon, it's difficult to select the line. I can use Right-Click->Select to chose which feature to select. However when hovering over the line, the cursor is already visually showing that a clickable feature is there because it is over the polygon the entire time, so there is no additional visual cue that my cursor is properly over the line to be able to click it. To select the line, I need to guess that my cursor is in the pixel perfect position and try Right-Click->Select to see if the line shows up in the list.
**Possible Solution**
Perhaps a "click zone" could be added as a buffer to lines making it easier to click them without having to have the cursor at a pixel perfect intersection with the 1D line. This would make it so that when doing Right-Click->Select, the line will show up as a selectable feature in the list, even if the mouse is not perfectly over it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named in the issue. Trace the right-click Select behavior and its line hit-testing, then verify that an overlapping line appears in the selectable-feature list without pixel-perfect pointer placement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100