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

Commit

Permalink
Add change log entry
Browse files Browse the repository at this point in the history
  • Loading branch information
pozdnyakov committed Feb 26, 2020
1 parent 83a1093 commit ac5eda8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac5eda8

Please sign in to comment.