This repository was archived by the owner on Jun 21, 2023. It is now read-only.
android-v9.2.0
·
1 commit
to release-water
since this release
Changes since Mapbox Maps SDK for Android v9.1.0:
Features
- Added the
distanceexpression for calculating the shortest distance between an evaluated feature and a given GeoJSON object. (#339) - The
SymbolLayer.iconTextFitproperty now respects the stretch metadata of any nine-part stretchable image passed into thestyle.addImagemethod. You can define the stretchable area of an image by configuring thestretchX,stretchY,contentoptions onStyle.addImageto append the requisite metadata. (#314) - Added methods to set and get the sort key of features in a
CircleLayerat runtime. Features with a higher sort key will appear above features with a lower sort key. (#322) - Introduced
Source.setVolatileto disable ambient caching of tiles from a source. Use this option on transient sources, such as traffic tilesets, if not showing tiles from a source is preferable to showing outdated tiles should an update request fail. (#355) - Introduced
Source.minimumTileUpdateIntervalto override the expiration time set via HTTP headers with a longer expiration time on the client. (#355) - Added
Source.maxOverscaleFactorfor defining how much a parent tile can be overscaled during rendering. This setting is only needed if a custom source on your map appears blurry or distorted when viewed at new zoom levels. (#299)
User location indicator
- Introduced an activation option to render the
LocationComponentwith a dedicated OpenGL layer throughLocationComponentActivationOptions#useSpecializedLocationLayer, instead of the combined symbol and circle layer implementation used by default. (#319) - Introduced an option to add an animated pulsing circle around the
LocationComponentthroughLocationComponentOptions#pulseEnabledand methods to customize it. (#172) - Introduced an option to set a screen area through
LocationComponentOptions#trackingMultiFingerProtectedMoveAreawhere executed gestures will avoid breaking camera tracking whenLocationComponentOptions#trackingGesturesManagementis enabled. (#356)
Improvements and bug fixes
- Improved the default compass engine's heading calculation by accounting for device orientation, ensuring accelerometer and magnetic field sensor events are retained, and pushing updates to the heading even if the sensor is unreliable. (#338)(h/t ystsoi)
- Correctly call the
onFlinglistener only when the velocity of a gesture meets the threshold to animate the camera. (#356) - Enabled adding style images on-demand on
MapSnapshotter. (#317) - Fixed a crash when changing the user interface in
MapSnapshotter.ErrorHandler. (#347) - Fixed a crash when calling the
Style.removeImagemethod with the name of a nonexistent image. (#16391) - Fixed a crash when encountering an invalid polyline. (#16409)
- Certain logging statements no longer run on the main thread. (#16325)