android-v10.4.0-beta.1
Pre-release
Pre-release
·
13 commits
to v10.4
since this release
10.4.0-beta.1 February 24, 2022
Features ✨ and improvements 🏁
- Refactor scheduling logic for render thread improving rendering performance. (#1068)
- Add LocationCompassEngine and accuracy radius support for location component plugin. (#1016) (#1131)
Inorder to avoid breaking api changes, interface location2 is introduced for updatingpuckBearingSource,puckBearingEnabledandshowAccuracyRingproperties.
// Change the puck bearing source.
mapView.location2.puckBearingSource = PuckBearingSource.HEADING
mapView.location2.puckBearingSource = PuckBearingSource.COURSE
// Change the visibility of accuracy ring.
mapView.location2.showAccuracyRing = true
mapView.location2.showAccuracyRing = false
// Change the puck bearing enabled.
mapView.location2.puckBearingEnabled = true
mapView.location2.puckBearingEnabled = false
- Add support for custom widgets rendered on top of the map. (#1036)
- Expose DefaultLocationProvider as public class. (#1168)
- Add new methods to View Annotation API:
ViewAnnotationManager.removeAllViewAnnotations()andViewAnnotationManager.addOnViewAnnotationUpdatedListener(listener: OnViewAnnotationUpdatedListener)/ViewAnnotationManager.removeOnViewAnnotationUpdatedListener(listener: OnViewAnnotationUpdatedListener). (#1165) - Improve rendering performance by coalescing map updates when possible. (#1160)
- Add
StyleManager::hasStyleImageAPI that checks whether an image is in the style or not. (#1160) - Improve Snapshotter performance by using a lightweight scheduler instead of platform runloop. (#1160)
- Map now waits on sprite sheet loading before rendering. (#1160)
- Improve map rendering performance by avoiding calculations for all the non-transitional style layer paint properties. (#1160)
- Enable using of tile pack scheme from TileJSON. (#1160)
- Improve map rendering performance by decreasing de/allocations in map placement code. (#1160)
- Avoid style layer properties transition calculation when
TransitionOptions::durationis set to 0. (#1160) - Enable tile packs for DEM terrain tiles, it includes both Offline API and
TileStoreUsageMode::ReadAndUpdateresource option. (#1160) - Render tiles with partial content while the glyph dependencies are loading. (#1160)
- Canonicalize URLs and enable Offline API usage for the 3dtiles/v1 tiles. (#1160)
- Add optional
TransitionOptionsparameter toMapboxMap.loadStyleUri,MapboxMap.loadStyleJson,MapboxMap.loadStyleto apply transition to style being loaded. (#1174)
Bug fixes 🐞
- Fix skipping / crashing user events scheduled on a render thread with
MapView#queueEvent. (#1068) - Fix location puck not being shown if map is created without initial style (e.g. MapInitOptions.styleUri == null) and then loaded asynchronously. (#1114)
- Fix crash within location plugin that happens when style is reloaded simultaneously with location plugin updates. (#1112)
- Fix memory leak in location component. (#1093, #1172)
- Fix screen coordinate queries when using zero pitch and high zoom values. (#1160)
- Avoid possible crash at program exit caused by dummy tracer accessed after the destruction. (#1160)
- Fix crash for the case when a map event is handled by an Observer of a destructed map. (#1160)
- Fix shimmering artifact when pitched raster tiles with compressed textures are rendered. (#1160)
- Fix bearing of the puck reseted on settings change. (#1144)