Releases: maplibre/maplibre-gl-js
v4.0.1
https://github.com/maplibre/maplibre-gl-js
Changes since MapLibre GL JS v4.0.0:
✨ Features and improvements
- Add
setUrlmethod to RasterTileSource to dynamically update existing TileJSON resource. (3700)
🐞 Bug fixes
v4.0.0
https://github.com/maplibre/maplibre-gl-js
Changes since MapLibre GL JS v3.6.2:
✨ Features and improvements
-
⚠️ Remove all global getters and setters frommaplibregl, this means the the following methods have changed:maplibregl.version=>getVersion()maplibregl.workerCount=>getWorkerCount(),setWorkerCount(...)maplibregl.maxParallelImageRequests=>getMaxParallelImageRequests(),setMaxParallelImageRequests(...)maplibregl.workerUrl=>getWorkerUrl(),setWorkerUrl(...)
This is to avoid the need to use a global object and allow named exports/imports (#3601)
-
⚠️ Change attribution to be on by default, changeMapOptions.attributionControlto be the type that the control handles, removedMapOptions.customAttribution(#3618)
Note: showing the logo of MapLibre is not required for using MapLibre. -
⚠️ Changed cooperative gesture config and removed the strings from it in favor of the locale variable (#3621) -
⚠️ Changed the terrain enable disable locale key to match the other keys' styles, updated the typings to allow using locale with more ease (#3621) -
⚠️ Add the ability to import a script in the worker thread and calladdProtocolandremoveProtocolthere (#3459) - this also changed howaddSourceTypeworks since now you'll need to load the script withmaplibregl.importScriptInWorkers. -
⚠️ ChangesaddProtocolto be promise-based without the usage of callbacks and cancelable (#3433) -
⚠️ Moved theaddSourceTypeto be a part of the global maplibregl object instead of being per map object (#3420) -
⚠️ Removed callback usage frommap.loadImagein continue to below change (#3422) -
⚠️ Changed theGeoJSONSource'sgetClusterExpansionZoom,getClusterChildren,getClusterLeavesmethods to return aPromiseinstead of a callback usage (#3421) -
⚠️ Changed thesetRTLTextPluginfunction to return a promise instead of using callback (#3418) this also changed how the RTL pluing code is handled internally by splitting the main thread and worker thread code. -
⚠️ RemovesetCooperativeGesturesandgetCooperativeGesturesfunctions in favor ofcooperativeGestureshandler which now has anenabled()ordisabled()methods (#3430) -
⚠️ Changed the undeling worker communication from callbacks to promises. This has a breaking effect on the implementation of customWorkerSourceand how it behaves (#3233) -
⚠️ Changed theSourceinterface to return promises instead of callbacks (#3233) -
⚠️ Changed all the sources to be promises based. (#3233) -
⚠️ Changed themap.loadImagemethod to return aPromiseinstead of a callback usage (#3233) -
Add "opacity" option and
setOpacitymethod to Marker (#3620) -
Created a new example showing how to place a threejs scene as a
CustomLayerover maplibre 3d-terrain (#3429) -
Changed
ImageRequestto bePromisebased (#3233) -
Improved precision and added a subtle fade transition to marker opacity changes (#3431)
-
Adds support for terrain in
setStylewith diff method (#3515, #3463) -
Upgraded to use Node JS 20 and removed the dependency of
glpackage from the tests to allow easier develpment setup. (#3452)
🐞 Bug fixes
- Fix wheel zoom to be into the same direction above or under the horizon (#3398)
- Fix _cameraForBoxAndBearing not fitting bounds properly when using asymettrical camera viewport and bearing.(#3591)
- Fix missing export
Maptype in thed.tsfile (#3564) - Fix the shifted mouse events after a css transform scale on the map container (#3437)
- Fix markers remaining transparent when disabling terrain (#3431)
- Fix labels disappearing when enabling terrain at high zoom (#3545)
- Fix zooming outside the central globe when terrain 3D is enabled (#3425)
- Fix cursor being shown indefinitely as a pointer when removing a popup with its
trackPointermethod active (#3434) - Fix a bug in showing cooperative gestures when scroll zoom is disabled (#2498)
- Handle loading of empty raster tiles (204 No Content) (#3428)
- Fixes a security issue in
Actoragainst XSS attacks in postMessage / onmessage (#3239)
v4.0.0-pre.6
Bump version to 4.0.0-pre.6 (#3633) * Bump version to 4.0.0-pre.6 * remove bugs entry --------- Co-authored-by: HarelM <[email protected]> Co-authored-by: HarelM <[email protected]>
v4.0.0-pre.5
Bump version to 4.0.0-pre.5 (#3619) * Bump version to 4.0.0-pre.5 * Update CHANGELOG.md --------- Co-authored-by: HarelM <[email protected]> Co-authored-by: Harel M <[email protected]>
v4.0.0-pre.4
Fix release and benchmark pipelines (#3566)
v4.0.0-pre.3
Bump version to 4.0.0-pre.3 (#3558) * Bump version to 4.0.0-pre.3 * Update CHANGELOG.md * Add more logs to understand why the tests are failing * Timeout instead of idle *hack* * remove unwanted changes * Fix lint, revert code --------- Co-authored-by: HarelM <[email protected]> Co-authored-by: Harel M <[email protected]>
v4.0.0-pre.2
Bump version to 4.0.0-pre.2 (#3439) * Bump version to 4.0.0-pre.2 * Update CHANGELOG.md --------- Co-authored-by: HarelM <[email protected]> Co-authored-by: Harel M <[email protected]>
v4.0.0-pre.1
Fix issue with pre-release check in CI (#3404) * Fix issue with pre-release check * Add space just in case.
v3.6.2
https://github.com/maplibre/maplibre-gl-js
Changes since MapLibre GL JS v3.6.1:
🐞 Bug fixes
v3.6.1
https://github.com/maplibre/maplibre-gl-js
Changes since MapLibre GL JS v3.6.0:
🐞 Bug fixes
- Fix
undefined_onEaseFramecall inCamera._renderFrameCallback()while doingCamera.jumpToduring aCamera.easeTo(#3332)