Mapbox GL JS v3 enables the Mapbox Standard Style, a new realistic 3D lighting system, building shadows, nested, configurable styles, and many other visual enhancements, and an ergonomic API for using a new kind of rich, evolving, configurable map styles and seamless integration with custom data. You can get more information about the new features in the Mapbox GL JS v3 migration guide.
fill-extrusion and other layers to support 3D lighting styling.icon-image-cross-fade property, which controls the transitioning between the two variants of an icon image.raster-color paint properties.hsl and hsla color expressions: These expressions allow you to define colors using hue, saturation, and lightness format.random expression: Generate random values using this expression. Use this expression to generate random values, which can be particularly helpful for introducing randomness into your map data.measureLight expression lights configuration property: Create dynamic styles based on lighting conditions.config expression: Retrieves the configuration value for the given option.raster-value expression: Returns the raster value of a pixel computed via raster-color-mix.distance expression: Returns the shortest distance in meters between the evaluated feature and the input geometry.slots, pre-specified locations in the style, where your layer can be added (e.g., on top of existing land layers but below all labels).style option is provided to the Map constructor, the Mapbox Standard Style is now enabled as a default.Fetched May 1, 2026