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

Symbols with line placement not correctly projected near south pole when using globe and terrain #12762

Open
az0uz opened this issue Jun 15, 2023 · 0 comments

Comments

@az0uz
Copy link

az0uz commented Jun 15, 2023

mapbox-gl-js version: v2.15.0

browser: latest Safari / Chrome / Brave, on Mobile and Desktop

Steps to Trigger Behavior

  1. Setup Mapbox with globe projection
  2. Add terrain with some exaggeration, ex: 8.0 (larger exaggeration will show larger placement error)
  3. Add a geojson line near the south pole (ex: -84 latitude) with a string property to use as a label
  4. add a line style layer to draw the line
  5. add a symbol layer that uses 'symbol-placement': 'line' layout property
  6. Move and pan around the south pole to visualize the label

Link to Demonstration

https://jsfiddle.net/d0p9gkjt/

Screenshot 2023-06-15 at 6 44 59 PM

Expected Behavior

The Label should be placed at the globe surface, along the line

Actual Behavior

Multiple renderings of the label are present, distorted above the surface, the distortion and distance to expected placement intensify when the symbol is closer to the south pole and with larger terrain exaggeration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants