mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

`symbol-z-elevate` does not work when `text-pitch-alignment` is `map`

Open brncsk opened this issue 1 year ago • 2 comments

mapbox-gl-js version: 5.3.0-beta.1

browser: Chrome

Steps to Trigger Behavior

  1. Add a fill-extrusion layer
  2. Add a symbol layer on top
  3. Set symbol-z-elevate to true on the symbol layer
  4. Set text-pitch-alignment to map on the symbol layer
  5. Observe symbols stay clamped to the ground even when on top of fill extrusions.
image

Link to Demonstration

I'll provide a demonstration if needed for reproduction.

Expected Behavior

Symbols are draped onto the top side of fill extrusions.

Actual Behavior

Symbols are draped onto the map's ground level.

brncsk avatar Jul 02 '24 14:07 brncsk

Hi @brncsk,

Thank you for opening this ticket. Could you please provide a minimal reproduction of the issue? We recommend using https://jsbin.com/. Thanks!

stepankuzmin avatar Jul 24 '24 14:07 stepankuzmin

@stepankuzmin Yeah, there you go: https://output.jsbin.com/yeriwagaxi

brncsk avatar Jul 24 '24 16:07 brncsk