mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.21k stars 2.22k forks source link

Circle z-offset property #13311

Open joedjc opened 2 weeks ago

joedjc commented 2 weeks ago

Motivation

Most layer types now have a z-offset style property (which is really great!), except for circle

Design Alternatives

Add a circle-z-offset style property so circles can be elevated in the same way as line-z-offset or fill-z-offset

Design

Add circle-z-offset to elevate circles above the map

astojilj commented 2 weeks ago

Thanks. Could you tell us more about the use case?

Would symbol-z-offset and symbol-elevation-reference (which are already available) work for you?

joedjc commented 2 weeks ago

I want to be able to offset any of the core mapbox layer types for the purposes of indoor mapping (showing a map above the ground floor).

All the new *-z-offset style properties help with this, I just noticed that the circle type doesn’t have a z-offset style property.

So it would have circle-z-offset similar to how symbol-z-offset works