4,612 questions
-1
votes
1
answer
261
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
142
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
96
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()) {
...
1
vote
0
answers
50
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
166
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
104
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'...
1
vote
2
answers
131
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
159
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
151
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
134
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
148
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
73
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....
4
votes
2
answers
888
views
Is there a way to change the position of the Google Maps API buttons in Compose?
I would like to move the map buttons, mainly the Compass button (which appears at the top left) and the My Location button (which appears at the top right) so that I can put them down or in any ...
1
vote
2
answers
230
views
Jetpack Compose Clustering sometimes show default markers
I have a screen that contain a list of custom markers with clustering and works fine. The problem is sometime after open de screen my google maps show my customs markers AND the default markers on the ...
0
votes
0
answers
61
views
Can I have two different Google Map keys to load google maps in two different activities in a single android app?
I have a android application in which I need to load google maps in two different activity.
How to use two different google map keys for each activity. Is it even possible?
Earlier I had only one API ...