Releases: mapbox/mapbox-gl-js
Releases · mapbox/mapbox-gl-js
v0.53.1
v0.53.0
0.53.0
Features and improvements
- Enable
fill-extrusion
querying with ray picking (#7499) - Add
clusterProperties
option for aggregated cluster properties (#2412, fixed by #7584) - Allow initial map bounds to be adjusted with
fitBounds
options. (#7681) (h/t elyobo) - Remove popups on
Map#remove
(#7749) (h/t andycalder) - Add
Map#removeFeatureState
(#7761) - Add
number-format
expression (#7626) - Add
symbol-sort-key
style property (#7678)
Bug fixes
- Upgrades Earcut to fix a rare bug in rendering polygons that contain a coincident chain of holes (#7806, fixed by #7878)
- Allow
file://
protocol in XHR requests for Cordova/Ionic/etc (#7818) - Correctly handle WebP images in Edge 18 (#7687)
- Fix bug which mistakenly requested WebP images in browsers that do not support WebP (#7817) (#7819)
- Fix images not being aborted when dequeued (#7655)
- Fix DEM layer memory leak (#7690, fixed by #7691)
- Set correct color state before rendering custom layer (#7711)
- Set
LngLat.toBounds()
default radius to 0 (#7722, fixed by #7723) (h/t cherniavskii) - Fix race condition in
feature-state
dependent layers (#7523, fixed by #7790) - Prevent
map.repaint
from mistakenly enabling continuous repaints (#7667) - Prevent map shaking while zooming in on raster tiles (#7426)
- Fix query point translation for multi-point geometry (#6833, fixed by #7581)
v0.53.0-beta.1
v0.53.0-beta.1 (#7853)
v0.52.0
Breaking changes
- Canonicalize tile urls to
mapbox://
urls so they can be transformed withconfig.API_URL
(#7594)
Features and improvements
- Add getter and setter for
config.API_URL
(#7594) - Allow user to define element other than map container for full screen control (#7548)
- Add validation option to style setters (#7604)
- Add 'idle' event: fires when no further rendering is expected without further interaction. (#7625)
Bug fixes
- Fire error when map.getLayoutProperty references missing layer (#7537, fixed by #7539)
- Fix shaky sprites when zooming with scrolling (#7558)
- Fix layout problems in attribution control (#7608) (h/t lucaswoj)
- Fixes resetting map's pitch to 0 if initial bounds is set (#7617) (h/t stepankuzmin)
- Fix occasional failure to load images after multiple image request abortions #7641
- Update repo url to correct one (#7486) (h/t nicholas-l)
- Fix bug where symbols were sometimes not rendered immediately (#7610)
- Fix bug where cameraForBounds returns incorrect CameraOptions with asymmetrical padding/offset (#7517, fixed by #7518) (h/t mike-marcacci)
- Use diff+patch approach to map.setStyle when the parameter is a URL (#4025, fixed by #7562)
- Begin touch zoom immediately when rotation disabled (#7582) (h/t msbarry)
- Fix symbol rendering under opaque fill layers (#7612)
- Fix shaking by aligning raster sources to pixel grid only when map is idle (7426)
- Fix raster layers in Edge 18 by disabling it's incomplete WebP support (7687)
- Fix memory leak in hillshade layer (7691)
- Fix disappearing custom layers (7711)
v0.52.0-beta.2
v0.52.0-beta.2
v0.52.0-beta.1
v0.52.0-beta.1 (#7659)
v0.51.0
✨ Features and improvements
- Add initial bounds as map constructor option (#5518) (h/t stepankuzmin)
- Improve performance on machines with > 8 cores (#7407, fixed by #7430)
- Add
MercatorCoordinate
type (#7488) - Allow browser-native
contextmenu
to be enabled (#2301, fixed by #7369) - Add an unminified production build to the NPM package (#7403)
- Add support for
LngLat
conversion from{lat, lon}
(#7507) (h/t bfrengley) - Add tooltips for navigation controls (#7373)
- Show attribution only for used sources (#7384)
- Add telemetry event to log map loads (#7431)
- Tighten style validation
🐛 Bug fixes
- Fix for GeoJSON geometries not working when coincident with tile boundaries(#7436, fixed by #7448)
- Fix depth buffer-related rendering issues on some Android devices. (#7471)
- Fix positioning of compact attribution strings (#7444, #7445, and #7391)
- Fix an issue with removing markers in mouse event callbacks (#7442) (h/t vbud)
- Remove controls before destroying a map (#7479)
- Fix display of Scale control values < 1 (#7469) (h/t MichaelHedman)
- Fix an error when using location
hash
within iframes in IE11 (#7411) - Fix depth mode usage in custom layers (#7432) (h/t markusjohnsson)
- Fix an issue with shaky sprite images during scroll zooms (#7558)
v0.51.0-beta.1
Changelog for v0.51.0-beta.1
v0.50.0
✨ Features and improvements
- 🎉 Add Custom Layers that can be rendered into with user-provided WebGL code (#7039)
- Add WebGL face culling for increased performance (#7178)
- Improve speed of expression evaluation (#7334)
- Automatically coerce to string for
concat
expression andtext-field
property (#6190, fixed by #7280) - Add
fill-extrusion-vertical-gradient
property for controlling shading of fill extrusions (#5768, fixed by #6841) - Add update functionality for images provided via
ImageSource
(#4050, fixed by #7342) (h/t dcervelli)
🐛 Bug fixes
- Expressions
- Fix expressions that use
log2
andlog10
in IE11 (#7318, fixed by #7320) - Fix
let
expression stripping expected type during parsing (#7300, fixed by #7301) - Fix superfluous wrapping of literals in
literal
expression (#7336, fixed by #7337) - Allow calling
to-color
on values that are already of typeColor
(#7260) - Fix
to-array
for empty arrays ((#7261)) - Fix identity functions for
text-field
when using formatted text (#7351) - Fix coercion of
null
to0
into-number
expression (#7083, fixed by #7274)
- Fix expressions that use
- Canvas source
- Rendering
- Fix rendering of fill extrusions with really high heights (#7292)
- Fix an error where the map state wouldn't return to
loaded
after certain runtime styling changes when there were errored tiles in the viewport (#7355) - Fix errors when rendering symbol layers without symbols (#7241, fixed by #7253)
- Don't fade in symbols with
*-allow-overlap: true
when panning into the viewport (#7172, fixed by#7244)
- Library
- Fix disambiguation for
mouseover
event (#7295, fixed by #7299) - Fix silent failure of
getImage
if an SVG is requested (#7312, fixed by #7313) - Fix empty control group box shadow (#7303, fixed by #7304) (h/t Duder-onomy)
- Fixed an issue where a wrong timestamp was sent for Mapbox turnstile events (#7381)
- Fixed a bug that lead to attribution not showing up correctly in Internet Explorer (#3945, fixed by #7391)
- Fix disambiguation for
v0.50.0-beta.1
<!-- empty -->