mapbox / mapbox/mapbox-maps-flutter
How to fit multiple coordinates within the map with zoom
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
Hi guys,
I really need help fitting all the Points (that has Positions) inside the Mapwidget.

I tried this too but setting padding of 140 is too much and although its working but sometimes when i have different Points, they tend to not fit inside the map

This is what i have done so far but its not working.
The image below is what is expected
I've been on this for days and still can't figure it out.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is named. Start by reproducing the map with the varying point positions shown in the issue and compare the current fixed padding of 140 with the expected image. Done should mean all points remain visible inside the MapWidget without relying on a padding value that fails for different point sets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100