Skip to content

Commit

Permalink
Update description for top slot (#12937)
Browse files Browse the repository at this point in the history
* Update MIGRATION_GUIDE_v3.md

---------

Co-authored-by: Stepan Kuzmin <[email protected]>
  • Loading branch information
tayalav and stepankuzmin authored Oct 24, 2023
1 parent 4b3e858 commit 09cbc98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MIGRATION_GUIDE_v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ 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
not specified | Above all existing layers in the style

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

0 comments on commit 09cbc98

Please sign in to comment.