Update dependency maplibre-gl to v4 - autoclosed #55
+70
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.6.2
->^4.0.0
Release Notes
maplibre/maplibre-gl-js (maplibre-gl)
v4.0.0
Compare Source
✨ Features and improvements
maplibregl
, 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)
MapOptions.attributionControl
to be the type that the control handles, removedMapOptions.customAttribution
(#3618)Note: showing the logo of MapLibre is not required for using MapLibre.
addProtocol
andremoveProtocol
there (#3459) - this also changed howaddSourceType
works since now you'll need to load the script withmaplibregl.importScriptInWorkers
.addProtocol
to be promise-based without the usage of callbacks and cancelable (#3433)addSourceType
to be a part of the global maplibregl object instead of being per map object (#3420)map.loadImage
in continue to below change (#3422)GeoJSONSource
'sgetClusterExpansionZoom
,getClusterChildren
,getClusterLeaves
methods to return aPromise
instead of a callback usage (#3421)setRTLTextPlugin
function 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.setCooperativeGestures
andgetCooperativeGestures
functions in favor ofcooperativeGestures
handler which now has anenabled()
ordisabled()
methods (#3430)WorkerSource
and how it behaves (#3233)Source
interface to return promises instead of callbacks (#3233)map.loadImage
method to return aPromise
instead of a callback usage (#3233)Add "opacity" option and
setOpacity
method to Marker (#3620)Created a new example showing how to place a threejs scene as a
CustomLayer
over maplibre 3d-terrain (#3429)Changed
ImageRequest
to bePromise
based (#3233)Improved precision and added a subtle fade transition to marker opacity changes (#3431)
Adds support for terrain in
setStyle
with diff method (#3515, #3463)Upgraded to use Node JS 20 and removed the dependency of
gl
package from the tests to allow easier develpment setup. (#3452)🐞 Bug fixes
Map
type in thed.ts
file (#3564)trackPointer
method active (#3434)Actor
against XSS attacks in postMessage / onmessage (#3239)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.