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

map.setTerrain makes vector tiles disappear #13243

Open
maxsiryk opened this issue Jul 29, 2024 · 0 comments
Open

map.setTerrain makes vector tiles disappear #13243

maxsiryk opened this issue Jul 29, 2024 · 0 comments

Comments

@maxsiryk
Copy link

mapbox-gl-js version: 3.5.2

browser: chrome 127.0.6533.72 (Official Build) (64-bit)

First of all, I want to thank you for this awesome project!

Steps to Trigger Behavior

  1. Load vector tiles data source with maxzoom set to 0 (map.addSource(id, { ..., maxzoom: 0 });)
  2. Set Terrain map.setTerrain({ source: "mapbox-dem", exaggeration: 1 }); (there are no problems if set map.setTerrain(null);)
  3. Zoom in 14 points more than the data source maxzoom (in my case 0 + 14 = 14)

Link to Demonstration

demo

Expected Behavior

Figures don't disappear

Actual Behavior

Polygons disappear under maxzoom + 14
video-polygon

Points disappear when changing the angle of the camera on a high-zoom
video-point

It might be helpful to know how I split a geojson file into tiles. The original geojson, script, and tiles can be found in the following resources.zip

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