Skip to content

v11.37.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@mapbox-github-ci-writer-public-1 mapbox-github-ci-writer-public-1 released this 02 Dec 12:46
· 14 commits to main since this release

Features ✨ and improvements 🏁

  • Albers equal-area projection (experimental)
    Set StyleProjectionName.albers to draw the map in the Albers equal-area projection, which keeps relative areas accurate for a region. Use StyleProjection.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.viewPoint and CameraState.viewPoint set where the camera's optical axis crosses the viewport, separately from positionPoint. 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.standardWater and StandardWaterFeature let you handle taps and long presses on water in the Standard style. MapStyle.standard(...) also takes a new colorMix3dLandmarks parameter 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 covers ViewAnnotation.enableSymbolLayerCollision, ViewAnnotation.enableAvoidRegions, ViewAnnotationOptions.enableSymbolLayerCollision, ViewAnnotationOptions.collisionBoxes, ViewAnnotationOptions.enableAvoidRegions, ViewAnnotationManager.viewAnnotationAvoidRegions, ViewAnnotationManager.viewAnnotationAvoidLayers and UIView.mbxViewAnnotationCollisionBox, and in SwiftUI MapViewAnnotation.enableSymbolLayerCollision(_:), View.mbxViewAnnotationCollisionBox(_:) and Map.viewAnnotationAvoidLayers(_:). Behavior is unchanged.

Bug fixes 🐞

  • Seams in line-pattern images
    Lines using LineLayer.linePattern showed 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 with RasterLayer.rasterElevation could 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.

  • queryRenderedRasterValues failing without a layer filter
    MapboxMap.queryRenderedRasterValues returned 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.

  • SourceDataLoaded reporting loaded too early
    For a vector source, SourceDataLoaded.loaded could be true for a tile while other layers of the same source were still loading. It is now true only 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 through MapboxMap.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.modelColor produced 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