mapbox / mapbox/mapbox-maps-android
Method coordinateBoundsForCamera available through compose without having to use MapEffect to access mapboxMap
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
New Feature
I would like to request for the method coordinateBoundsForCamera to be available in compose extension through mapViewportState or mapState. Right now the only way I found to get the bound of my view was to access mapboxMap throught mapView available when using the MapEffect
MapEffect(Unit) { mapView ->
Why
I think it makes sense to have this available without having to use the MapEffect. I did not find any equivalent method available mapViewportState or mapState in the current version that I am using 11.8.0
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 by tracing the Compose APIs around mapViewportState, mapState, and MapEffect, then find how coordinateBoundsForCamera is exposed through mapboxMap. Define the Compose-accessible entry point and verify that callers can obtain the view bounds without using MapEffect, including coverage for the requested behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100