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
0 answers

Keep Custom Android Google Map Markers from Scaling

An app that I work on has a bus prediction feature. In this feature we have a Google Map the displays a selected bus route as a Polyline and uses custom flat Markers. The problem is that on our Sony Xperia M (C1904) (running Jelly Bean 4.3), the…
sonictt1
  • 2,906
  • 1
  • 15
  • 18
1
vote
1 answer

How to make the default Google Maps current location icon smoother

I've looked through a lot of documentation and questions asked here on stack overflow (for instance How to smoothly keep moving current location marker in Google Maps v2 android and Android Maps API v2 Change MyLocation Icon) but haven't found any…
peuhse
  • 1,688
  • 2
  • 20
  • 32
1
vote
2 answers

dynamic Polyline colors with google maps android app

I'm making an app that uses google maps to show when you deviate from a path previously taken. I can show where the deviations occur with a different color, but I have to initialize a new PolyOptions(), resulting in "choppy" polylines instead of…
M. Smith
  • 379
  • 1
  • 20
1
vote
1 answer

Can't Create ClusterManager For Android Google Maps

I'm trying to use Google Maps clustering in my Android project. Currently for a start I actually copied the code from the demo https://github.com/googlemaps/android-maps-utils (which runs fine for me) On my project, however, on mClusterManager =…
MayaB
  • 179
  • 1
  • 1
  • 10
1
vote
1 answer

How to change language of placepicker in android?

is there any way to change language of place picker without change phone's language ? in this link use change phone's language method : Change title language PlacePicker
1
vote
3 answers

Find closest longitude and latitude in array from user location - Android Studio

The following piece of code was instrumental to an iOS app I finished recently: var closestLocation: CLLocation? var smallestDistance: CLLocationDistance? for location in locations { let distance = currentLocation.distanceFromLocation(location) …
tsteve
  • 549
  • 1
  • 7
  • 16
1
vote
1 answer

java.lang.VerifyError: Rejecting class

After i realise my App, many User send me a ANR. All ANRs are comming up frome Android 5.0. java.lang.VerifyError: Rejecting class de.berger.marcus.nwa_app.MapsActivity$2$1 because it failed compile-time verification (declaration of…
Marcus Berger
  • 67
  • 1
  • 12
1
vote
0 answers

Default google maps marker InfoWindow background resource

I want to create InfoWindow with custom margins. It's possible when I override getInfoWindow() from InfoWindowAdapter, but I have to maintain tooltip background by myself. I'd like to use original, default background. Where this .xml/9-path…
1
vote
1 answer

Google Maps Android Authorization Failure

So I've looked over many questions on this issue but have failed to find a solution. Following is the error I'm currently receiving when I try to use the Google Maps Android API. 02-28 11:17:07.166 7445-7653/com.test.drawernav E/b: Authentication…
Devansh
  • 141
  • 2
  • 15
1
vote
1 answer

Does using multiple Google Maps API violate the TOS?

I've read the official documents of Google, but I could not find about my question. I'd like to get route data by using DirectionsService.route() in Google Maps JavaScript API(browser key, client-side), and based on them draw routes on map loaded by…
1
vote
1 answer

Adding a big data layer to google maps - Android

I'm trying to add a lot of data to a google map (local 3MB+ kml file, will probably be more). I have tried using the KML-layer, but showing all these data seems to use a lot of processing power, so the application/map is getting laggy when scrolling…
1
vote
1 answer

Identify Google Maps Polyline on Click

I have about 200 Polylines on my Map. Now i try to find out witch Polyline the User have Click. But polyline.getId() give me every Time a new random number like PL65 next start of the App PL144 and so on. Is there any Way to know witch Polyline the…
Marcus Berger
  • 67
  • 1
  • 12
1
vote
1 answer

How can googleMap set OnTouchListener?

How can googleMap set OnTouchListener? I am trying this code but error: GoogleMap googleMap = …; googleMap.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if(event.getAction()…
1
vote
0 answers

New Earth Layer in My Tracks app - Android Dev

In the last version of the Android App "My Tracks" (v2.0.11) there is a new Layer called "Earth" in the embedded Map (the map displays GPX tracks) : Layer Options This new Layer presents the GPX track in Earth mode (3D) : Embedded Earth display I…
1
vote
1 answer

How to add Google material icon "my location" on google map V2 in android?

I am trying to show maps in android using API v2. I want Google material icon "my location" on map. But, whenever I try to add in layout, it does not reflect in output. I am able to get maps without icon. I need icon to integrate with map. When I…