android-v10.5.0-beta.1
Pre-release
Pre-release
alexander-kulikovskii
released this
07 Apr 12:34
·
12 commits
to v10.5
since this release
10.5.0-beta.1 April 7, 2022
Breaking changes ⚠️
- Experimental methods
MapboxMap#setMapProjection
/MapboxMap#getMapProjection
are removed and should be replaced withStyleInterface#setProjection
/StyleInterface#getProjection
. Setting projection supports Style DSL as well. (#1255)
Features ✨ and improvements 🏁
- Optimize how plugins handle settings changes. Call
applySettings
only when settings value changes. (#1189) - Add
MapboxMap.isValid()
andStyle.isValid()
methods.MapboxMap
becomes invalid whenMapView.onDestroy()
is called.Style
becomes invalid whenMapView.onDestroy()
is called or new style has been loaded. Accessing any method on invalid object will print an error log. Also unsubscribe map observers automatically whenMapboxMap.onDestroy()
is invoked. (1193) (1202 (1230) (1241)) - Add
MapboxMap#coordinateBoundsForCameraUnwrapped
method for API consistency. (1222) - Add
LocationIndicatorLayer.bearingTransition
API to control transition of bearing property. (1207) - Add
MapboxConcurrentGeometryModificationException
with detailed information instead ofConcurrentModificationException
that is thrown when GeoJson data is mutated. (1248) - Introduce
line-trim-offset
property for LineLayer. (1252) - Deprecate
FollowPuckViewportStateOptions.animationDurationMs
, the initial transition will be handled properly by the Viewport plugin internally. (1256, 1261, 1262) - Mark
MapView#viewAnnotationManager
as non-experimental meaning View Annotation API will not have breaking changes in upcoming minor releases. (1260) - Map render call optimized further by further reducing computational overhead. (#1244)
- Layer properties transitions performance improved if the layer is transitioning to the same constant value or if transitioning from/to data-driven property. (#1244)
- New line layer paint property introduced: '{"line-trim-offset", [trim-start, trim-end]}', to take the line trim-off percentage range based on the whole line range [0.0, 1.0]. The property will only be effective when 'line-gradient' property is set. The line part between [trim-start, trim-end] will be marked as transparent to make a line gradient a vanishing effect. If either 'trim-start' or 'trim-end' offset is out of valid range, the default range [0.0, 0.0] will be set. (#1244)
- Globe view controls revamped for more intuitive interaction with touch controls. (#1244)
- OfflineRegion::getStatus() API added to get the completion status and the local size of the existing legacy offline regions. (#1244)
- Automatic transition between the globe and mercator projection updated to appear visually more subtle. (#1244)
Bug fixes 🐞
- Dispatched in-flight events will not be delivered if 'unsubscribe' is called before an event is delivered. (#1244)
- Transitions between globe and mercator projection do not cull tiles incorrectly anymore. (#1244)
- Map LOD disabled for camera pitch less than 30 degrees to avoid map content missing on maps with insets. (#1244)
- Terrain-related camera issues fixed, previously making it appear under terrain, or incorrectly repositioned after exaggeration change. (#1244)
- Terrain rendering disabled on GPUs not supporting Vertex Texture Fetch. (#1244)
- Fixed a bug that occasionally prevented symbols from loading. (#1244)
- Fix PolygonAnnotation and PolylineAnnotation being distorted while dragging with 3D terrain. (#1223)
Dependencies
- Bump gl-native to v10.5.0-beta.1, mapbox-common to v21.3.0-beta.2. (#1244)