You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix attribution state updates to cover runtime added sources. (#8613)
This PR improves the attribution refresh mechanism by fixing when and
how attributions are updated, moving shared logic to common modules, and
ensuring proper ordering of attribution items.
## Attribution Refresh Logic Improvements
### When attributions are refreshed:
- Style data loaded - Refreshes attributions when the map style is
loaded/changed
- Source added and source metadata loaded - Updates when new sources are
added at runtime and their metadata becomes available
- Source removed - Refreshes when sources are removed from the map
- Initial load - Shows Mapbox telemetry/feedback attributions even
without custom sources
## API Changes
- Attribution.isMapboxFeedback() extension function moved from
extension-compose to sdk-base
- Now available to all modules, not just Compose
## Attribution ordering for both Compose and non-compose users
- Mapbox special attributions (telemetry, privacy, feedback, geofencing)
now appear at the bottom of the list
- Custom source attributions appear first, following natural priority
More context in
https://mapbox.slack.com/archives/CFN66JMMK/p1764944165105729?thread_ts=1764765065.988139&cid=CFN66JMMK
cc @mapbox/maps-android
GitOrigin-RevId: 88272fe77be539ef42996e6a9f59c5ef34eafa46
Copy file name to clipboardExpand all lines: extension-compose/src/main/java/com/mapbox/maps/extension/compose/ornaments/attribution/MapAttributionScope.kt
0 commit comments