4,617 questions
-1
votes
1
answer
166
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())
...
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
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 ...
1
vote
0
answers
42
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
2
answers
91
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
0
answers
118
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
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
58
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....
1
vote
2
answers
209
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 ...
1
vote
0
answers
408
views
Google Maps styling applies only above zoom level 13, below that roads turn black instead of styled color
I'm using Flutter with the Google Maps Flutter plugin to display a map in my application. I've applied custom styling to the map using the setMapStyle method to change the color of roads to a specific ...
4
votes
1
answer
491
views
Google maps API 18.2 - Can I get my shapes to be drawn in front of the buildings again?
When migrating from com.google.android.gms:play-services-maps:18.0.2 to com.google.android.gms:play-services-maps:18.2.0, my shapes suddenly started to appear
behind the buildings and road labels, ...
0
votes
2
answers
67
views
Cannot zoom in to current location in Android Studio
public class Game_Activity extends FragmentActivity implements OnMapReadyCallback {
private Location currentLocation;
private FusedLocationProviderClient fusedClient;
private static final ...
1
vote
0
answers
664
views
Google map crash android 14 Jetpack compose?
I just migrated my code to SDK 34 and Jeptpack compose version 1.5.4 and material3 v = 1.1.2 also com.google.gms:google-services:4.4.0 but I am getting crash when opening Google map which was working ...
0
votes
2
answers
2k
views
java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: not allowed:?
I am developing taksi app when I run app I am getting following exception
Unable to update local snapshot for com.google.android.libraries.consentverifier#com.example.starttaksi, may result in stale ...
0
votes
1
answer
992
views
REACT: Google Maps API key - Warning: NoApiKeys
I have created a project that should display Google Map, but I constantly get a maps displayed with watermark and a warning in a console: Google Maps JavaScript API warning: NoApiKeys https://...
2
votes
2
answers
451
views
Google Map displays with empty location even with valid api key in flutter when app is launched and works properly when i do multiple hot reload
I am trying to embed native android view of google map in my flutter app. I know we already have google_map_plugin on pub.dev but to improve myself as a developer i am trying to integrate native ...
0
votes
1
answer
261
views
Render transit layer on Android Google Maps
What we have achieved so far is to be able to use MAP IDs on our Android project and configure Map Styles dynamically on our application.
Recently though we are attempting to showcase transits ...
1
vote
0
answers
63
views
Passed value mismatch error for SphericalUtil.computeDistanceBetween()
I am trying to calculate distance between two points using SphericalUtil.computeDistanceBetween. The value which I provided is from com.google.android.gms.maps.model.LatLng but the required type is ...
2
votes
3
answers
5k
views
Android Studio Flamingo is missing Google Maps Activity template
Earlier versions of Android Studio allowed the developer to create a project using the Google Maps Activity template as detailed on Google's Maps SDK for Android Quickstart. However, Android Studio ...
0
votes
0
answers
189
views
show the current location on Google maps using Maps Api
I have an Activity named as HomeActivity.kt where I have BottomNavBar.
My HomeActivity.kt is as below.
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment....
0
votes
0
answers
221
views
API Key not Found for google maps sdk for android
I've been struggling w this project for weeks now. Specifically getting the API Keys to work, I'm not sure what I'm doing wrong. My code is as follows:
package com.example.hopefullyfinalgeoguessr;
...
1
vote
0
answers
226
views
How do I get the current location on the Android Studio map activity?
I am creating an app, and it has a bottom navigation bar. One of the pages I am going to use for a map with the current location. The following shows my code so far for that page. Can this code be ...
0
votes
1
answer
188
views
How get the altitude of a place where the phone is located ( not the altitude of the phone)
I am implementing an android app in java to determine if an object is in flight (in the example ,it's a phone hang on a drone ) . To proceed,i retrieve the altitude of the phone , then i retrieve the ...
0
votes
1
answer
684
views
How to add Google Maps in Flutter Forms to ask user to select Location
I am working on a Flutter project where I have to add user details as well as location of their mosques so how can I implement in this form using google maps in Flutter?
Which are resources should I ...
0
votes
0
answers
75
views
Can we allow our app user to add geofencing radius in android app?
I want to create an application that tracks childs location through firebase and implement geofence on that location. How do i initiate GeofenceClient with that location from firebase instead of my ...