ryanhamley
released this
Assets
2
🐞 Bug fixes
- Fixed a font glyphs performance regression on Firefox. (10363)
Assets
2
✨ Features and improvements
- Added
localFontFamily
map option that enables local generation of all font glyphs. (#10298) - Introduced high resolution local glyph generation for improved rendering quality of glyphs generated using
localIdeographFontFamily
orlocalFontFamily
options. (#10298) - Added
optimizeForTerrain
map option allowing to use terrain in layer draw-order or performance priority mode. This fixes terrain not always preserving layer draw-order during animations by making the behavior explicit. (#10258) - Improved performance by slightly shifting the horizon down, reducing the number of tiles loaded for highly-pitched maps. (#10304)
- Improved
evented.once(eventName)
to return a promise if no listener function is provided, which allows usingasync/await
with map events for a simpler and more readable code. (#10203)
🐞 Bug fixes
- Fixed querying of
fill-extrusion
s when terrain is enabled. (#10293) - Fixed a bug where close points were sometimes not clustered on higher zoom levels given a small clustering radius. Fixed
clusterMaxZoom
so that it is not capped by the sourcemaxzoom
. (#10300) - Fixed blurry map-aligned labels on highly pitched maps with terrain. (#10296)
- Fixed a race condition when evaluating image expressions by ensuring sprite has loaded before parsing tiles. (#10294)
- Fixed a bug with fullscreen
fill-extrusion
querying at low pitch. (#10315) - Fixed a regression with the usage of patterns with data-driven styling. (#10284)
- Ensure
evented.listens
returnsfalse
when no listener is available. (#10281)
Assets
2
karimnaaji
released this
✨ Features and improvements
- Added array support to minimums and maximums, allowing for validation of multi-dimensional style-spec value constraints. (#10272)
Assets
2
Pre-release
Pre-release
karimnaaji
released this
v2.1.0 + style-spec v13.19.0 changelogs (#10336) * mapbox-gl-js v2.1.0 and style-spec v13.19.0 changelogs * Fixup * Remove extra line * Use beta tags * Update package versions * Update CHANGELOG.md Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com> Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
Assets
2
✨ Features and improvements
- Added support for using third-party worker-loader plugins in build systems such as Webpack and Rollup (
mapboxgl.workerClass
). #10219 - Added
mapboxgl.setNow
andmapboxgl.restoreNow
methods which allow setting custom animation timing for 60 fps, jank-free video recording. #10172 - Removed outdated CSS hacks that no longer apply. #10202
🐞 Bug fixes
- Fixed a bug where
ImageSource
and dynamically loaded icons didn't work in some cases in Firefox and Safari. #10230 - Fixed a bug where
map.unproject
andmap.panBy
acted unpredictably in certain cases. #10224 - Fixed a bug where the sky layer didn't take map padding into account. #10201
- Fixed a bug where
map.setStyle
couldn't be used to enable terrain. #10177 - Fixed a bug where mouse events didn't properly fire during zoom scrolling. #10171
Assets
2
⚠️ Breaking changes
- mapbox-gl-js is no longer under the 3-Clause BSD license. By upgrading to this release, you are agreeing to Mapbox terms of service. Refer to LICENSE.txt for the new licensing terms and details. For questions, contact our team at https://support.mapbox.com.
- Beginning with v2.0.0, a billable map load occurs whenever a Map object is initialized. Before updating an existing implementation from v1.x.x to v2.x.x, please review the pricing documentation to estimate expected costs.
- Deprecate Internet Explorer 11, no longer supported from this release. (#8283, #6391)
- Support for unlocked pitch up to 85°. The default
maxPitch
is increased from 60° to 85° which can result in viewing above the horizon line. By default, this area will be drawn transparent but a new sky layer can be added to the map in order to fill this space. The legacy behavior can be achieved by simply addingmaxPitch: 60
to the map options when instantiating your map.
✨ Features and improvements
- Add 3D terrain feature. All layer types and markers can now be extruded using the new
terrain
root level style-spec property or with the functionmap.setTerrain()
. (#1489) - Add support for unlocked pitch up to 85° (previously 60°). (#3731)
- Add a new sky layer acting as an infinite background above the horizon line. This layer can be used from the style-spec and has two types:
atmospheric
andgradient
. - Add a free form camera API, allowing for more complex camera manipulation in 3D, accessible using
map.getFreeCameraOptions()
andmap.setFreeCameraOptions()
. - Improve performance by adopting a two-phase tile loading strategy, prioritizing rendering of non-symbol layers first.
- Improve performance by avoiding parsing vector tiles that were already aborted.
- Improve performance by adopting a preemptive shader compilation strategy. (#9384)
- Improve performance by disabling fade-in animation for symbols and raster tiles on initial map load.
- Improve performance by defaulting to 2 workers on all platforms. (#3153)
- Improve performance by loading tiles on the main thread at initial map load.
- Improve performance by using better worker task scheduling.
🐞 Bug fixes
- Avoid reloading
raster
andraster-dem
tiles when the RTLTextPlugin loads. - Add runtime evaluation of label collision boxes for more accurate symbol placement at fractional zoom levels and tilted views.
- Fix tile cache size for terrain DEM sources.
- Prevent holding on to DEM memory on the worker.
- Reduce memory used by
fill-extrusion
s.
🛠️ Workflow
- Run render tests in browser.
Assets
2
PreviousNext