compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Using GoogleMap Android composable in Desktop

Open JonasVautherin opened this issue 2 years ago • 5 comments

Can Android elements like e.g. GoogleMap be used for a desktop app using compose-jb?

I am interested in what would make it Android-specific or not. Is it just the fact that it is packaged as an .aar, or is there something more fundamental?

JonasVautherin avatar Feb 22 '23 00:02 JonasVautherin

From https://developers.google.com/maps/documentation/android-sdk/maps-compose#installation - a required dependency is com.google.android.gms:play-services-maps and that is not something that exists for Desktop.

kirill-grouchnikov avatar Feb 23 '23 15:02 kirill-grouchnikov

Yes, it should be ported.

Looking at the source code, it seems it is written from scratch on Compose, uses some Android API (like Location API) and, as Kirill mentioned, uses an Android library com.google.android.gms:play-services-maps (that communicates with Google Maps API probably). The Compose code itself can be easely ported, not sure about com.google.android.gms:play-services-maps.

igordmn avatar Feb 28 '23 04:02 igordmn

@igordmn Did you test that we can use Android components on the KMP desktop?

aabolfazl avatar Dec 17 '23 22:12 aabolfazl

Any updates?

cryptrr avatar Apr 26 '24 00:04 cryptrr

https://github.com/skillAndroid/openStreetMapComposeMultiplatform this is my Code pls look here for desktope Map for Compose Multiplatform and do not forget to put Starts thank you All )

skillAndroid avatar Apr 27 '24 17:04 skillAndroid

Closing because I am not interested anymore. Rather I am looking at MapLibre for Compose Multiplatform: https://github.com/maplibre/maplibre-native/issues/2638.

JonasVautherin avatar Aug 17 '24 22:08 JonasVautherin

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 13:08 okushnikov