android-v10.2.0-beta.1
Pre-release
Pre-release
·
14 commits
to v10.2
since this release
10.2.0-beta.1 November 18, 2021
Features ✨ and improvements 🏁
- Introduce view annotation support which allows adding Android views on top of the
MapViewanchored to geo-point. (#834)
View annotations are controlled withViewAnnotationManagerthat can be accessed fromMapViewwithmapView.viewAnnotationManager.
Adding / updating / removing view annotation operations are supported.
Various view annotations options are present:- bind view annotation to
Pointon the map. - relative positioning using
anchorproperty which behaves the same as symbol layericonAnchorproperty. - additional X, Y offset when positioning view annotation.
- allowing view annotations to overlap with other view annotations.
- selecting view annotation making sure it will be always displayed on top of non-selected view annotations.
- binding view annotation with some
Featureby id so that view annotation's visibility is in sync with feature's visibility.
- bind view annotation to
- Remove
MapViewargument when constructingAnnotationManager. Constructor takingMapViewas parameter is marked as deprecated. (#766) - Implement cluster API on top of
MapboxMap.queryFeatureExtensionsmaking it easier to use and providing better alignment with Mapbox Maps v9. (#773) - Add heatmap and circle layer support to globe view. (#852)
- Add cancelable Query Rendered Features API to
MapboxMap. (#852) - Improve
MapboxMap.queryRenderedFeaturesperformance especially when querying large number of features. (#852) - Cache layer layout key inside layer, so that it is not re-evaluated at every parse of the every tile improving rendering performance. (#852)
- Core renderer prints its version on initialization. (#852)
- Introduce experimental
MapboxMap.setMemoryBudgetmethod for setting memory budget for the map and runtime "resource-budget" property for data sources. (#852) - Improve performance by avoiding re-layout of invisible fading tiles. (#852)
- Add utility methods to
CoordinateBounds. (#852)- Full list functions added:
world(),singleton(@NonNull Point point),hull(@NonNull Point a, @NonNull Point b),isValid(),south(),west(),north(),east(),southeast(),northwest(),center(),constrain(@NonNull Point point),isEmpty(),isBounded(),crossesAntimeridian(),contains(@NonNull Point point, boolean wrappedCoordinates),contains(@NonNull CoordinateBounds area, boolean wrappedCoordinates),containsLatitude(double latitude),containsLongitude(double longitude),latitudeSpan(),longitudeSpan(),intersects(@NonNull CoordinateBounds area, boolean wrappedCoordinates),extend(@NonNull Point point),extend(@NonNull CoordinateBounds area).
- Full list functions added:
Bug fixes 🐞
- Fix
MapView.onLowMemorynot being called on low resources. (#780) - Fix scale bar ratio setting not applied correctly. (#827)
- Fix scale bar text missing for Android API 23. (#839)
- Fix scale bar text being overlapped and clipped. (#856)
- Fix puck jump to nullisland when location plugin settings are changed. (#846)
- Fix scale listener events not being called for quick zoom doubleTap and doubleTouch gestures. (#858)
- Release all unused resources when
MapboxMap.reduceMemoryUseis invoked. (#852) - Fix crash for the case when an empty fill extrusion bucket is tried to be rendered. (#852)
- Fix transparency issues with value < 0.5 for 3D puck models. (#852)
- Fix regression where setting the same geojson source URL did not refresh the data. (#852)
- Fix symbol layers with variable anchor placement not being placed correctly on globe view. (#852)
- Fix crash in symbol reprojection code caused by division by zero. (#852)
- Fix issue with bounds constraining behavior when terrain is enabled. (#852)
Dependencies
- Bump gl-native to v10.2.0-beta.2 and common to v21.0.0-rc.1. (#852)