mapbox / mapbox/mapbox-maps-android
Camera Bounds
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
In Mapbox Android, is it possible to restrict the camera so that a specific bounds area is always visible?
For example, my allowed bounds are [0.0, 0.0] to [1.0, 1.0]. When the user pans or zooms, I want the camera center to remain inside this bounds area at all times.
I tried using camera bounds, but I want to confirm whether Mapbox provides a built-in way to keep the camera center constrained inside the bounds across all zoom levels, including min zoom and max zoom.
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
Start with the Android camera-bounds API and the behavior of minimum and maximum zoom. Reproduce panning and zooming with bounds from [0.0, 0.0] to [1.0, 1.0]. Done means establishing whether the SDK keeps the camera center within those bounds at every zoom level, then documenting the supported behavior or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100