Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

android-v9.2.0

Compare
Choose a tag to compare
@Chaoba Chaoba released this 07 May 10:58
· 1 commit to release-water since this release
14b615a

Changes since Mapbox Maps SDK for Android v9.1.0:

Features

  • Added the distance expression for calculating the shortest distance between an evaluated feature and a given GeoJSON object. (#339)
  • The SymbolLayer.iconTextFit property now respects the stretch metadata of any nine-part stretchable image passed into the style.addImage method. You can define the stretchable area of an image by configuring the stretchX, stretchY, content options on Style.addImage to append the requisite metadata. (#314)
  • Added methods to set and get the sort key of features in a CircleLayer at runtime. Features with a higher sort key will appear above features with a lower sort key. (#322)
  • Introduced Source.setVolatile to 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.minimumTileUpdateInterval to override the expiration time set via HTTP headers with a longer expiration time on the client. (#355)
  • Added Source.maxOverscaleFactor for 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 LocationComponent with a dedicated OpenGL layer through LocationComponentActivationOptions#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 LocationComponent through LocationComponentOptions#pulseEnabled and methods to customize it. (#172)
  • Introduced an option to set a screen area through LocationComponentOptions#trackingMultiFingerProtectedMoveArea where executed gestures will avoid breaking camera tracking when LocationComponentOptions#trackingGesturesManagement is 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 onFling listener 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.removeImage method 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)

Other changes

  • Rollback to System.loadLibrary to fix SoLoader fails to load the native library on x86 devices. (#368)
  • Worked around crashes caused by JobIntentService on devices >= API 26 by using a network request to report errors instead. (#472