summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-02-26 18:19:45 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-02-26 22:31:59 +0200
commit27a5fbe944b72d3d764b3b6fe145e4503dd4e86f (patch)
tree9f1f369ff4649ba0cbfc45e656faeab3c7be6e11
parentba4f5efa09b985f0bab99a53dc9ac27dd6fb94ea (diff)
downloadqtlocation-mapboxgl-27a5fbe944b72d3d764b3b6fe145e4503dd4e86f.tar.gz
Add change log entry
-rw-r--r--CHANGELOG.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d65b89eb38..51779018ed 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<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](https://github.com/mapbox/mapbox-gl-native/pull/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(..);`
+
## maps-v1.2.0 (2020.02-release-vanillashake)
### ✨ New features