mapbox / mapbox/mapbox-maps-android

How to show line layer behind terrain

Open
#2,600 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged question
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"

![Image](https://github.com/user-attachments/assets/eec6070c-714f-4839-9ac8-f12a1fd2936f)

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.