Skip to content

StyleManagerProtocol pt3 (Updates cluster, image, light, terrain and custom geometry source APIS)#321

Merged
julianrex merged 6 commits into
mainfrom
jrex/style-manager-pt3
May 6, 2021
Merged

StyleManagerProtocol pt3 (Updates cluster, image, light, terrain and custom geometry source APIS)#321
julianrex merged 6 commits into
mainfrom
jrex/style-manager-pt3

Conversation

@julianrex
Copy link
Copy Markdown
Contributor

Continuation of #320, #317

PRs must be submitted under the terms of our Contributor License Agreement CLA.

Fixes: < Link to related issues that will be fixed by this pull request, if they exist >

Pull request checklist:

  • Briefly describe the changes in this PR.
  • Write tests for all new functionality. If tests were not written, please explain why. Follow up PR.
  • Document any changes to public APIs.
  • Apply changelog label ('breaking change', 'bug 🪲', 'build', 'docs', 'feature 🍏', 'performance ⚡', 'testing 💯') or use the label 'skip changelog'
  • Add an entry inside this element for inclusion in the mapbox-maps-ios changelog: <changelog>Refactors cluster, image, light, terrain and custom geometry source style APIs</changelog>.
  • Update the migration guide, API Docs, Markdown files - Readme, Developing, etc

Summary of changes

This is PR 3 of N (see #320):

  • Updates clustering, image, light, terrain and custom geometry source APIS

User impact (optional)

@julianrex julianrex added the breaking change ⚠️ If your pull request introduces a breaking change and updates are required when version is published label May 5, 2021
@julianrex julianrex changed the title Jrex/style manager pt3 StyleManagerProtocol pt3 (Updates cluster, image, light, terrain and custom geometry source APIS) May 5, 2021
///
/// - Throws:
/// An error describing why the operation was unsuccessful.
public func setTerrain(_ terrain: Terrain) throws {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we decided to make terrain a computed property with an explict setter / getter (and fatally erroring if unsuccessful). Same with Light.

Copy link
Copy Markdown
Contributor Author

@julianrex julianrex May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, will address in the next PR :) Edit: this may not be possible at this moment.

@julianrex julianrex marked this pull request as ready for review May 5, 2021 22:33

print("TODO: \(String(describing: identifier)) \(geometry) \(String(describing: properties))")

return nil
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, is this something that we're going to add support for later?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change ⚠️ If your pull request introduces a breaking change and updates are required when version is published

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants