mapbox-gl
Advanced tools
Changelog
3.5.2
fill-extrusion-cutoff-fade-range
.Changelog
3.5.1
icon-occlusion-opacity
/text-occlusion-opacity
properties to opt-in to new occlusion behavior.Changelog
3.5.0
@types/mapbox-gl
are not fully compatible with the new first-class typings. Users relying on the community typings may experience breaking changes. Please remove the @types/mapbox-gl
dependency and refer to the v3.5.0 migration guide for instructions on upgrading, resolving common issues, and asking questions regarding the migration to the first-class typings. We welcome your feedback and contributions to make Mapbox GL JS better.color-theme
property and Map
setColorTheme
method to enable colorization with a lookup table (LUT) images.updateData
for GeoJSON
sources in dynamic
mode.icon-occlusion-opacity
and text-occlusion-opacity
properties to fade symbols behind models and landmarks.line-occlusion-opacity
property to fade lines behind 3D objects.clip
layer to filter out rendering data.line-z-offset
property for a non-globe view.model-cutoff-fade-range
property to control fade out of faraway 3D buildings.line-pattern
on long lines and higher zooms.line-trim-color
and line-trim-fade-range
properties to customize rendering of lines trimmed with line-trim-offset
.Map
getSlots
method for listing available slots of a style.updateData
calls.raster-particle
layer animation.model-front-cutoff
property for Meshopt-encoded models.setTerrain
.style.load
event missing style
property.queryRenderedFeatures
on areas with missing DEM tiles when terrain is enabled.Changelog
3.4.0
dynamic: true
option for GeoJSON sources that enables partial update API with source.updateData
method. Further optimizations for this mode are expected in future releases.Map
setConfig
, getConfig
, setSchema
and getSchema
methods for batch setting of style configuration options.config
option for the Map
constructor and setStyle
methods for conveniently setting style configuration options on map initialization.icon-color-saturation
, icon-color-contrast
, icon-color-brightness-min
and icon-color-brightness-max
to control symbol layer appearance.line-join
mode: none
to improve line pattern distortions around joins.model-id
property to support URIs (in addition to style-defined model references).devtools
UI.flyTo
ignoring padding
in its options.cameraForBounds
on globe view. (h/t @jonasnoki) #13126preloadOnly
not preloading tiles from style imports.queryRenderedFeatures
for non-integer ID in non-tiled model sourcesmodel-scale
property for large number of 3D models.raster-particle
layer on globe view.raster-array
data.symbol-z-elevate
.raster-particle
layer on certain Android devices.Changelog
3.3.0
raster-array
source type, representing a new experimental Mapbox Raster Tile format which encodes series of tiled raster data (such as weather time series).raster-particle
layer which animates particles of different speed and color based on underlying raster-array
data.addImport
, moveImport
, updateImport
, and removeImport
API methods.getSlot
, and setSlot
API methods to control layers' slots.queryRenderedFeatures
.raster-elevation
support for tiled raster sources.config
expression support in fog.maxZoom
.setStyle
.z
offset when the opacity is evaluated at 0 on the zoom change.format
expression in the config
expression.symbol-sort-key
property.Changelog
3.2.0
devtools: true
in Map
options.map.areTilesLoaded
.fill-extrusion-flood-light-ground-radius
property.fill-extrusion-cutoff-fade-range
property.map.flyTo
with padding
option was setting and overriding map's padding.url
or tiles
is missing from source, i.e. in MapTiler source.config
expression chaining through nested styles and other issues related to config scope.config
and format
expressions not working together.