Features ✨ and improvements 🏁
- Added
queryRenderedFeatures
support to heatmap layers. (#10996) - Added support for using
line-gradient
andline-dasharray
paint properties together on line layers. (#10894) - Added
preclick
event allowing popups to close and open in a new location on one click. (#10926) - Improved collision detection for labels along lines, slightly improving label density. (#10918)
- Improved Popup
addClassName
,removeClassName
andtoggleClassName
methods to work on popup instances that are not added to the map. (#10889)- ⚠️ Note: Direct modifications to the popup container CSS class no longer persist. These methods should be used instead.
🐞 Bug fixes
- Fixed
maxBounds
property not working across the 180th meridian. (#10903) - Fixed
map.getBounds()
returning too-large bounds under some conditions. (#10909) - Fixed markers not updating position when toggling terrain. (#10985)
- Fixed gap on edge of map on retina displays. (#10936)
- Fixed SDF images rendering inside text. (#10989)
- Fixed an issue with slow tile loading performance on maps with CJK glyphs on certain Chrome/GPU combinations. (#11047)