Mapbox GL v1.3.0 Release Notes

Release Date: 2020-02-28 // about 4 years ago
  • ๐Ÿš€ maps-v1.3.0 (2020.02-release-vanillashake)

    ๐Ÿฑ ๐Ÿž Bug fixes

    [core] Fix offline region download freezing (#16230)

    Downloaded resources are put in the buffer and inserted in the database in batches.

    Before this change, the buffer was flushed only at the network response callback and thus it never got flushed if the last required resources were present locally and did not initiate network requests - it caused freezing.

    Now the buffer is flushed every time the remaining resources container gets empty.

    ๐Ÿฑ โœจ New features

    [core] Add Layer::serialize() method (#16231)

    ๐Ÿ†• New method allows serialization of a layer into a Value type, including all modifications done via runtime style API. New method is also an enabler for Style object serialization (sources, layers, etc).

    [android] Add jni binding for min and max pitch (#16236)

    [offline] Offline tool does not hang on 404 error (#16240)

    The missing resource gets skipped and teh offline region download continues.

    ๐Ÿฑ โš ๏ธ Breaking changes

    ๐Ÿ”„ Changes to mbgl::FileSourceManager::getFileSource() (#16238)

    It returns now mbgl::PassRefPtr<FileSource> (previously was std::shared_ptr<FileSource>) in order to enforce keeping the strong reference to the returned object.

    ๐Ÿ’ฅ Breaking code example:
    auto fs = FileSourceManager::getFileSource(); fs->..

    Posible fix:
    std::shared_ptr<FileSource> fs =;

    The mbgl::OnlineFileSource class cannot be used directly (#16238)

    Clients must use the parent mbgl::FileSource interface instead.

    ๐Ÿ’ฅ Breaking code example:
    std::shared_ptr<OnlineFileSource> onlineSource = std::static_pointer_cast<OnlineFileSource>(FileSourceManager::get()->getFileSource(..));

    Possible fix:
    std::shared_ptr<FileSource> onlineSource = FileSourceManager::get()->getFileSource(..);