Questions tagged [google-maps-android-api-2]
Google Android Maps Api v2 is the next generation of Google Maps SDK available for Android developers.
google-maps-android-api-2
3,494
questions
0
votes
0
answers
8
views
google map details are different on different devices
I have implemented google map in one of my application.before few days all was working fine, but i am finding a weird behavior in google map while tracking vehicle on map.The details of the map are ...
0
votes
1
answer
42
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
29
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....
0
votes
0
answers
39
views
Is there any alternative for searching nearby places without using Google map Places API?
I am trying to search nearby places by types ( such as Hospital, Restaurant,..) from my current places, I used gg map API but I realised that I need to pay for this services, can anyone have another ...
0
votes
2
answers
87
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 ...
0
votes
0
answers
39
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
38
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 ...
0
votes
0
answers
133
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
136
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 ...
2
votes
1
answer
204
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
46
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
53
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
398
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
428
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
55
views
Track my location only when I'm load this app / fragment at the second time
I'm facing an unusual issue in my Android application where the initial GPS location doesn't update properly when the app is loaded for the first time. Here's the relevant code snippet:
public class ...
0
votes
0
answers
36
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
1k
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
0
answers
54
views
wrong react native map boundaries when the map is rotated
Summary
I'm using react-native-maps for the following issue.
I'm trying to get the visible map boundary using mapRef.current?.getMapBoundaries, it returns { northEast: LatLng, southWest: LatLng }, ...
0
votes
0
answers
26
views
Is there a way that can move a the camera to a point on the map view on Android?
As we know, val targetLocation = LatLng(latitude, longitude) val update = CameraUpdateFactory.newLatLng(targetLocation) map?.animateCamera(update)
will move the targetLocation to the center of the map ...
3
votes
1
answer
100
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
585
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
139
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
357
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
204
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
167
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
0
answers
48
views
how to force the request to always bring the zip code when placing the street name
I'm going through a probelam using Google Maps JavaScript API, without looking for the street name it brings the city and state, but not always brings the zip code, I needed that whenever I searched ...
0
votes
1
answer
91
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, ...
0
votes
0
answers
171
views
Added metadeta tag in AndroidManifest.xml in React native but still get error of "API key not found"
I am working in React native application where i want to include the google maps . I installed the package and added the metadata tag in AndroidManifest.xml the details and my api key but still get ...
1
vote
0
answers
53
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
159
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
4k
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
162
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
165
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
648
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
187
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
62
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
198
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
118
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
148
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
266
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
560
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
3
answers
2k
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
66
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
78
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
149
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
164
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.
0
votes
1
answer
330
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 ...
0
votes
1
answer
108
views
Callback if tiles are loaded in Google maps on Android
I have a scenario,
When coordinates provided by user is landing into the Ocean, and when camera zoom happens to level 18f map tiles are not loading,
googleMap.animateCamera(CameraUpdateFactory....
1
vote
1
answer
98
views
Android GoogleMaps: GeoJsonLayer.features change the order of geojson file
I have a location geojson file as below:
{
"type":"FeatureCollection",
"features":[
{"type":"Feature","properties":{"name":&...
0
votes
0
answers
412
views
I'm trying to use the googlemap activity from Android Studio , but the google map doesn't show map when run the app
However, I tried with my friend's macbook, which is the same model I have and tried so many times, and it works and shows the google map once typed in the API key. I tried same project with exactly ...