Questions tagged [google-maps-compose]
10 questions
3
votes
1 answer
Animate Compose GoogleMap to a Specified Location
I am working on a simple Maps App and I am trying to make GoogleMap composable zoom-inanimation over 1000 ms duration.
So far I have this code:
Column( ... ) {
val destinationLatLng = LatLng(destination.lat, destination.lng)
…

Tonnie
- 4,865
- 3
- 34
- 50
2
votes
2 answers
Get zoom level without getting recomposition for the whole GoogleMap
I'm using Google Maps with Compose. I've got one problem to solve. I thought it will be quite easy to code but it looks like I'm missing something.
My Google Map in compose is quite common:
GoogleMap(
modifier = Modifier.fillMaxSize(),
…

adek
- 3,045
- 2
- 27
- 41
2
votes
1 answer
Google Maps Compose MyLocationButton not shown
I have followed a simple tutorial on how to displaying google maps with jetpack compose in the documentation.
But the MyLocationButton still does not showing up.
val singapore = LatLng(1.35, 103.87)
val cameraPositionState =…

Denny Kurniawan
- 1,581
- 2
- 15
- 28
1
vote
0 answers
Ignore for accessibility with Google Maps compose SDK
Background
I have a hybrid search in a production app that uses google-maps-compose's GoogleMap composable. This search offers a bottom sheet that displays a list of results along with a map with pins. We would like to push visually impaired users…

Lucas
- 323
- 1
- 8
0
votes
0 answers
Google Maps in Compose takes all height in column
Column(modifier = Modifier.fillMaxSize().background(Color.DarkGray)) {
if (isLocationPermissionGranted) {
GoogleMap(
modifier = Modifier
.fillMaxWidth()
.weight(1f),
…

user924
- 8,146
- 7
- 57
- 139
0
votes
0 answers
Customizing myLocationButton in Jetpack Compose Map Compose library
I'm working on an application that utilizes Jetpack Compose and the Map Compose library. However, I'm facing limitations with the default myLocationButton provided by the library. I would like to customize this button by changing its icon, adjusting…
0
votes
0 answers
Compose Maps: Convert distances (in meters) to pixels?
I'm prototyping some visual overlays of a GoogleMap @Composable (so Android, Compose, Kotlin). I use a Box to place a Canvas over the GoogleMaps composable, so they're the same size.
The remembered CameraPosition gives me a Projection. Projection's…

Travis Griggs
- 21,522
- 19
- 91
- 167
0
votes
0 answers
How can I draw a Polyline that "follows" my device's location?
I am developing a canoe trip planning and tracking application, and I would like to track the progress on the map with a Polyline that follows my device's location.
Here is the code I have so far:
var polylineTest by…

Sági Brúnó Tádé
- 1
- 1
0
votes
1 answer
Google maps crashes across navigation in Compose
I have a google map used in my compose project. I meet some conflicts between keeping the CameraPositionState across navigation and avoiding crash.I only have two screens to navigate between btw.
At first, I put the rememberCameraPositionState in…

Ruineie
- 23
- 4
0
votes
0 answers
How to show downloaded markers with glide efficiently in maps compose?
Basically what I am doing is downloading the images from server and making an icon with the icon generator. After all the icons has been fully generated then I am putting the markers in the map. But from large list of markers it will take too much…

Shafayat Mamun
- 439
- 1
- 6
- 22