mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
478 stars 134 forks source link

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

Open iolandarosavoid opened 1 day ago

iolandarosavoid commented 1 day ago

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