v3.7.0
版本发布时间: 2024-09-27 17:16:45
mapbox/mapbox-gl-js最新发布版本:v3.7.0(2024-09-27 17:16:45)
Features and improvements ✨
- Add
background-pitch-alignment
property of thebackground
layer, which is set tomap
by default but can now be set toviewport
. Useful for highlighting individual features by dimming the rest of the map with a semitransparent background. - Add new control positions (
top
,right
,bottom
, andleft
) (h/t @Ethan-Guttman). - Add
retainPadding
option for camera movement methods, which can be set tofalse
for pre-v3.4 padding behavior. - Add
config
expression support in layer filter. - Add symbol elevation properties:
symbol-z-offset
andsymbol-elevation-reference
. - Add the
fill-z-offset
property for fill layers. - Improve
Map#fitBounds
for the alternative projections. - Improve terrain hillshade lighting anchored to viewport.
- Improve shadow casting from 3D models.
- Improve error messages for invalid expressions.
- Skip landmarks rendering when the camera is inside them.
- Improve type checking for the
Map#setPaintProperty
andMap#setLayoutProperty
methods. - Allow the
string
event type in Map event handlers. - Expose
RequestTransformFunction
,ResourceType
, andRequestParameters
types. - Improve texture memory footprint on some platforms.
Bug fixes 🐞
- Fix feature filtering when using 3D lights.
- Fix pattern rendering issues on some devices at high zoom levels.
- Fix
fill-extrusion-line-width
rendering for large polygons - Fix symbol placement ordering when
symbol-z-order
is set toauto
. - Fix the issue where
minzoom
andmaxzoom
properties were ignored byclip
layers. - Fix handling previously hidden models in
clip
layers. - Fix directional light
cast-shadows
property type. - Fix an edge case that could produce
setStencilMode
-related error in the console with the dev build. - Fix an issue where some fill extrusions could temporarily disappear when zooming quickly in certain areas.
- Fix an edge case that could cause flickering on a far plane on high zooms.