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
4,631
questions
0
votes
0
answers
289
views
How to refresh the last location every second?
Pretty new in Kotlin and I am trying to setup a map marker that follows the user ever they go, which means the location need to be updated like every second. I have used FusedLocationProviderClient ...
0
votes
1
answer
47
views
Save on memory when creating custom bitmap images for a TileProvider
Using a custom TileProvider:
class ObjectTileProvider @Inject constructor(
val application: Application,
val repository: ObjectRepository
) : TileProvider {
override fun getTile(x: Int, y: ...
0
votes
0
answers
28
views
Can't assigned Latlng from Bundle
I run the debugger and get these details
If the bundle has the Latlng, then why I can't assign it to the global variable?
This is InputTempatActivity class where I get the Latlng:
private Agenda ...
0
votes
1
answer
127
views
Some controls of Google Map view are under status bar and toolbar
I have an app with transparent toolbar and statusbar and there is map which takes all space of the display but I need to move native controls of Google's map view under toolbar somehow
How can it be ...
1
vote
2
answers
506
views
Flutter Map Not opening on android
import 'package:url_launcher/url_launcher.dart';
import 'package:url_launcher/url_launcher_string.dart';
class MapsUtils{
MapsUtils._();
static Future<void> openMapWithPosition(double latitude, ...
3
votes
1
answer
1k
views
Loading of GoogleMap in Compose is really slow
I am using the Maps Compose Library to display a map:
@Composable
fun Maps(latLng: LatLng, radius: Float) {
val uiSettings = remember { MapUiSettings(zoomControlsEnabled = false, ...
0
votes
0
answers
160
views
Is there a way to display locations without Google Maps? - android
I want to display locations but not necessarily on a map. I just need a widget with a white background that can display Location objects. Is there anything like that available?
1
vote
0
answers
47
views
show a map with the current location of the user and the stations downloaded from the server
good morning everyone i have a problem with a fragment class. Specifically, I want to show the user's current location and the location of different train stations downloaded from the server.
My code ...
0
votes
1
answer
543
views
How to Optimize google maps api calls for mobile apps
How can we reduce Google Maps api calls??
in one of our app (similar like uber) we are using Google directions api to plot two points(source and destination) and dynamic path between them,
so we have ...
0
votes
1
answer
1k
views
FusedLocationProviderClient and LocationCallback() object queries
To sum up the issue, I was implementing the google maps API to make a run tracker and was also implementing MVVM architecture at the same time. However, when I managed to configure my code to place ...
0
votes
0
answers
124
views
Retrofit API calls are not synchronous in Android
I am getting location of the user in the background service and putting it in local database and I am checking if any connection is available I've to pass this data to the server using API. For API I ...
0
votes
0
answers
29
views
unable to invoke tha getLocationweatherdetails(latitude,longitude) from ananymous class
/**
* A function to request the current location. Using the fused location provider client.
*/
@SuppressLint("MissingPermission")
private fun requestLocationData() {
val ...
0
votes
0
answers
44
views
Location not detected when using fake position
I am implementing a navigation app, and I take the positions update like this:
private fun checkSettingsAndStartLocationUpdates() {
val request: LocationSettingsRequest =
...
0
votes
1
answer
655
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 ...
-1
votes
1
answer
122
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