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

Android: How to fit only map objects inside system window?

I have a map fragment that is full screen and goes behind the navigation and status bars by setting fitsSystemWindows to "false". This however, means that the map objects such as the compass or the Google logo also fits outside the system window. I…
1
vote
0 answers

android: why doesn't map work correctly after a transition

My activity can display map view of places. I toggle the map view by sliding a fragment (containing the map) into a FragmentLayout container in the activity. When it has content, this layout covers a list layout. The animation toggles the map…
John Ward
  • 910
  • 2
  • 10
  • 21
1
vote
1 answer

Android - Google Map API Key doesn't work

I have a Google Map API Key (for Android app) and I restrainted the key as Android Apps. I want to use it this link: https://maps.googleapis.com/maps/api/elevation/json?locations=39.7391536,-104.9847034&key=MY_API_KEY But I am getting error like…
pseudocode
  • 209
  • 1
  • 6
  • 17
1
vote
0 answers

Plotting a long route on Google map v2

One of my Application's features need to show the track history of a vehicle on map. In order to implement this feature I am using Google Road API. I am passing 100 lat lng points to it but the resulting response is not on road. it contains many…
zeifi
  • 33
  • 5
1
vote
2 answers

Load Map Activity Faster In Android App

I have a map activity which loads too slow and I want to have a faster map activity. How can I achieve this? I heard pre-loading the map is effective but I am not sure how to do this. I am not going to post my whole map activity because it is a…
Koorosh
  • 457
  • 5
  • 14
1
vote
1 answer

Draw dotted polyline on Google Map - Android

I am working on an Android application that uses Google Maps and draws polylines on the map. I wanted to know if there is a way to draw a dotted polyline (similar to the one Google Maps shows when displaying a walking route) and how should I do…
1
vote
2 answers

Get placeid of a location on infowindow click

Is there a way on how to get the placeID of a location when a user clicks on an infowindow of a marker? I created an application that searches nearby places (ex. hospital). What I want to do is to get the placeid of a certain location by clicking on…
1
vote
1 answer

Unknown build issue (app:transformClassesWithJarMergingForDebug)

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/maps/GoogleMapOptions.class Gradle sync…
1
vote
1 answer

Google Maps Android api circle bound

I got a question in my mind about how can I bound 2(or more) circle via android api. The right side of the image is what I exactly want. this is how can I creating my circle. circle=mMap.addCircle(new…
1
vote
0 answers

Google maps direction API in Android

I am developing an Android application that uses google maps that tells me if i am driving in an opposite direction of certain street. Is there any function or method in google maps API that returns the direction of a certain street?
1
vote
3 answers

Error setting map marker based on returned business name in Android

I am using the following to show a corresponding marker image based on the returned business name using Google Places and Maps: if (name.contains("walmart")) { mIcon = R.drawable.ic_wm_poi; } if (name.contains("speedco")) { mIcon =…
Steve C.
  • 1,333
  • 3
  • 19
  • 50
1
vote
0 answers

Is it necessary to use LocationManager.requestLocationUpdates and LocationManager.removeUpdates() for Google Maps?

I created an app with an GoogleMapView. In order to reduce battery consumption, I want to stop the location requests, when the app is not opened. I found that this can be done with the LocationManager. For example like this: @Override public void…
arne.z
  • 3,242
  • 3
  • 24
  • 46
1
vote
1 answer
1
vote
0 answers

How can I add a copy of my SupportMapFragment to my WindowManager to show it as a screen overlay?

I have an Android app that uses a screen overlay to place buttons on top of Pokemon Go. The buttons call methods to draw polygons on the map in the background. I have the buttons working how I want them to, but what I really want is to create an…
1
vote
1 answer

Need help regarding 3D floor plan for an app

I am working on an Indoor positioning app based on beacons. I want to create this app for a specific floor of our building. Is there any API or any other way to create 3D floor plan?