mapbox / mapbox/mapbox-maps-flutter

Expose public API to open native attribution dialog programmatically (for custom attribution buttons)

Open
#1,103 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Dart
Stars
380
Forks
204
PR merge metrics
No merged PRs in 30d

Description

I am using `mapbox_maps_flutter` and need to support a custom in-app attribution button (larger hit target / custom UI layout), while still opening the **native Mapbox attribution dialog** (including telemetry controls where applicable).

At the moment, there does not seem to be a reliable/public Flutter API for this workflow. I can configure attribution ornament visibility/position, but cannot explicitly trigger the native dialog from a custom button.

## Why this matters

- Apps frequently need custom controls for accessibility and usability (larger touch areas, custom placement, integrated control panels).
- Attribution still needs to be available for compliance.
- We also need to preserve native attribution behavior and telemetry settings

## Current behavior

- `mapbox_maps_flutter` exposes attribution settings, but no documented method like:
- `mapboxMap.showAttributionDialog()`
- `mapboxMap.openAttribution()`
- Bridging from host app native code is fragile and version-dependent (ornament internals are not a stable public surface).

Please expose a public, stable API in `mapbox_maps_flutter` to open the native attribution flow programmatically from app code, for example:
```dart
await mapboxMap.showAttributionDialog();
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing attribution ornament settings and the platform-specific native attribution flow in this Flutter plugin. Trace how Dart APIs reach the native Mapbox SDKs, then define and document a public method whose completion criteria include opening the native dialog and preserving applicable telemetry controls on supported platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.