Questions tagged [google-maps-android-api-2]

Google Android Maps Api v2 is the next generation of Google Maps SDK available for Android developers.

Related tags:

Useful links:

3484 questions
1
vote
1 answer

Why Error CameraUpdateFactory not initialized in MapsFragment android?

I want to display some point in the map , but when I set the camera on a map why this error occurs ? If this goes wrong with the order CameraUpdateFactory program , previously I did not experience an error java.lang.RuntimeException: Unable to start…
1
vote
1 answer

Android - Google maps V2 - Removing a groundoverlay

My app uses google maps v2, I add a groundoverlay to my map. Does anyone know how I can remove this overlay? Thanks .remove() doesn't seem to available
1
vote
1 answer

Is there any API to get traffic signal light information in certain area?

I'm working on an Android project based on google map api, and now I need to dynamically show traffic lights positions near my location. But I found google APIs do not provide such information. So my question is, is there any open API that I can use…
1
vote
1 answer

Android Add Place to Google Places database doesn't work

I'm developing an android application using Google Maps and Google Places. When a user makes a long click on the map, I show him a form in which he can add details about his clicked place, and then I want to add it to Google Database as a new Google…
1
vote
1 answer

Resizing a custom marker on Android maps

Im quite new to Android so forgive me if I have missed something. I've got the following code which displays a custom marker on maps. This custom marker also has some text on it. It works well up to the point where I want to resize the marker by a…
1
vote
1 answer

how to create triangle from collection of points in efficient way?

I have collection of 100 geo points. I want to create triangles (each triangle is a single zone), as many as possible. Now the only criteria to make a side of triangle is that two points can't be further than 5KM. So I need 3 points ABC where |AB|…
1
vote
1 answer

google maps api location updates

I'm using a map in my android app, but I want to use location updates and display it on a map, I'm following the documentation on google developers about location updates with LocationRequest() but cant figure how to use this into the map. here is…
Paul
  • 135
  • 1
  • 4
  • 17
1
vote
2 answers

Is there way to set scale animation to google map api 2 marker

I want to set a scale in and scale out animation to marker. I want to scale in the marker icon for 1 second and scale out for 1 second...and keep continue this animation sequence. I have done this in Ios im wondering if this is possible in android .
Shehan Ekanayake
  • 1,581
  • 4
  • 20
  • 35
1
vote
2 answers

Add layer from the big KML file (3MB) to GoogleMap in Android

I have KML file and i want insert layer tomy googlemap in my fragment. I tried to use KmlLayer from Android-Map-Utils, but parsing file took a long time (about 2 minutes) and then draw nothing. KmlLayer kmlLayer = new KmlLayer(googleMap,…
vrba99
  • 21
  • 1
  • 3
1
vote
0 answers

Obtaining off-road location on an android device

I am currently using the following code to get my location: Location myPos = LocationServices.FusedLocationApi.getLastLocation(googleApiClient); This seems to try and snap my location to a road (not always, but often), but this is not what I want…
Shahin
  • 53
  • 6
1
vote
0 answers

Which Google Maps API key should I use for using web services on Android/iOS?

I am trying to develop apps on iOS/Android that use Google Maps API Web Services's Direction API (since there are no Direction function in either the iOS or the Android API), following is the API I am…
Christina
  • 100
  • 9
1
vote
1 answer

modify polygon in android google map api

I started Google map in android few days age. I am doing some basic things like set marker on tap, draw line between two marker etc. Here users can draw polygon with tapping on the device. Now i want to edit the shape. I goggled it but didn't find…
Sadid Khan
  • 1,836
  • 20
  • 35
1
vote
0 answers

Why is my google maps v2 map pixelated?

I'm making an app with Google Maps API V2, but the map appears to be very low quality. When I open the Google Maps app on the same phone, the quality is much higher. Is there some configuration option that I need to set? This is my code: …
Dasun Cathir
  • 415
  • 1
  • 4
  • 9
1
vote
1 answer

How to save tracking polylines in database?

I have created a function whereby I am able to track the user's route and create a polyline. I have been trying to save it to Firebase as - routeId, routeName, lat, lng The method I have used is, everytime on a location change, the user's new lat…
user3763216
  • 489
  • 2
  • 10
  • 29
1
vote
2 answers

MapFragment, GoogleMap .getMap()

I am having a lot of trouble getting .getMap() to work when trying to create a GoogleMap object (it is returning null), I have looked around and seen people had similar issues but wasn't able to find any help from any of them. In it's current…
Galax
  • 367
  • 1
  • 13