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,460
questions
-2
votes
0
answers
34
views
Get traffic details Google Maps API in android studio
How to get traffic details using google maps API. I added the TrafficEnabled method and it shows the lines only, I want to show the other traffic conditions such as accidents, crowded and road closed.
0
votes
1
answer
31
views
Add toolbar and drawer menu to Android Google Maps Activity
I have created a standard Google Maps Activity in my app in Android Studio and the map works as expected.
My Activity is called 'NativeMap' and then the activity starts I see a ToolBar/AppBar at the ...
0
votes
0
answers
12
views
Why do I get a different place id on android maps sdk vs the place details api for that same id?
When I tap a POI on the map on android google maps sdk, I get the following place_id:
ChIJAAAAAAAAAAARQ5hwJsast6s
When I request place details API with this id, I get a response with details for this ...
0
votes
0
answers
21
views
Ignore marker click without hiding marker
I have a google maps fragment with a few markers that have a marker click event, in that mapFragment I also have a map click listener that calculates the distance between 2 clicks in the map, the ...
-1
votes
0
answers
50
views
google places api issue in flutter
I need help with Google Places API. Below I am providing my written code. I am not getting any data in the searchNearbyWithRadius method and also not getting any errors in the consoles. Do check out ...
0
votes
0
answers
12
views
I'm getting this error NullPointerException: Attempt to invoke virtual method 'void java.io.InputStream.close()' on a null object reference [duplicate]
I am trying to implement a search mechanism on my app and it will show nearby places. I'm following a tutorial on YouTube and I get this error. I don't know how to fix this since it's my first time ...
0
votes
0
answers
36
views
google maps not rendering while driving android
I am facing an issue of google maps rendering maps while driving it's not updating the map fast
I have tried several ways to counter this but no result
Thank you in advance
0
votes
1
answer
58
views
Android - map map is blank on one device, not others
Hoping someone can help with this. I have a map fragment in my Android app, but on one physical device (Android 11 with the Feb 2022 security update) it always comes up blank. On another device (...
0
votes
0
answers
75
views
how to draw directions on road in google map with free map sdk api in android?
I am trying to find the location distance between two places as well
as the time and direction/path alongside the road, not the
displacement. but I am unable to do it with free map API. I heard
that ...
0
votes
0
answers
35
views
Zoom inconsistency between IOS and Android Google Maps SDKs
We are developing navigation app for both IOS and Android platforms.
On IOS I restrict map zoom levels by mapView.setMinZoom(4, maxZoom: 16). To load map tiles I use GMSSyncTileLayer as tiles are ...
0
votes
0
answers
69
views
flutter google_maps can't zoom out any further
As the picture below, I've been searching everywhere about this issue but still cant find any solution.
About my code, i use the very default sample from google_maps_flutter, but it still doesnt let ...
0
votes
0
answers
26
views
How can I draw real-sized marker of Bitmap on Android Google Maps?
I have a map application and cluster of markers. Marker icons are created with BitmapDescriptor.createBitmap. Icons are simple - dot in the center and Gradient circle around it (But this gradient ...
1
vote
1
answer
26
views
remove integrated toolbar from googleMap fragment in Android Studio (Kotlin)
I'm trying to build a simple app with GoogleMap API and I have custom tool bar.
The problem: I want to remove the default toolbar from the fragment.
activity .xml:
<LinearLayout
xmlns:android="...
0
votes
0
answers
18
views
TileOverlay requests tiles after it was made invisible [maps 18.0.2]
Note: problem appears when using MapsInitializer.Renderer.LATEST
Goal: I am using several tile overlays in order to switch the data user sees above the map. Several overlays needed to avoid flickering ...
0
votes
0
answers
19
views
android Google map update listerner when all data is loaded
I want to take a snapshot and save it when google map loads all of the map data. I know about and use the map camera-related listener. But a camera update listener is not required in my case. Why do I ...
0
votes
1
answer
165
views
React Native Maps Price
I am making an app using react native and I want to implement a map using react-native-maps library MapView.
The application will use the map to display markers on it for users using signals to share ...
0
votes
1
answer
193
views
Authorization failure with Google Maps Android API
I am trying to get Google Maps working on my Android project.
I did everything by the book but nothing works...
Google Maps Android API: Authorization failure.
Cannot resolve Identity from ...
0
votes
0
answers
36
views
GoogleMap.InfoWindowAdapter not updating Text Views (more then 2 views)
in the following code for my custom window marker, some of the text views are updating, some of them not:
NOT Updating in Device View -> deviceOtherDetailTV, Image View with Glide, ...
0
votes
1
answer
125
views
Does Google Maps SDK for Android charge for markers and showing the user's location? (2022)
I'm developing an app that will show a few markers and the user's location on the map. Just those, no navigational data and etc. I'm having doubts on the pricing as the Google Maps billing page shows ...
0
votes
0
answers
57
views
How to load map tiles from internal storage? (Android Google Maps)
Problem
I'm developing an Android application that can display my own custom map tiles on a Google Map. The tiles need to be loaded from internal storage (so that the app can be used offline) and I'm ...
0
votes
0
answers
14
views
Adding multiple imageviews using custominfowindows
Im trying to add 2 images(before and after basically) to my marker info window i have a custominfoadapter like this:
private final View myContentsView;
private Context mContext;
...
1
vote
0
answers
281
views
Downloading Custom Map Tiles for Offline Use? (Android Google Map)
Goal
Download custom tiles via URLs to an Android device and view them using Google Maps. Note that I am not trying to store/cache Google's tiles. My tiles create a heat-map for conveying data and ...
1
vote
1
answer
47
views
Google Map not running on android
I'm trying to run google map on android application I have used Debug certificate fingerprint and my package name to get API KEY when I run the application on emulator I got this error
Google Maps ...
0
votes
1
answer
145
views
Google Maps not displaying markers in android kotlin
I'm trying to use the google maps api into an app as a school project, my problem is, the map is not displaying fully and correctly, only one part of the map is displayed, the part in Australia,
I'm ...
0
votes
0
answers
52
views
How do I save Google Maps Tile provider tiles to file in android (kotlin)
In my project I use several tile providers with Google map v2. To avoid too much network traffic on slow connections, I want to save the tiles to files in some directory on the android device (I use ...
0
votes
0
answers
49
views
Google Maps SDK for Android loading empty map
I've tried to use Google Maps SDK for Android in my app and some users are saying they are loading an empty map.
It looks something like this: https://i2.paste.pics/FAUVC.png
However, I'm not able to ...
0
votes
0
answers
34
views
Clicking a button to clear map in a fragment Google maps
I want to clear the map when i click a cardview and then add different markers.What i've been stuck at was that i cant just do googleMap.Clear() Any help is Appreciated :)
@Override
public ...
0
votes
0
answers
23
views
Getting coords and place names from JSON and putting them on a map(Marker does not get placed)
i will explain the problem itself; the problem is the fact that the FOR loop seems to not add a marker(i seem to not get any TOAST messages basically no IO or Parse exception Errors), my second ...
0
votes
0
answers
15
views
Google maps places Name convention
I want to start to use the google-maps API places in Chile, but when I did a few tests I found this problem.
The name of the places are not the same names that we have previously saved in Oracle, for ...
2
votes
2
answers
312
views
Navigating with Compose not working with Google Maps on Android
I have a composable containing a google maps view. When I click on a pin on the map I would like to trigger navController.navigate so I can navigate to another composable. However, when I call it the ...
0
votes
0
answers
59
views
Getting Layer from GeoServer (Android Google Maps)
I am writing an Android App with Android Studio (using Java). The app is using Google Maps and has a layer with field ownership information that it's getting from a geoserver. The code to set this up ...
3
votes
0
answers
53
views
Android Google Maps - Update custom Tiles (TileProvider) without flickering (weather maps)
I'm using Google maps in my app with custom tiles (weather images - radar) above the maps.
Now I want to do some animation with that tiles. So the user can change the time and it will show tiles for ...
0
votes
1
answer
164
views
How to use Google Map id in Xamarin?
I want to apply styling from Google Maps Platform in my Xamarin app.
I found a solution for Java, but I don't know how to do the same in Xamarin.
https://developers.google.com/maps/documentation/...
1
vote
0
answers
545
views
Google Maps SDK keeps using legacy renderer (version<18.0.0)
The Google Maps SDK for Android is updating to a New Map Renderer in v18, which developers can try out early by explicitly opting in.
The device I am testing on has these specs:
Samsung Galaxy S7
...
0
votes
2
answers
60
views
Google Map API is not working on release mode
I am using Google Map in my android. It was working fine. Today I implemented Google Places API, after that when I build release APK, map is not working. I don't know that it is because of Google ...
0
votes
0
answers
1k
views
Google Map new map renderer problem (play-services-maps:18.0.0)
I updated to 'com.google.android.gms:play-services-maps:18.0.0' and now custom marker images are behaving strange.
At the images below, blue thing and the label is two separate markers with custom ...
-1
votes
1
answer
374
views
can't get location in android studio
It gives me this error (double android.location.Location.getLatitude()' on a null object reference)
I tried many many different solutions but all of the same, I know that fusedLocationClient....
0
votes
2
answers
138
views
Android Java Google API app crashing when allowing location access, but no problem when deny location...? [duplicate]
I've tried this code from an UDEMY Course. Written same like him, he can access to location & also got a Toast while I cant opening app with allowed Location.
When allowing location, my app ...
0
votes
0
answers
86
views
View google map on a 50 miles radius around my location
I've been tasked to set a feature which requires setting the default view on google maps to be 50 miles radius around the user's location. Here's my implementation
private fun calculateZoomLevel(): ...
-1
votes
2
answers
176
views
Android Component Navigation how do i prevent the map page from refreshing on every click
this is my design
I am planning a 3 page map application. I have a map on my first page. bottom navigation reloads my map every time it is clicked. how can i prevent this?
My NavGraph
I cannot do this ...
0
votes
0
answers
122
views
Android Google Maps: When using a ClusterManager and ClusterRenderer, how to detect or be alerted when an item is no longer shown?
I have ClusterManager and ClusterRenderer classes (the latter of which inherits from DefaultClusterRenderer) that I am using to manage the locations and visibility of a large amount of markers on a ...
1
vote
0
answers
98
views
Why don't Cardview rounded corners work in a Google Maps Infowindow on Android?
My Android app has a custom InfoWindow layout for Google Maps.
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
xmlns:android="http://...
5
votes
1
answer
610
views
Google Maps SDK for Android: Smoothly animating the camera to a new location, rendering all the tiles along the way
Background
Many similar questions seem to have been asked on SO before (most notably android google maps not loading the map when using GoogleMap.AnimateCamera() and How can I smoothly pan a GoogleMap ...
0
votes
1
answer
73
views
Get a list of POIs (Points Of Interest) currently visible on a GoogleMap?
Using the Google Maps SDK, is it possible to get a list of all the POI's currently visible as "icons" on the map?
I know I can use the Places API to do something similar, but in my case I ...
0
votes
0
answers
46
views
Google Maps API tileProvider blank page
I'm using google Maps API to display mbtiles map hosted locally on my server. Tile service works fine (checked via requsts). But when I apply it to my Kotlin app nothing happens.
Here's my code:
...
0
votes
0
answers
54
views
Google Map not showing details(streets not visible)
Hello I am creating an app which displays the route of user's walking. But after invoking the map by maview.getmapasync() the map is not very details , that is , when i zoom in the map the streets are ...
0
votes
1
answer
81
views
How can I create a custom InfoWindow layout/background for Google Maps on with a 'stalk'
I have managed to define and use a custom InfoWindow in my Google Maps app on Android, but I can't figure out how to create a similar custom layout to that shown on the right in these examples on ...
0
votes
1
answer
91
views
GoogleMap.CancelableCallback() onFinish() is called before the animation finish
I have a google map screen in Android. I want to move and zoom the camera to a location and get the boundary and zoom level after the animation complete.
This is what I have
val location = ...
0
votes
1
answer
56
views
Google maps is not displaying in my activity in release build mode
I'm trying to display a Google Map in my android application.
I've registered my API key, and put the provided file ("google_maps_api.xml") into both
src/debug/res/values/google_maps_api.xml
...
1
vote
1
answer
106
views
Android Google Maps moveCamera causes "IllegalStateException: Illegal height"
When I call moveCamera on a small screen, it throws the following exception:
java.lang.IllegalStateException: Illegal height.
This is my code:
googleMap.moveCamera(
CameraUpdateFactory....