4,617 questions
-1 votes
1 answer
167 views
Dark theme google maps still with white background when loading
I applyed night style to maps with a night json described here. I did it with this code: GoogleMap( properties = MapProperties(mapStyleOptions = if (isSystemInDarkTheme()) ...
0 votes
1 answer
107 views
How to detect when a user enters or exits an expressway using Google Maps API in Android?
I'm building an Android app where I need to detect when a user enters or exits an expressway. I’m using the Google Maps API to track a user’s location in real-time. How can I identify if the user is ...
1 vote
0 answers
70 views
How to add arrows in a polyline in Compose Maps?
I need to add an arrow each 15 steps of the polyline. This code paints the full polyline without arrows, and it works very smooth and fast, but without arrows: if (mapState.lineSteps.isNotEmpty()) { ...
0 votes
0 answers
54 views
Deal with Maps in List/Detail
I have a list, and when user selects a element of the list, the detail is a Google map with some markers of that selected item. If I display it in portrait, everything works, but if I display it in ...
0 votes
0 answers
58 views
How can I set the buildings to a 2d footprint format and use a JSON style too?
I have an android app where I use a google map where the buildings are 3d. I want it to switch to only 2d. It is possible in the Google Cloud Console but here there aren't many label settings which I ...
0 votes
0 answers
51 views
How to move Google Maps camera to have marker below a composable?
I'm displaying a custom composable with marker info and some buttons centered on the screen when the user clicks a marker on Google Maps. I'm not using MarkerInfoWindow because it doesn't let you to ...
1 vote
0 answers
43 views
MarkerInfoWindow not recomposing
I'm trying to update the InfoWindowMarker content of my Google map in Compose, for that, I added a onClick to the InfoWindowMarker and when it's clicked, it changes a "favorite" variable ...
0 votes
1 answer
137 views
How to change AdvancedMarker icon in compose Google Maps?
Google explains how to add markers, they recommend to add them using AdvancedMarker now: https://github.com/googlemaps/android-maps-compose?tab=readme-ov-file#drawing-on-a-map GoogleMap( ...
0 votes
2 answers
93 views
How to show CircularProgressIndicator when adding markers to Maps?
How can a CircularProgressIndicator composable be displayed until every AdvancedMarker has been added to Maps? There are a lot of markers, and a frozen screen is noticed until all markers are added I'...
0 votes
2 answers
103 views
Android Google Maps Snapshot Screenshot is black
I have a problem, for some tests I'm doing I need to take a screenshot of my app that uses Google Maps. When I try to take the screenshot or snapshot, all the elements appear in the screenshot, except ...
0 votes
0 answers
119 views
Google Maps: Over 200 markers and clustering - Slow
I get the data async from the backend so there is not really a way to load it from memory. I created the map like this @Composable private fun HoaxLocatorScreen( cameraPosition: ...
-1 votes
1 answer
135 views
Android, Kotlin, Google Maps Markers
I am trying develop an Android App with Kotlin in Android Studio. I want to make markers for Pharmacy in my app in Google Maps. My question is in my code: private fun searchNearbyPharmacies(location: ...
1 vote
0 answers
120 views
OnClick Compose GoogleMap Cluster/Item show InfoWindow without camera move
Using this example activity: https://github.com/googlemaps/android-maps-compose/blob/main/app/src/main/java/com/google/maps/android/compose/markerexamples/MarkerClusteringActivity.kt I want to only ...
0 votes
1 answer
132 views
Google map directions delay loading the itinerary
I'm using google map intent in my react native application has been almost one year without any problem passing the coordinates in this url allowing the user to open "Google maps" on ...
0 votes
1 answer
64 views
Android map doesn't auto zoom after calling CameraUpdateFactory.zoomTo(xx)
I have a fragment which displays the position of store on Google Map: import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx....