mapbox / mapbox/mapbox-maps-android

Method coordinateBoundsForCamera available through compose without having to use MapEffect to access mapboxMap

Open
#2,523 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged compose feature :green_apple: ticketed
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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.