-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snapshotter #512
Snapshotter #512
Conversation
Looks great, @evil159! 📸 |
Co-authored-by: Patrick Leonard <pjleonard37@users.noreply.github.com>
* Add method to capture snapshot from mapbox map * Change snapshot type to int list * Add integration test
Co-authored-by: Patrick Leonard <pjleonard37@users.noreply.github.com>
…r into rl/snapshotter
onStyleImageMissingListener: widget.onStyleImageMissingListener, | ||
onStyleImageUnusedListener: widget.onStyleImageUnusedListener, | ||
onResourceRequestListener: widget.onResourceRequestListener, | ||
onMapTapListener: widget.onTapListener, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onMapTapListener
does no longer works in our app after this commit. Should we migrate to something else. If so what is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the heads up, this was removed accidentally, it is restored in #526
What does this pull request do?
This PR exposes
Snapshotter
and introduces refactored event handing forMapWidget
that is also reused forSnapshotter
. Event listeners(map loaded, style loaded, map idle etc.) are no longer being ignored afterMapWidget
state initialization, they can be updated dynamically.Based #386.
Addresses #210, #279, https://mapbox.atlassian.net/browse/MAPSFLT-159
What is the motivation and context behind this change?
Snapshotter
provides a way to get an image snapshot of a map without instantiating aMapWidget
Pull request checklist: