Extend clip-layer-types to cover all layer types
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
## Motivation
The clip layer could be really helpful in a variety of circumstances. For example, I might want to visualise a proposed new development in an area whilst showing the surroundings. To achieve this, i'd need to clip other layers such as roads, areas (buildings) and points. Could clip-layer-types support more/all layer types to accommodate this?
## Design Alternatives
We have also tried using the "within" expression but this is also limited to certain layer types.
## Design
Extend the existing method to accept more layer types. It would be great if it could clip geometries - such as cutting off part of a road.
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
Start by locating the existing clip-layer-types method and reviewing which layer types it currently accepts. Compare the current behavior with roads, areas, and points, including whether geometries can be cut off rather than only filtered. Done means the method supports the agreed additional layer types and clipping behavior, with coverage for those cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100