Repository navigation
v11.31.2
Important
CocoaPods distribution is discontinued. MapboxMaps is no longer published to CocoaPods. Use Swift Package Manager or the direct download instead. Previously released versions remain available on CocoaPods.
Bug fixes 🐞
-
Point annotations jumped while zooming out
When zooming out quickly, a symbol could briefly appear at its position in a coarser parent tile before the more detailed tile finished loading, then snap back. This happened when symbols used a sort key such asPointAnnotation.symbolSortKey, because the sort order could place the parent tile's copy ahead of the detailed one. The detailed tile's copy is now preferred. -
View annotations stuck to outdated layer geometry
A view annotation bound to a layer withAnnotatedFeature.layerFeature(layerId:featureId:)could stay on the layer's old geometry after the layer's source data changed, until the next zoom change. The cached geometry is now discarded when the source updates. -
View annotations stayed on old geometry after being re-added
Removing all view annotations and adding them again, for example when switching the selected route, placed them on the layer's previous geometry until the camera moved. Layer updates that happen while no annotations exist are now taken into account. -
View annotations flickered or jumped when camera padding left too little room
WhenCameraOptions.paddingleft less room than a layer-bound view annotation needs, the annotation was re-placed from scratch every frame and moved whenever tiles loaded or other annotations changed. It now keeps its last position in that situation. -
View annotation did not move when its bound layer changed
SettingViewAnnotation.annotatedFeatureto a feature on a different layer left the annotation attached to the previous layer's geometry. The annotation is now placed on the new layer. -
Crash when several maps rendered view annotations at the same time
Placing layer-bound view annotations on more than one map at once could corrupt memory and crash the app. The maps shared an unsynchronized cache, which has been removed.
Dependencies
- Update MapboxCommon to
24.31.2. - Update MapboxCoreMaps to
11.31.2.
Dependency requirements:
- Compatible version of Xcode:
26.5