fix(deps): update dependency mapbox-gl to v3 #166
Closed
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:
^1.10.0
->^3.0.0
Release Notes
mapbox/mapbox-gl-js (mapbox-gl)
v3.7.0
Compare Source
Features and improvements ✨
background-pitch-alignment
property of thebackground
layer, which is set tomap
by default but can now be set toviewport
. Useful for highlighting individual features by dimming the rest of the map with a semitransparent background.top
,right
,bottom
, andleft
) (h/t @Ethan-Guttman).retainPadding
option for camera movement methods, which can be set tofalse
for pre-v3.4 padding behavior.config
expression support in layer filter.symbol-z-offset
andsymbol-elevation-reference
.fill-z-offset
property for fill layers.Map#fitBounds
for the alternative projections.Map#setPaintProperty
andMap#setLayoutProperty
methods.string
event type in Map event handlers.RequestTransformFunction
,ResourceType
, andRequestParameters
types.Bug fixes 🐞
fill-extrusion-line-width
rendering for large polygonssymbol-z-order
is set toauto
.minzoom
andmaxzoom
properties were ignored byclip
layers.clip
layers.cast-shadows
property type.setStencilMode
-related error in the console with the dev build.v3.6.0
Compare Source
Features and improvements ✨
fill-exturion
layer by introducingfill-extrusion-line-width
andfill-extrusion-line-alignment
properties. Setfill-extrusion-line-width
to a non-zero value to render walls instead of a solid extrusion.circle-blur
values.data
field.clip-layer-scope
property to limitclip
layer to a specific style fragment.Map
idle
method to check whether a map is idle.Bug fixes 🐞
isSourceLoaded
flag onsourcedata
event for already loaded sources.load
event when all tiles fail to load.dynamic
mode is updated too frequently.dynamic
mode.Map
getLayer
not working properly with custom layers.line-trim-offset
on very long lines.v3.5.2
Compare Source
fill-extrusion-cutoff-fade-range
.v3.5.1
Compare Source
icon-occlusion-opacity
/text-occlusion-opacity
properties to opt-in to new occlusion behavior.v3.5.0
Compare Source
Breaking changes⚠️
@types/mapbox-gl
are not fully compatible with the new first-class typings. Users relying on the community typings may experience breaking changes. Please remove the@types/mapbox-gl
dependency and refer to the v3.5.0 migration guide for instructions on upgrading, resolving common issues, and asking questions regarding the migration to the first-class typings. We welcome your feedback and contributions to make Mapbox GL JS better.Features and improvements ✨
color-theme
property andMap
setColorTheme
method to enable colorization with a lookup table (LUT) images.updateData
forGeoJSON
sources indynamic
mode.icon-occlusion-opacity
andtext-occlusion-opacity
properties to fade symbols behind models and landmarks.line-occlusion-opacity
property to fade lines behind 3D objects.clip
layer to filter out rendering data.line-z-offset
property for a non-globe view.model-cutoff-fade-range
property to control fade out of faraway 3D buildings.line-pattern
on long lines and higher zooms.line-trim-color
andline-trim-fade-range
properties to customize rendering of lines trimmed withline-trim-offset
.Map
getSlots
method for listing available slots of a style.Bug fixes 🐞
updateData
calls.raster-particle
layer animation.model-front-cutoff
property for Meshopt-encoded models.setTerrain
.style.load
event missingstyle
property.queryRenderedFeatures
on areas with missing DEM tiles when terrain is enabled.v3.4.0
Compare Source
Features and improvements ✨
dynamic: true
option for GeoJSON sources that enables partial update API withsource.updateData
method. Further optimizations for this mode are expected in future releases.Map
setConfig
,getConfig
,setSchema
andgetSchema
methods for batch setting of style configuration options.config
option for theMap
constructor andsetStyle
methods for conveniently setting style configuration options on map initialization.icon-color-saturation
,icon-color-contrast
,icon-color-brightness-min
andicon-color-brightness-max
to control symbol layer appearance.line-join
mode:none
to improve line pattern distortions around joins.model-id
property to support URIs (in addition to style-defined model references).devtools
UI.Bug fixes 🐞
flyTo
ignoringpadding
in its options.cameraForBounds
on globe view. (h/t @jonasnoki) #13126preloadOnly
not preloading tiles from style imports.queryRenderedFeatures
for non-integer ID in non-tiled model sourcesmodel-scale
property for large number of 3D models.raster-particle
layer on globe view.raster-array
data.symbol-z-elevate
.raster-particle
layer on certain Android devices.v3.3.0
Compare Source
Features and improvements ✨
raster-array
source type, representing a new experimental Mapbox Raster Tile format which encodes series of tiled raster data (such as weather time series).raster-particle
layer which animates particles of different speed and color based on underlyingraster-array
data.addImport
,moveImport
,updateImport
, andremoveImport
API methods.getSlot
, andsetSlot
API methods to control layers' slots.queryRenderedFeatures
.raster-elevation
support for tiled raster sources.config
expression support in fog.Bug fixes 🐞
maxZoom
.setStyle
.z
offset when the opacity is evaluated at 0 on the zoom change.format
expression in theconfig
expression.symbol-sort-key
property.v3.2.0
Compare Source
Features and improvements ✨
devtools: true
inMap
options.map.areTilesLoaded
.fill-extrusion-flood-light-ground-radius
property.fill-extrusion-cutoff-fade-range
property.Bug fixes 🐞
map.flyTo
withpadding
option was setting and overriding map's padding.url
ortiles
is missing from source, i.e. in MapTiler source.config
expression chaining through nested styles and other issues related to config scope.config
andformat
expressions not working together.v3.1.2
Compare Source
Bug fixes 🐞
v3.1.1
Compare Source
Bug fixes 🐞
fill-extrusions
not being displayed in alternative projections.v3.1.0
Compare Source
Features and improvements ✨
raster-elevation
property for elevating raster layers to a constant height (e.g. clouds over globe).raster-emissive-strength
andfill-extrusion-emissive-strength
properties for controlling 3D lighting on buildings and raster layers.Map
getConfigProperty
method for getting current style config values.config
support in terrain options.null
.minValue
,maxValue
,stepValue
,values
,type
) when evaluating config options.Bug fixes 🐞
center: [0, 0]
andzoom: 0
map options were ignored in favor of style settings.slot
not taking precedence over thebefore
parameter for layer order."camera-projection": "orthographic"
not working in styles with imports.box-sizing: border-box
. (h/t @simondriesen) #12982aria-label
attribute in attribution control that fails accessibility conformance. (h/t @maggiewachs) #12981load
event not firing for the sources whose tiles are 404s.url
ortiles
for tiled sources during validation.v3.0.1
Compare Source
Mapbox GL JS v3 enables the Mapbox Standard Style, a new realistic 3D lighting system, building shadows and many other visual enhancements, and an ergonomic API for using a new kind of rich, evolving, configurable map styles and seamless integration with custom data. You can get more information about the new features in the Mapbox GL JS v3 migration guide.
v3.0.1
Bug fixes 🐞
v3.0.0
Compare Source
Mapbox GL JS v3 enables the Mapbox Standard Style, a new realistic 3D lighting system, building shadows and many other visual enhancements, and an ergonomic API for using a new kind of rich, evolving, configurable map styles and seamless integration with custom data. You can get more information about the new features in the Mapbox GL JS v3 migration guide.
Breaking changes⚠️
optimizeForTerrain
map option (layer rendering on globe and terrain is always optimized now).✨ Features and improvements
*-emissive-strength
properties for styling layers with the new lighting API.measureLight
expression lights configuration property: Create dynamic styles based on lighting conditions.hsl
andhsla
color expressions: These expressions allow you to define colors using hue, saturation, and lightness format.fill-extrusion-cutoff-fade-range
andmodel-cutoff-fade-range
style properties.slot
s, pre-specified locations in the style, where your layer can be added (e.g., on top of existing land layers but below all labels).config
expression: Retrieves the configuration value for the given option.style
option is provided to the Map constructor, the Mapbox Standard Style is now enabled as a default.style.import.load
event to track the loading of imported style fragments.raster-color
paint properties.raster-value
expression: Returns the raster value of a pixel computed viaraster-color-mix
.vertical-range
style property.icon-image-cross-fade
property, which controls the transitioning between the two variants of an icon image.random
expression: Generate random values using this expression. Use this expression to generate random values, which can be particularly helpful for introducing randomness into your map data.distance
expression: Returns the shortest distance in meters between the evaluated feature and the input geometry.symbol-z-elevate
style property.renderstart
event, which, combined with therender
event, can be used to measure rendering frame duration.Bug fixes 🐞
padding
is used.tabindex
when the map is not interactive; removerole="list"
from the attribution control; addrole="img"
to markers (h/t @kumiko-haraguchi and @aviroopjana).queryRenderedFeatures
results on maps with globe and terrain.map
hasImage
andupdateImage
after the map was removed.line-border
.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)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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: