Expose raw GoogleMap for extensibility #135
Labels
released
triage me
I really want to be triaged.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
Currently, there is a need for developers to extend the functionality provided by Maps Compose. For example, there's much need to use features in the Utility Library alongside the Maps Compose library. However, using the Utility Library involves rewriting some of the Maps Compose features manually which is not ideal and brings us back to square one.
Describe the solution you'd like
Consider an approach that would allow developers to obtain a handle to the
GoogleMap
Maps SDK object to make direct manipulations to it. This would allow developers to extend the map and use utility library features. One approach would be to expose aMapEffect
composable that exposes theGoogleMap
e.g.
Another option is to provide a CompositionLocal of the
GoogleMap
.Note: this may have some unintended consequences given that Maps Compose manages the map's properties and so it would have to be made very clear to developers how this should be used.
Describe alternatives you've considered
Proposal in #28 is related.
Additional context
See conversation in #44
The text was updated successfully, but these errors were encountered: