mapbox / mapbox/mapbox-gl-js

Question: Clip-Layer vs Filter-Expression

Open
#13,364 0 comments 0 reactions 0 assignees View on GitHub
auto-triaged needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Hello,

for me the clip layer looks very special. It can only be used for 3D-Models and not for all the other layers. Like i understood the same result can be done by using filter-expressions of [distance](https://docs.mapbox.com/style-spec/reference/expressions/#distance) which works on all geometric layers. So, why not using this expression also for the models? Or does the clip works different and will really cut the features at the edge?

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start with the linked distance expression documentation and compare it with clip-layer behavior for 3D models and other geometric layers. Done means clearly documenting whether clipping cuts features at the edge, why distance may not apply to models, and whether a concrete change is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, web-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.