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

[ios] Introduce overlays to MGLMapSnapshotter #15530

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

captainbarbosa
Copy link
Contributor

@captainbarbosa captainbarbosa commented Aug 30, 2019

Adds the ability to include an image overlay on an MGLMapSnapShot by specifying an array of overlays within MGLMapSnapShotOptions.

Adds a new method to MGLMapSnapShotter which provides the CGContext of the snapshot to the developer for further customization.

Screenshot 2019-08-30 16 29 22

@captainbarbosa captainbarbosa added the iOS Mapbox Maps SDK for iOS label Aug 30, 2019
@captainbarbosa captainbarbosa requested a review from 1ec5 as a code owner August 30, 2019 23:33
@captainbarbosa captainbarbosa requested a review from a team August 30, 2019 23:33
@captainbarbosa captainbarbosa self-assigned this Aug 30, 2019
@captainbarbosa
Copy link
Contributor Author

Needs changelog & tests, but wanted to push up the work I had so far.

@captainbarbosa captainbarbosa removed request for a team and 1ec5 August 30, 2019 23:36
@captainbarbosa captainbarbosa changed the title [ios] Add overlay option to MGLMapSnapShotOptions [ios] Introduce overlays to MGLMapSnapshotter Sep 10, 2019
@captainbarbosa
Copy link
Contributor Author

captainbarbosa commented Sep 10, 2019

TODO:

  • Docs
  • Changelog
  • Revert iosapp code (last step!)

@julianrex would love your feedback now, especially on the test 👀 thanks!

@captainbarbosa
Copy link
Contributor Author

@julianrex Finished tests, added docs, and edited changelog - ready for your review!

platform/darwin/src/MGLMapSnapshotter.h Outdated Show resolved Hide resolved
platform/darwin/src/MGLMapSnapshotter.mm Show resolved Hide resolved
platform/darwin/src/MGLMapSnapshotter.mm Outdated Show resolved Hide resolved
platform/ios/MBXContextSnapshotViewController.m Outdated Show resolved Hide resolved
platform/ios/MBXContextSnapshotViewController.m Outdated Show resolved Hide resolved
platform/ios/app/Main.storyboard Outdated Show resolved Hide resolved
platform/ios/MBXContextSnapshotViewController.m Outdated Show resolved Hide resolved
platform/ios/MBXContextSnapshotViewController.m Outdated Show resolved Hide resolved
@captainbarbosa captainbarbosa force-pushed the nb-snapshot-overlay branch 4 times, most recently from dadb7bc to 6aba177 Compare September 13, 2019 19:50
Copy link
Contributor

@julianrex julianrex left a comment

Choose a reason for hiding this comment

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

Looks good - just the one minor tweak needed.

@1ec5 1ec5 added the macOS Mapbox Maps SDK for macOS label Sep 13, 2019
@1ec5
Copy link
Contributor

1ec5 commented Sep 13, 2019

In 32f464c I took the liberty of adding corresponding macOS support.

@1ec5 1ec5 added this to the release-ristretto milestone Sep 14, 2019
@captainbarbosa
Copy link
Contributor Author

Follow up work -> #15695

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants