v3.5.0-beta.1
版本发布时间: 2024-06-19 23:27:28
mapbox/mapbox-gl-js最新发布版本:v3.7.0(2024-09-27 17:16:45)
Breaking changes ⚠️
- This release marks a significant transition for GL JS, moving from Flow to TypeScript. While we have maintained backward compatibility where possible, the community typings
@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.
Features and improvements ✨
- Add a
color-theme
property to enable colorization with a lookup table (LUT) images. - Add
icon-occlusion-opacity
andtext-occlusion-opacity
properties to fade symbols behind models and landmarks. - Add
line-occlusion-opacity
property to fade lines behind 3D objects. - Add experimental
clip
layer to filter out rendering data. - Add experimental
line-z-offset
property for a non-globe view. - Add
model-cutoff-fade-range
property support to control fade out of faraway 3D buildings.
Bug fixes 🐞
- Fix icon rotation during globe transition.
- Fix GeoJSON data loss due to frequent
updateData
calls. - Improve
raster-particle
layer animation. - Fix padding not being applied on
flyTo
whenprefers-reduced-motion
is set.