·
27 commits
to main
since this release
Important
Minimal deployment target is raised to iOS 14.0
Features ✨ and improvements 🏁
- Mark
SymbolElevationReference
,FillExtrusionBaseAlignment
,FillExtrusionHeightAlignment
,ModelScaleMode
,ModelType
,ClipLayerTypes
,BackgroundPitchAlignment
types as Experimental. Initially they were exposed as stable by mistake. If you use them, please importMapboxMaps
withExperimental
SPI:
@_spi(Experimental) import MapboxMaps
- Localize geofencing attribution dialog.
- Support dictionary expression literals.
- Bump minimal deployment target from 12.0 to 14.0.
- [SwiftUI] Expose new
slot()
method on annotation groups that takesSlot
instead ofString
. Use the type with annotationGroups:
CircleAnnotationGroup {}
// old
.slot("middle")
// new
.slot(.middle)
- Introduce
ViewAnnotation.priority
, deprecateViewAnnotation.selected
. Use this property to define view annotation sort order. - Introduce
ViewAnnotation.minZoom
andViewAnnotation.maxZoom
. Use these properties to configure zoom-level specific view annotations. - Support expression input for promoteId
- Expose zlevel of the current queried polygon in road elevation queries
- Adjust depth bias when in orthographic mode
- Use zLevelProgress property to disambiguate elevation on dynamic routes
- Append http response message to response error
- Expose experimental ColorTheme API to set style wide color theme. A color theme modifies the global colors of a style using a LUT (lookup table) for color grading.
Pass the image either as a base64-encoded string or as UIImage:
let mapView = MapView()
mapView.mapboxMap.setMapStyleContent {
ColorTheme(base64: "base64EncodedImage") // or use an uiimage shortcut ColorTheme(uiimage: lutImage)
}
Note
Each style can have only one ColorTheme
. Setting a new theme overwrites the previous one. Further details can be found in documentation for ColorTheme
- Add support for experimental *-use-theme propert that allow to override the color theme set on the Map. This is experimental and have several limitations - currently expressions are not supported. Color properties in Lights, Rain, Snow are not supported. *-use-theme for layer applied only after zoom level change.
- Promote
ClipLayer.clipLayerTypes
andClipLayer.clipLayerScope
to stable. - Remove experimental
DirectionalLight.shadowQuality
. - Add experimental
ViewAnnotationManager.viewAnnotationAvoidLayers
for specifying layers that view annotations should avoid. The API currently only supports line layers. - Add support for the
maxOverscaleFactorForParentTiles
property inCustomRasterSource
andCustomGeometrySource
, allowing greater control over tile overscaling behavior when rendering custom raster tiles.
Bug fixes 🐞
- Prefer last used anchor for DVA placement
- Fix out of bound issue of gradient effect
- Fix hidden elements caused by flood lighting
- Fixing parsing raster sprite images with float stretch/content coordinates
- Fix glyph loading issue when incorrect glyph url is used
- Fix color theme data decoding
- Speeding up start with big old offline database
- Fixing disappearing tiles in some rare conditions
- Fix rasterization of images with positive mask coordinates
- Place viewannotation away from camera when pitch > 45
- Fix dark shades of gradient effect in night preset
- Fix exception on the platform side while parsing the config expression
- Fix problems with models and depth precision in ortho projection
- Fix for autoMaxZoom=true
- Fixed background layers which used images from a mapbox-hosted style
- Fixed images being displayed incorrectly in some cases with line patterns and line-join:none
- Clipping next zoom with maxzoom during calculation of text/icon size. Fixed text-zoom interpolation to 0.
- Fix too early sources loaded event
- Fix line rendering for layers with elevated and non-elevated buckets
- Fix crash on style re-load if a config referenced in the expression was missing
- Fix high cpu usage when map goes to background
- Fixed missing
onStyleLoaded
call if sprite is absent in cache and there are no network connection - Fix incorrect progress when zLevel splitting
- [common/tile_store] Fix request coalescing with accepted formats
- [telemetry] Set initial movement information to location events delegate
💫️ Other
- Fix road shadows issues when far away and low zoom levels
- Extend tilecover for elevated roads avoiding missing road segments
- [tilestore, logging] Log error when contentResult is unvailable
- [tile_store] Migrate resources from HTTP URL to
mapbox://
URI - Concurrency parameter may be ignored by tilestore tool because of uninitialised variable which stops thread right away
Dependencies
- Update MapboxCommon to
24.10.0
. - Update MapboxCoreMaps to
11.10.0
. - Update Turf to
4.0.0
Dependency requirements:
- Compatible version of Xcode:
15.2.0