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. (#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.
- ⚠️ Note: Direct modifications to the popup container CSS class no longer persist. These methods should be used instead.
🐞 Bug fixes
- Fixed
maxBounds
property failing to constrain the map correctly when the area crosses 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)
- Fix a bug where a opening a new popup on map
click
while another one is open (withcloseOnClick
set totrue
) required multiple clicks. (#10926)