From 27a5fbe944b72d3d764b3b6fe145e4503dd4e86f Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Wed, 26 Feb 2020 18:19:45 +0200 Subject: [PATCH] Add change log entry --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d65b89eb3..51779018e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,10 +16,34 @@ This is a back porting from GL JS [#9333](https://github.com/mapbox/mapbox-gl-js/pull/9333) +### ✨ New features + - [core] Add Layer::serialize() method ([#16231](https://github.com/mapbox/mapbox-gl-native/pull/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). +##### ⚠️ Breaking changes + +- Changes to `mbgl::FileSourceManager::getFileSource()` ([#16238](https://github.com/mapbox/mapbox-gl-native/pull/16238)) + + It returns now `mbgl::PassRefPtr` (previously was `std::shared_ptr`) 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 fs = `; + +- The `mbgl::OnlineFileSource` class cannot be used directly ([#16238](https://github.com/mapbox/mapbox-gl-native/pull/16238)) + + Clients must use the parent `mbgl::FileSource` interface instead. + + Breaking code example: + `std::shared_ptr onlineSource = std::static_pointer_cast(FileSourceManager::get()->getFileSource(..));` + + Possible fix: + `std::shared_ptr onlineSource = FileSourceManager::get()->getFileSource(..);` + ## maps-v1.2.0 (2020.02-release-vanillashake) ### ✨ New features