Update dependency mapbox-gl to v2 - autoclosed #33
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:
0.49.0
->2.15.0
Release Notes
mapbox/mapbox-gl-js (mapbox-gl)
v2.15.0
Compare Source
Features ✨ and improvements 🏁
respectPrefersReducedMotion
map option (#12694)isPointOnSurface
map method to determine if the given point is located on a visible map surface. (#12695)Bug fixes 🐞
v2.14.1
Compare Source
Bug fixes 🐞
v2.14.0
Compare Source
Features ✨ and improvements 🏁
referrerPolicy
option for thetransformRequest
function when using fetch (#12590) (h/t robertcepa)Bug fixes 🐞
prefers-reduced-motion
is enabled (#12631)v2.13.0
Compare Source
Features ✨ and improvements 🏁
setTiles
,setUrl
). (#12352)Bug fixes 🐞
line-border-color
when used withline-trim-offset
(#12461)fitBounds
with globe projection (#12488)map.getBounds()
returning incorrect bounds with adaptive projections. (#12503)undefined is not an object
incoalesceChanges
(#12497) (h/t nick-romano)v2.12.1
Compare Source
Bug fixes 🐞
v2.12.0
Compare Source
Features ✨ and improvements 🏁
cameraForBounds
,fitBounds
andfitScreenCoordinates
camera APIs. (#12367)Bug fixes 🐞
getBounds
when used around the poles with a globe projection. (#12315)*-pattern
andline-dasharray
properties (#12372)center-to-distance
along with terrain. (#12413)v2.11.1
Compare Source
Bug fixes 🐞
v2.11.0
Compare Source
Features ✨ and improvements 🏁
cameraForBounds
with globe projection (#12138)fitBounds
andfitScreenCoordinates
with globe projection (#12211)getBounds
with globe projection. (#12286)occludedOpacity
allowing the user to set the opacity of a marker that's behind 3D terrain (h/t jacadzaca) (#12258)ImageSource
image request when underlying resource is no longer used (#12266) (h/t maciejmatu)LngLatBounds.extend
(#12270) (h/t stampyzfanz)Bug fixes 🐞
GeolocateControl
sometimes not working in iOS16 WebView (#12239)map.getStyle()
with globe view (#12163)trackPointer
is removed (#12230) (h/t camouflagedName)v2.10.0
Compare Source
Features ✨ and improvements 🏁
rotationAlignment: 'horizon'
allowing marker rotation to match the curvature of the horizon in globe view. (#11894)Bug fixes 🐞
id
expression didn't correctly handle a value of 0. (#12000)cooperativeGestures
preventing panning on mobile while in fullscreen. (#12058)setStyle
with a globe projection. (#12049)v2.9.2
Compare Source
Bug fixes 🐞
ScaleControl
to support localization in browsers withoutNumberFormat
support. (#12068)GeolocateControl
not working in Safari. (#12080)v2.9.1
Compare Source
Bug fixes 🐞
v2.9.0
Compare Source
Features ✨
globe
projection. This new projection displays the map as a 3d globe and can be enabled by either passingprojection: globe
to the map constructor or by callingmap.setProjection('globe')
. All layers are supported by globe except for Custom Layers and Sky.fog
with three new style specification properties:high-color
,space-color
andstar-intensity
to allow the design of atmosphere around the globe and night skies. (#11590)line-trim-offset
that can be used to create a custom fade out with improved update performance overline-gradient
. (#11570)GeolocateControl
. (#10400) (h/t behnammodi)Map.Title
property to locale options to localise the maparia-label
. (#11549) (h/t andrewharvey)Bug fixes 🐞
v2.8.2
Compare Source
Bug fixes 🐞
v2.8.1
Compare Source
Bug fixes 🐞
v2.8.0
Compare Source
Performance improvements 🏁
Bug fixes 🐞
map.fitBounds()
,map.fitScreenCoordinates()
, andmap.cameraForBounds()
incorrectly matching bounds with non-zero bearing. (#11568) (h/t TannerPerrien)border-radius
more consistently. (#11423) (h/t nagix)ScaleControl
displaying incorrect units with some projections.(#11657)MapDataEvent.isSourceLoaded()
to check if specific source has loaded. (#11393)closeOnClick:true
. (#11540)map.removeImage()
on animated image. (#11580)fill-extrusion
layers not rendering on tile borders when used with terrain. (#11530)Workflow 🛠️
v0.108.0
tov0.142.0
and enable type-first mode, greatly improving performance of type-checking. (#11426)v2.7.1
Compare Source
🐞 Bug fixes
v2.7.0
Compare Source
Features ✨ and improvements 🏁
setSnapToPixel
andgetSnapToPixel
to indicate rounding a marker to pixel. (#11167) (h/t malekeym)aria-label
for interactive markers for improved user accessibility. (#11349)maxzoom
. (#11276)map.setProjection
(#11279) (h/t lpizzinidev)🐞 Bug fixes
getBounds
sometimes returning invalidLngLat
when zooming on a map with terrain. (#11339) (h/t @ted-piotrowski)Improve this Map
attribution element. (#11360)v2.6.1
Compare Source
🐞 Bug fixes
v2.6.0
Compare Source
✨ Features and improvements
albers
,equalEarth
,equirectangular
,lambertConformalConic
,naturalEarth
andwinkelTripel
. Change the projection by setting it in the map constructor:new Map({ projection: 'winkelTripel', ... })
. (#11124)"cooperativeGestures": true
map option that prevents the map from capturing page scrolling and panning. When enabled, scroll zooming requiresctrl
or⌘
to be pressed and touch panning requires two fingers (#11029, #11116)["pitch"]
and["distance-from-camera"]
expressions can now be used within thefilter
of a symbol layer. (#10795)aria-label
in controls, replacearia-pressed
witharia-expanded
in the attribution control, interactive markers with popups express anaria-expanded
state, and interactive markers have the role "button". (#11064)map.on()
, allowing users to retrieve features under the mouse or touch event based on the order in which they are rendered. (#11114)(h/t @omerbn)🐞 Bug fixes
map.setFeatureState(...)
not updating rendering when terrain is enabled. (#11209)min
andmax
zoom are changed (#11018)null
feature values returned as"null"
byqueryRenderedFeatures(...)
(#11110)'raster-resampling': 'nearest'
(#11162)v2.5.1
Compare Source
🐞 Bug fixes
v2.5.0
Compare Source
Features ✨ and improvements 🏁
queryRenderedFeatures
support to heatmap layers. (#10996)line-gradient
andline-dasharray
paint properties together on line layers. (#10894)preclick
event allowing popups to close and open in a new location on one click. (#10926)addClassName
,removeClassName
andtoggleClassName
methods to work on popup instances that are not added to the map. (#10889)🐞 Bug fixes
maxBounds
property not working across the 180th meridian. (#10903)map.getBounds()
returning too-large bounds under some conditions. (#10909)v2.4.1
Compare Source
v2.4.0
Compare Source
✨ Features and improvements
showUserHeading
option toGeolocateControl
that draws a triangle in front of the dot to denote both the user's location, and the direction they're facing.(#10817) (h/t to @tsuz)text-writing-mode
property when usingsymbol-placement: line
text labels. (#10647)descender
andascender
font metrics.(#8781)🐞 Bug fixes
fill-extrusion
dataset with terrain. (#10812)line-center
line labels when the anchor is very near to line segment endpoints. (#10776)ImageSource
breaking in Firefox/Safari if it's not immediately visible.(#10698)v2.3.1
Compare Source
🐞 Bug fixes
optimizeForTerrain
is set to false (#10763)text-variable-anchor
(#10709)v2.3.0
Compare Source
✨ Features and improvements
line-dasharray
andline-cap
properties. (#10591)text-line-height
(#10612)map.queryTerrainElevation(lngLat)
when terrain is active (#10602)🐞 Bug fixes
line-gradient
paint property (#10557)map.loadImage
followed with a delay bymap.addImage
failing in Safari and Firefox. (#10524)type=button
on attribution button to prevent accidental form submit when map is nested in<form>
(#10531)v2.2.0
Compare Source
Features and improvements
testMode
Map option that silences errors and warnings generated due to an invalid accessToken. It maybe useful when using the library to write unit tests. (#10445)geojsonSource.setData(...)
performance in Safari (#10417)map.getTerrain()
method (#10413)showTerrainWireframe
map debug option for displaying terrain wireframe (#10406)geojsonSource.getClusterLeaves(...)
(#10403) (h/t henk23)Bug fixes
map.getBounds()
to return the inset bounds when map padding is set (#10386)GeolocateControl
. (#10334) (h/t anderswi)queryRenderedFeatures(...)
for fill-extrusions partly behind the camera (#10428)collectResourceTiming
errors (#10321)v2.1.1
Compare Source
🐞 Bug fixes
v2.1.0
Compare Source
✨ Features and improvements
localFontFamily
map option that enables local generation of all font glyphs. (#10298)localIdeographFontFamily
orlocalFontFamily
options. (#10298)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)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
fill-extrusion
s when terrain is enabled. (#10293)clusterMaxZoom
so that it is not capped by the sourcemaxzoom
. (#10300)fill-extrusion
querying at low pitch. (#10315)evented.listens
returnsfalse
when no listener is available. (#10281)v2.0.1
Compare Source
✨ Features and improvements
mapboxgl.workerClass
). (#10219)mapboxgl.setNow
andmapboxgl.restoreNow
methods which allow setting custom animation timing for 60 fps, jank-free video recording. (#10172)🐞 Bug fixes
ImageSource
and dynamically loaded icons didn't work in some cases in Firefox and Safari. (#10230)map.unproject
andmap.panBy
acted unpredictably in certain cases. (#10224)map.setStyle
couldn't be used to enable terrain. (#10177)v2.0.0
Compare Source
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
terrain
root level style-spec property or with the functionmap.setTerrain()
. (#1489)atmospheric
andgradient
.map.getFreeCameraOptions()
andmap.setFreeCameraOptions()
.🐞 Bug fixes
raster
andraster-dem
tiles when the RTLTextPlugin loads.fill-extrusion
s.🛠️ Workflow
v1.13.3
Compare Source
🐞 Bug fixes
customAccessToken
is provided along with non-Mapbox tiles (#12520)v1.13.2
Compare Source
🐞 Bug fixes
v1.13.1
Compare Source
1.13.1
🐞 Bug fixes
v1.13.0
Compare Source
✨ Features and improvements
symbol-sort-key
. #9751 (h/t @osvodef)Marker
clickTolerance
option. #9640 (h/t @ChristopherChudzicki)Map
hasControl
method. #10035Popup
setOffset
method. #9946 (h/t @jutaz)KeyboardHandler
disableRotation
andenableRotation
methods. #10072 (h/t @jmbott)🐞 Bug fixes
queryRenderedFeatures
didn't properly expose the paint values if they were data-driven. #10074 (h/t @osvodef)fitBounds
had an unexpected result with non-zero bearing and uneven padding. #9821 (h/t @allison-strandberg)within
expression didn't work inquerySourceFeatures
. #9933Popup
content HTML element was removed onsetDOMContent
. #10036icon-image
is used as a legacy categorical function. #10060Image
dataURI's are released. #10118We intend to remove support for Internet Explorer 11 in a future release of GL JS later this year.
v1.12.0
Compare Source
✨ Features and improvements
setTiles
,setUrl
). #8048 (h/t @stepankuzmin)filter
option for GeoJSON sources to filter out features prior to processing (e.g. before clustering). #9864line-gradient
for long lines. #9694raster-dem
sources to properly support themaxzoom
option and overzooming. #9789 (h/t @brendan-ward)🐞 Bug fixes
easeTo
andflyTo
animations, freezing the map. #9884 (h/t @andycalder)addImage
. #9911 (h/t @francois2metz)promoteId
option failed for fill extrusions with defined feature ids. #9863🛠️ Workflow
master
tomain
.v1.11.1
Compare Source
🐞 Bug fixes
map.loaded()
to incorrectly returnfalse
after a click event. (#9825)v1.11.0
Compare Source
✨ Features and improvements
Marker
icon.(#9414) (h/t adrianababakanian)clusterMinPoints
option for clustered GeoJSON sources that defines the minimum number of points to form a cluster.(#9748)🐞 Bug fixes
*-pattern
properties on AMD graphics card vendor.(#9681)geometry exceeds allowed extent
warning when using Mapbox Streets vector tiles.(#9753)v1.10.2
Compare Source
🐞 Bug fixes
v1.10.1
Compare Source
🐞 Bug fixes
map.isMoving()
returned true while map was not moving (#9647, fixed by #9679)touchmove
events from firing during gestures (#9676, fixed by #9685)image
expression evaluation which was broken under certain conditions (#9630, fixed by #9685)within
expressions in filters not evaluating correctly (#9605, fixed by #9611)undefined
paint variable inStyleLayer
(#9688) (h/t mannnick24)v1.10.0
Compare Source
✨ Features
mapboxgl.prewarm()
andmapboxgl.clearPrewarmedResources()
methods to allow developers to optimize load times for their maps (#9391)index-of
andslice
expressions to search arrays and strings for the first occurrence of a specified value and return a section of the original array or string (#9450) (h/t lbutler)🍏 Gestures
This release significantly refactors and improves gesture handling on desktop and mobile. Three new touch gestures have been added:
two-finger swipe
to adjust pitch,two-finger double tap
to zoom out, andtap then drag
to adjust zoom with one finger (#9365). In addition, this release brings the following changes and bug fixes: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.