Adding support for KmlLayer without relying on MapEffect #447
Labels
triage me
I really want to be triaged.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
As developer I would like to be able to add different layers (Kml, GeoJson, etc) to the GoogleMap composable.
A KmlLayer needs a GoogleMap instance to be built.
KmlLayer(GoogleMap map, int resourceId, Context context)
At the moment the only way to add a Kml layer is using the experimental
MapEffect
(which it may get removed in the future).Loading a KmlLayer is also slow so it needs to be done in a background thread.
Considering all of the above I came up with a solution but it would be nice to have a different way to do it.
This solution will not work anymore if MapEffect is removed.
The text was updated successfully, but these errors were encountered: