Repository navigation
v11.37.0-rc.1
Pre-releaseFeatures ✨ and improvements 🏁
- Albers equal-area projection (experimental)
SetStyleProjectionName.albersto draw the map in the Albers equal-area projection, which keeps relative areas accurate for a region. UseStyleProjection.albers(center:parallels:)to fit it to your region. Without a center and parallels, it uses defaults for the continental US.
@_spi(Experimental) import MapboxMaps
try mapView.mapboxMap.setProjection(.albers(
center: CLLocationCoordinate2D(latitude: 50, longitude: 10),
parallels: 43...62
))-
Camera view point (experimental)
CameraOptions.viewPointandCameraState.viewPointset where the camera's optical axis crosses the viewport, separately frompositionPoint. With a fixed view point, moving the position point leaves the horizon and the field of view unchanged. By default the view point follows the position point, so camera behavior stays the same. -
Standard style water interactions and landmark color mix
FeaturesetDescriptor.standardWaterandStandardWaterFeaturelet you handle taps and long presses on water in the Standard style.MapStyle.standard(...)also takes a newcolorMix3dLandmarksparameter to set the color mix level for landmark building models. -
View annotation collision APIs are now stable
Symbol layer collision, collision boxes, avoid regions and avoid layers for view annotations no longer need@_spi(Experimental) import. This coversViewAnnotation.enableSymbolLayerCollision,ViewAnnotation.enableAvoidRegions,ViewAnnotationOptions.enableSymbolLayerCollision,ViewAnnotationOptions.collisionBoxes,ViewAnnotationOptions.enableAvoidRegions,ViewAnnotationManager.viewAnnotationAvoidRegions,ViewAnnotationManager.viewAnnotationAvoidLayersandUIView.mbxViewAnnotationCollisionBox, and in SwiftUIMapViewAnnotation.enableSymbolLayerCollision(_:),View.mbxViewAnnotationCollisionBox(_:)andMap.viewAnnotationAvoidLayers(_:). Behavior is unchanged.
Bug fixes 🐞
-
Seams in line-pattern images
Lines usingLineLayer.linePatternshowed a faint seam between repeats of the pattern, and the image was slightly squeezed along the line. The renderer sampled one pixel past the pattern's edges. It now samples exactly the pattern image. -
Feature state changes not shown on globe and terrain
On the globe or with terrain enabled, changing a feature's state on a flat layer, such as a hover highlight, did not appear until the camera moved. The cached image of the affected tiles was not redrawn. Those tiles are now redrawn as soon as the state changes. -
Fill extrusions hidden behind elevated rasters
A fill-extrusion above a raster layer withRasterLayer.rasterElevationcould disappear behind the raster at low pitch or when zooming out, with terrain disabled. The depth offset that keeps elevated rasters from flickering against the ground pushed them in front of 3D content. The offset now applies only with terrain or on the globe, where it is needed. -
queryRenderedRasterValuesfailing without a layer filter
MapboxMap.queryRenderedRasterValuesreturned an error when called without a layer filter on a style that has a vector source. The query now skips sources that hold no raster values. -
SourceDataLoadedreportingloadedtoo early
For a vector source,SourceDataLoaded.loadedcould betruefor a tile while other layers of the same source were still loading. It is nowtrueonly when all of the source's layers have loaded the tile. -
Flickering between globe and Mercator
Symbol, circle and heatmap layers could flicker as the map switched between the globe and Mercator projections around zoom 6. Tiles are now prepared for both projections during the transition. -
Wrong zoom when fitting coordinates with a flipped viewport
With a flipped viewport set throughMapboxMap.setViewportMode(_:),MapboxMap.camera(for:...)with a list of coordinates kept the starting zoom instead of fitting them. This release also fixes tiles missing along one side of the area below the screen at high pitch. -
Incorrect colors with
model-color
ModelLayer.modelColorproduced the wrong color because it skipped a color space conversion. Models now show the color you set.
Dependencies
- Update MapboxCommon to
24.37.0-rc.1. - Update MapboxCoreMaps to
11.37.0-rc.1.
Dependency requirements:
- Compatible version of Xcode:
26.5