3,496 questions
0
votes
0
answers
72
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
85
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
59
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
50
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
53
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
44
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
39
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
100
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
81
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
83
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
87
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: ...
0
votes
1
answer
96
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: ...
0
votes
0
answers
46
views
Android Compose: Coarse Location
When the user selects coarse location how do I draw the circle on the map which scales with the zoom level as well?
val locationCallback = object : LocationCallback() {
override fun ...
0
votes
0
answers
122
views
Google Maps Platform Android SDK Arrival Problem
I'm new to developing Android apps using Kotlin and XML and with the use of Google Maps Platform Navigation SDK for Android. I have a problem that when the distance from the origin and the destination ...
1
vote
0
answers
59
views
Compose UI not waiting for viewModel's coroutine results. GoogleMap composable
I have a compose screen that shows Google Maps. I'm using this state model:
data class CragsOnMapsState(
val currentLocation: Location? = null,
val cragsList: List<Crag>,
val ...