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

maps-v1.3.0

Compare
Choose a tag to compare
@alexshalamov alexshalamov released this 28 Feb 15:42
· 6 commits to 2020.02-release-vanillashake-v1.3.0 since this release

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(..);