mapbox / mapbox/mapbox-maps-android
How to show line layer behind terrain
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
Mapbox SDK 11.8.1
Hi i want to achieve this with style-> terrain "mapbox://mapbox.mapbox-terrain-dem-v1"

Tried with lineOcclusionOpacity. Lines are visible behind 3d buildings, but not when using terrain. Next I tried lineZOffset, I set it to 500 meters for example. now the line hovers over the ground, but that's not what I expected.
What am I missing?
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 reviewing the Mapbox SDK 11.8.1 terrain documentation and the behavior of lineOcclusionOpacity and lineZOffset. Confirm whether the SDK supports placing line layers behind terrain, and document or reproduce the expected result with the terrain style and example settings from the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100