Questions tagged [google-maps-android-api-2]
Google Android Maps Api v2 is the next generation of Google Maps SDK available for Android developers.
3,494
questions
0
votes
0
answers
35
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
26
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
78
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
27
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
13
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
69
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
112
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
63
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
219
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
72
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
106
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
31
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
48
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
69
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 ...
0
votes
0
answers
40
views
Error when selecting Billing account in Google API console
I have created a new Google API project and I have enabled Google Maps for Android API in the Google API Console. When I click to manage this API it prompts me to link this project to a billing ...
0
votes
0
answers
17
views
Detect LatLng when click on circle of googleMaps
I want to detect the coordinates when the user clicks on the circle in google Maps.
I tried to first detect the click on the map and then the circle. It gives me the coordinates when I click on the ...
0
votes
0
answers
41
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
0
answers
21
views
Android Google Maps V2 API color banding with filled polygon
This is happening on Android using the Google Maps API V2.
If you draw a polygon using Paint and Path using moveTo(), lineTo() and drawPath() using FILL:
If you scroll around the map to the opposite ...
0
votes
1
answer
114
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
3k
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
99
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
51
views
Catch invalid street view locations and keep trying until a valid is found
I'm currently making a geoguessr replica using the street view API and maps SDK reliant on randomly generated coordinates. As one could guess, more often than not my coordinates are a location without ...
0
votes
0
answers
126
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
42
views
How can I access ClusterItem from CustomInfoWindowAdapter?
I'm using marker clustering in my Google Maps Android app, abd have created a ClusterableItem class that implements ClusterItem as per the implementation guides.
Within this, in addition to the ...
0
votes
0
answers
400
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
75
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
55
views
Real time live location sharing of a mobile to all the connected devices in the application developed in flutter
I want to develop an application in flutter which is used for sharing real time live location to all the devices which are connected to the application ( all those connected devices has same ...
0
votes
0
answers
39
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, ...
0
votes
0
answers
18
views
Update multiple markers' rotation in Gmaps using Value animator
Basically, I'm trying to make a uber sort of app but it'll have multiple cars to track at the same time
I have a listener, which will give me all the location data.
Now that listener will give me ...
1
vote
0
answers
167
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
87
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
0
answers
24
views
Is there a way to notifyDataSetChanged in GoogleMap InfoWindowAdapter
I am trying to update data list in my custom map adapter which implements InfoWindowAdapter. Is there a way to notifyDataSetChanged in infowindowadapter.
Did not find anything relevant on the Internet
0
votes
1
answer
103
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
156
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
0
answers
54
views
How to set a custom widget as infowindow when i click on a gmap marker in flutter?
I'm a flutter beginner. What I want to do is.. when I click on a marker I placed on the map, it should show a custom widget with the latlong info and a button( to connect to save somewhere). The ...
0
votes
1
answer
376
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
874
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
173
views
Flutter Tabs and Maps
I am using google maps in my project, i use it in different pages, but one page i have that i use tabviews, one of these tabs is the google map. however when ever i click on the tab the app crashes ...
0
votes
0
answers
55
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
72
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 ...
0
votes
0
answers
239
views
Google Map Flutter [Screen Coordinates and Screen Offsets]
I want to place a draggable widget (a Helper marker) on the map's marker click to simply change the location of the marker by dragging the helper marker. The screen Offset - dx,dy and gMap's ...
1
vote
0
answers
128
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
0
answers
175
views
I am trying to insert a map into my flutter app but i keep getting erros
Below are the errors i keep getting when running my code. I researched online and tried changing and adding information in my pupspec.yaml which i saw online, but i still keep getting these errors. I ...
0
votes
1
answer
115
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
140
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
78
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
83
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
359
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 ...
0
votes
1
answer
427
views
google_maps_flutter plugin not working on Android shows Error Bad state: Future already completed
I am using the google_maps_flutter plugin to use google maps, I followed their instructions of setting up the minSdkVersion and including the API key in AndroidManifest.xml file. I am using their ...
0
votes
1
answer
262
views
Missing permissions required by FusedLocationProviderClient.getLastLocation: android.permission.ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION
I have been learning this map in kotlin but mMap.isMyLocationEnabled = true and fusedLocationClient.lastLocation.addOnSuccessListener { location ->} are throwing same error as user-permission for
...