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 21:18:06 +0200
commitac5eda8f3dcf192fc9ae319927ffc5de46292281 (patch)
tree9f1f369ff4649ba0cbfc45e656faeab3c7be6e11
parent83a10932b326f572b2852904de8f29b212d4cd49 (diff)
downloadqtlocation-mapboxgl-ac5eda8f3dcf192fc9ae319927ffc5de46292281.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