mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.37k stars 1.33k forks source link

Heatmap layer does not respect z-index #12471

Open riastrad opened 6 years ago

riastrad commented 6 years ago

Platform: Multiple Mapbox SDK version: Confirmed in GL JS via Studio and iOS Maps SDK v4.1

Steps to trigger behavior

  1. Upload a tileset with marker data (e.g. earthquake data)
  2. Add this tileset as a heatmap style layer (MGLHeatmapLayer on iOS)
  3. Modify the heatmap layer's z-index such that that the heatmap layer is below everything

Expected behavior

The heatmap layer should be behind all other opaque layers. (i.e. not appear)

Actual behavior

The heatmap appears above some opaque layers. Noticeable examples:

Water: screen shot 2018-07-24 at 12 54 57 pm

Building polygons: screen shot 2018-07-24 at 1 04 18 pm

Here's a link to a live map that replicates this behavior: https://api.mapbox.com/styles/v1/riastrad/cjhj6nki41bym2rqr4px09oi0.html?fresh=true&title=true&access_token=(BYOAccessToken)

jfirebaugh commented 6 years ago

Equivalent issue in gl-js: https://github.com/mapbox/mapbox-gl-js/issues/5831.

chaseacton commented 5 years ago

+1 on iOS

stale[bot] commented 5 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

friedbunny commented 5 years ago

Is this still an issue, @mourner?

chaseacton commented 4 years ago

Any news on this?

chaseacton commented 4 years ago

This bug still exists

chloekraw commented 4 years ago

@chaseacton as a workaround, try setting the opacity of your heatmap layer to 0.99.

stale[bot] commented 4 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

androidfanatic commented 3 years ago

This issue stil exists.