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

Pass data inside Clustered Marker

I am really struggling with google map util these days challenge after challenge and there is not good example or solution on the net. This is my code: @Override protected void onBeforeClusterRendered(Cluster cluster, …
Blacksword
  • 331
  • 3
  • 17
1
vote
0 answers

Google Map's OnMarkerDragStart method shifts marker up when triggered

I am trying to write code for marker drag on google map in android and I am using the following code for that First i make the marker draggable by setting setDraggable to true. Then I listen to user pressing and holding on the marker using…
azmuhak
  • 964
  • 1
  • 11
  • 31
1
vote
1 answer

Marker Animation on Google Maps Android not working

I am trying to animate my marker instead of making it jump between the 2 points. For some reason the animation does not work. Every time I get a new current location, I call the below code. if (currentLatitude != 0 && currentLongitude != 0) { …
Siddharth
  • 9,349
  • 16
  • 86
  • 148
1
vote
0 answers

getmap is deprecated getMapAsync doesnt work

My app call getmap() method and notice that is depracated and I've to use getMapAsync() instead, however I've read all posts everywhere on the internet and none helped me. Sometimes I got "null pointer return message". I'll hope someone help me to…
Luiz Jr
  • 11
  • 2
1
vote
2 answers

Android Proguard settings for Google Maps for Work

We recently switched from free google maps library to maps for work. I changed all imports from com.google.android.gms.maps to com.google.android.m4b.maps and imported compiled aar library. We have valid licence. Only thing I haven't found in docs…
1
vote
0 answers

Google Maps Android API v2 more precise toScreenLocation() for lat lng

the projection.toScreenLocation() in API v2 returns a point containing two ints. I need more precision than that (either float, or double) as I need subsequent conversions back to latlngs from these screen coordinates to be almost exactly the same…
1
vote
0 answers

determine if waypoint has been reached, and if it's missed, move on to the next one with android google maps

I wrote this method to determine a distance to a destination along a path and also to determine a distance to the next waypoint along that path. The problem is, sometimes I don't go within 10 meters of the waypoint so it's not getting caught as…
Blair Holmes
  • 1,521
  • 2
  • 22
  • 35
1
vote
0 answers

No error in my app of finding nearby places from my application. but not showing nearby places

I am new to android working on google map and google places api. have been searching from almost last one month. but i am not success. i m developing an app where anyone can find nearest hospitals/laboratories from his/her location. please help me…
1
vote
0 answers

Android Google Maps API Issue - Timeout from Current Location request

I have an location-based application which uses Google Maps API. I've signed up for Google Maps V2 API Keys on Google and although my maps render, my app doesn't seem to be communicating with Google in order to find the current location of the…
WikiGuide
  • 11
  • 2
1
vote
2 answers

Are user uploaded Street Views available in the Google Maps Android API v2?

Let's use this location as an example. The lat/lng are 39.9477959/-75.1850599. I can use the Google JS API to pull up this Street View no problem. However, using these same coordinates and Google Maps Android API, all I get is a black screen. To…
1
vote
0 answers

Getting duplicate routes when using the Google Directions API

I am using Google Directions API to get routes between two points. I am requesting results using this…
Atef Hares
  • 4,715
  • 3
  • 29
  • 61
1
vote
2 answers

Is it possible to open Android Google Map voice search?

I would like to open this directly from my program, is it possbile? I checked this, but cannot found relevant information https://developers.google.com/maps/documentation/android-api/intents If it is impossible, is there any alternative way?
CL So
  • 3,647
  • 10
  • 51
  • 95
1
vote
1 answer

Add google maps directions within android app

I want to implement the below card (with drive/transit images used by the google maps application). When the drive icon is clicked i want to implement the maps showing the driving directions within my app itself. I have read through the…
1
vote
0 answers

How to show Map Toolbar onMapReady

By default, map toolbar (right bottom corner) will show when we click map marker. I want to show map toolbar when map ready (without click marker).
windupurnomo
  • 1,121
  • 1
  • 11
  • 22
1
vote
1 answer

OnPlaceSelectedListener of SupportPlaceAutocompleteFragment not fired

I'm having a problem with the OnPlaceSelectedListener method of a SupportPlaceAutocompleteFragment. My onViewCreated() method: @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view,…