Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line layer with fill-pattern disappears in combination with raster-dem terrain. #13408

Open
MartinSandstrom opened this issue Feb 18, 2025 · 0 comments

Comments

@MartinSandstrom
Copy link

MartinSandstrom commented Feb 18, 2025

mapbox-gl-js version: v3.10.0, works as expected in v3.9.4

browser: Chrome, Safari, Firefox.

Steps to Trigger Behavior

  1. Add a line layer with line-pattern set to an image pattern.
  2. The line pattern is visible on the map.
  3. Add a raster-dem source and enable it with setTerrain().
  4. The line pattern disappears.
  5. Removing the fill-pattern property shows the lines correctly.

Link to Demonstration

jsfiddle Example

Expected Behavior

The line-pattern used to render correctly on the line layer, even when terrain is enabled.

Actual Behavior

When terrain is enabled using setTerrain(), the line-pattern stops rendering entirely. The issue persists across different line-pattern images and remains even when adjusting zoom, pitch, or bearing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant