MapLibre GL JS v1.1.0 Release Notes
-
โจ Minor features and improvements
- ๐ Improve line rendering performance by using a more compact line attributes layout (#8306)
- ๐ Improve data-driven symbol layers rendering performance (#8295)
- โ Add the ability to disable validation during
queryRenderedFeatures
andquerySourceFeatures
calls, as a performance optimization (#8211) (h/t gorshkov-leonid) - ๐ Improve
setFilter
performance by caching keys ingroupByLayout
routine (#8122) (h/t vallendm) - ๐ Improve rendering of symbol layers with
symbol-z-order: viewport-y
, when icons are allowed to overlap but not text (#8180) - ๐ Prefer breaking lines at a zero width space to allow better break point suggestions for Japanese labels (#8255)
- โ Add a
WebGLRenderingContext
argument toonRemove
function ofCustomLayerInterface
, to allow direct cleanup of related context (#8156) (h/t ogiermaitre) - ๐ Allow zoom speed customization by adding
setZoomRate
andsetWheelZoomRate
methods toScrollZoomHandler
(#7863) (h/t sf31) - โ Add
trackPointer
method toPopup
API that continuously repositions the popup to the mouse cursor when the cursor is within the map (#7786) - โ Add
getElement
method toPopup
to retrieve the popup's HTML element (#8123) (h/t @bravecow) - โ Add
fill-pattern
example to the documentation (#8022) (h/t @flawyte) - โก๏ธ Update script detection for Unicode 12.1 (#8158)
- โ Add
nofollow
to Mapbox logo & "Improve this map" links (#8106) (h/t viniciuskneves) - Include source name in invalid GeoJSON error (#8113) (h/t Zirak)
๐ ๐ Bug fixes
- ๐ Fix
updateImage
not working as expected in Chrome (#8199) - ๐ Fix issues with double-tap zoom on touch devices (#8086)
- ๐ Fix duplication of
movestart
events when zooming (#8259) (h/t @bambielli-flex) - ๐ Fix validation of
"format"
expression failing when options are provided (#8339) - ๐ Fix
setPaintProperty
not working online-pattern
property (#8289) - ๐ Fix the GL context being left in unpredictable states when using custom layers (#8132)
- ๐ Fix unnecessary updates to attribution control string (#8082) (h/t poletani)
- ๐ Fix bugs in
findStopLessThanOrEqualTo
algorithm (#8134) (h/t Mike96Angelo) - ๐ Fix map not displaying properly when inside an element with
text-align: center
(#8227) (h/t mc100s) - ๐ Clarify in documentation that
Popup#maxWidth
accepts allmax-width
CSS values (#8312) (h/t viniciuskneves) - ๐ Fix location dot shadow not displaying (#8119) (h/t @bravecow)
- ๐ Fix docs dev dependencies being mistakenly installed as package dependencies (#8121) (h/t @bravecow)
- ๐ Various typo fixes (#8230, h/t @erictheise) (#8236, h/t @fredj)
- ๐ Fix geolocate button CSS (#8367, h/t GuillaumeGomez)
- ๐ Fix caching for Mapbox tiles (#8389)