4,613 questions
-1
votes
1
answer
255
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
137
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
94
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
165
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
130
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
157
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
150
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
131
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
881
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
228
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
60
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 ...
1
vote
0
answers
424
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 ...
1
vote
1
answer
275
views
Using google maps api key in open source GitHub repository in Flutter app
I am developing an open source Google Maps project by Flutter and I do not want the GMS API to appear in my repo when I integrate with Google Maps. I don't know how I can use the variable in the .env ...
4
votes
1
answer
507
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
0
answers
61
views
Android Google Maps V2 API center Longitude
I need a way of getting the center Longitude of the current Google Map screen.
I'm not dealing with any City scale but being able to scroll around
the Atlantic and Western Pacific areas of the globe ...
0
votes
2
answers
78
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
2
answers
722
views
Map on Jetpack Compose: GoogleCertificatesRslt: not allowed
Im trying to implement Jetpack Compose Map on my project. In the emulator works fine but on physical devices doesn't.
This is NOT a API_KEY problem. I tried several times with different keys and doesn'...
1
vote
0
answers
681
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
0
answers
49
views
How can I make only some markers clickable in Google map for Android?
I am developing an Android app with a google map, which contain various markers. Some of these markers should be clickable, and it works nicely, using the setOnMarkerClickListener method on the ...
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 ...
3
votes
1
answer
145
views
Polylines can't be remove on the map
I am working on an Android app that uses the Google Maps Android API, and I'm having trouble clearing polylines from the map. I have implemented the addition of polylines within a dialog, and I want ...
0
votes
1
answer
1k
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://...
1
vote
0
answers
245
views
Flutter -> glass effect over google maps?
I have a scaffold -> stack -> google maps, some buttons, and a BackdropFilter.
In a test page without google maps, the filter fuzzies out everything as expected.
However, when you have a ...
2
votes
2
answers
458
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
367
views
Flutter Google Map Initial Location null?
The intent is to have the page load and show in the Google Map the current location as per the GPS of the device.
What is wrong in the following code? It appears it doesn't want to await the location ...
0
votes
1
answer
289
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 ...
0
votes
1
answer
175
views
How to know whether I am at a straight road, a roundabout, or at a left or right turn, or a dead-end using Google Mapd SDK?
We are building a product for visually impaired people for which we need to know what kind of road our user is on. At any kind of turn, we need to be able to specify whether it's a left or right turn, ...
1
vote
0
answers
66
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 ...
0
votes
1
answer
211
views
can't run android app with geospatial feature
I'm trying to run an AR core functionality app, the code base is from google code lab
Here's the project URL https://github.com/google-ar/codelab-geospatial
I have followed all the instructions ...
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
1
answer
193
views
which google map api is used to add my business place marker to google map programmatically from app
We developed app for warehouse listing and management. We want to add business place marker / Warehouse to google map programmatically through api from our android application, so that any person can ...
0
votes
0
answers
191
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
783
views
GoogleCertificateRslt: not allowed + com.google.android.libraries.consentverifier library
Does anybody have any experience with these issues and/or know of the consent verifier library? I'm struggling to find literally any sort of documentation regarding it online and it's currently ...
0
votes
0
answers
226
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;
...
0
votes
0
answers
69
views
Is there some way I can control the user location in Flutter through buttons on the screen?
For a school project, my group decided to develop a mobile application involving a map in Flutter. However, I have an iPhone, so it is easier for me to write and test my code on my computer. However, ...
1
vote
0
answers
231
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
0
answers
265
views
How can I fix 'Invalid key' error & retrieve JSON data of specific places from Maps API?
So I am trying to use the Places API for an android app. I've used the correct URL to query for the JSON results of places however when I run the app I receive this error in my logcat: data: { "...
0
votes
1
answer
189
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 ...
1
vote
1
answer
309
views
How to show a widget when the marker is clicked on in gmap flutter?
I want to show a widget with the latlong info and a button when the marker is placed on the map.or clicked on marker.
this is my code to handle the markers
Future<void> addMarker(
LatLng ...
0
votes
1
answer
688
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 ...
1
vote
3
answers
3k
views
How to set a custom image as icon for gmap marker in flutter?
I wanted to add some markers in a gmap on flutter I made. I tried this code but it doesn't work. I have added link in pubspec and picture is in assets too.
Future<void> addMarker(
LatLng ...
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 ...
1
vote
0
answers
86
views
GoogleMaps: Custom Cluster icon (background) is sometimes glitching if rendered
I have custom renderer for clusters using on GoogleMap in my app. It has custom drawable background and even number textview is custom layout with my own font and size.
It is working perfectly but ...
1
vote
0
answers
180
views
getting error with Google maps API in FLutter
I enabled Google maps api, and I added the api to AndroidManifest.xml and AppDelegate.swift.
And I added to AndroidManifest.xml
<meta-data android:name="com.google.android.geo.API_KEY"
...
0
votes
1
answer
284
views
How to place custom label under city names in Google Maps Android API v2
I am using Google Maps API v2 for displaying the maps in android.
Is it possible to place temperature labels under each city name like what shown in below image.
1
vote
1
answer
446
views
How to check if a LatLng point lies inside a polygon on the geojson layer on google maps android
Currently, I am working on a location-based project. In this project I've added a GeoJsonLayer as below:
As can be seen in the image, the red marker is inside a box. Is there any way to check if the ...