Repository navigation
Pass source object in MapObserver::onSourceChanged - #8443
Conversation
|
@brunoabinader, thanks for your PR! By analyzing this pull request, we identified @1ec5, @jfirebaugh and @tmpsantos to be potential reviewers. |
1ec5
left a comment
There was a problem hiding this comment.
The notification was intentionally generalized in #6465 so that it could be used in the future for any change to a source. Additionally, I think it would be better for the method to accept an mbgl::style::Source directly, from which the implementations could easily obtain the ID and attribution string.
/cc @jfirebaugh
|
Agree with @1ec5, and we can generalize |
This might sound confusing, as
I'm okay with that - we could then be also exposing |
I have concerns regarding data consistency if we forward the If we proceed with passing the |
Currently |
On a second thought, exposing |
fc56c6d to
79bdafa
Compare
79bdafa to
c41d193
Compare
This is a possibility even if not passed as a reference or passed by |
Rename
MapObserver::onSourceDidChangetoMapObserver::onSourceAttributionChanged, passing bothsourceIDandattributionas strings.Fixes #8397.