Mapbox GL v1.6.0-rc.2 Release Notes

Release Date: 2020-04-25 // almost 4 years ago
  • ๐Ÿฑ โœจ New features

    โšก๏ธ [core] Introduce Source::setMinimumTileUpdateInterval API (#16416)

    โšก๏ธ The Source::setMinimumTileUpdateInterval(Duration) method sets the minimum tile update interval, which is used to throttle the tile update network requests.

    โšก๏ธ The corresponding Source::getMinimumTileUpdateInterval() getter is added too.

    โšก๏ธ Default minimum tile update interval value is Duration::zero().

    [core] Introduce distance expression. (#16397)

    โœ… The distance expression returns the shortest distance between two geometries. The returned value can be consumed as an input into another expression for changing a paint or layout property or filtering features by distance.

    ๐Ÿ‘ Currently, the distance expression supports Point, MultiPoint, LineString, MultiLineString geometry types.

    ๐Ÿ’… [core] Introduce style::Source::setVolatile()/isVolatile() API (#16422)

    The Source::setVolatile(bool) method sets a flag defining whether or not the fetched tiles for the given source should be stored in the local cache.

    The corresponding Source::isVolatile() getter is added too.

    0๏ธโƒฃ By default, the source is not volatile.

    ๐ŸŽ [ios, macos] Allow specifying multiple fonts or font families for local font rendering (#16253)

    0๏ธโƒฃ By default, CJK characters are now set in the font specified by the text-font layout property. If the named font is not installed on the device or bundled with the application, the characters are set in one of the fallback fonts passed into the localFontFamily parameter of mbgl::Renderer::Renderer() and mbgl::MapSnapshotter::MapSnapshotter(). This parameter can now contain a list of font family names, font display names, and font PostScript names, each name separated by a newline.

    ๐Ÿฑ ๐Ÿž Bug fixes

    ๐ŸŽ [ios, macos] Fixed error receiving local file URL response (#16428)

    ๐ŸŽ [ios, macos] Corrected metrics of locally rendered fonts (#16253)

    ๐Ÿ›  CJK characters are now laid out according to the font, so fonts with nonsquare glyphs have the correct kerning. This also fixes an issue where the baseline for CJK characters was too low compared to non-CJK characters.