mapbox / mapbox/mapbox-maps-android

Camera Bounds

Open
#2,723 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged question
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.