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

Update description for top slot #12937

Merged
merged 4 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Mapbox GL JS v3 enables the Mapbox Standard Style, a new realistic 3D lighting s

### Bug fixes 🐞

- Update the `top` slot description in the docs.
stepankuzmin marked this conversation as resolved.
Show resolved Hide resolved
- Fix collisions when rendering 3D models on top of terrain.
- Correct half-texel misalignment in `raster-color` lookup texture sampling.
- Fix level of detail selection for models in the distance.
Expand Down
3 changes: 2 additions & 1 deletion MIGRATION_GUIDE_v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ Slot | Description
--- | ---
`bottom` | Above polygons (land, landuse, water, etc.)
`middle` | Above lines (roads, etc.) and behind 3D buildings
`top` | Above all existing layers in the style
`top` | Above POI labels and behind Place and Transit labels

Set the preferred `slot` on the `Layer` object before adding it to your map and your layer will be appropriately placed in the Standard style's layer stack.
If no slot is specified for a custom layer they are placed at the very top of the layer list, providing a location that has highest collision priority compared to all other layers.

```js
map.addLayer({
Expand Down
Loading