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
315
votes
13 answers

Android map v2 zoom to show all the markers

I have 10 markers in the GoogleMap. I want to zoom in as much as possible and keep all markers in view? In the earlier version this can be achieved from zoomToSpan() but in v2 I have no idea how about doing that. Further, I know the radius of the…
199
votes
7 answers

Google Maps Android API v2 - Interactive InfoWindow (like in original android google maps)

I am trying to a make custom InfoWindow after a click on a marker with the new Google Maps API v2. I want it to look like in the original maps application by Google. Like this: When I have ImageButton inside, its not working - the entire InfoWindow…
user1943012
  • 2,043
  • 3
  • 13
  • 7
191
votes
4 answers

How to create a custom-shaped bitmap marker with Android map API v2

I am developing an Android Application where I'm using Google Map API v2. I need to show the user location on a map with custom markers. Each marker will show the picture of the user from an URL. The image must be downloaded in asynchronous mode…
Jitendra Nath
  • 2,072
  • 3
  • 14
  • 15
158
votes
10 answers

AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager

My app that uses Google Maps SDK (v2) just started crashing with this exception: Process: com.currentlocation.android, PID: 7328 java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 at…
142
votes
10 answers

Google Maps API v2: How to make markers clickable?

How to I make the markers in Android Google Maps API v2 become clickable so they will either bring up a menu with options or just start a new activity? I believe I made the markers in my app currently in a "newb" method. I didn't assign them a name…
Malaka
  • 1,581
  • 5
  • 16
  • 16
125
votes
13 answers

Android Google Maps v2 - set zoom level for myLocation

Is it possible to change the zoom level for myLocation with the new Google Maps API v2? If you set GoogleMap.setEnableMyLocation(true);, you get a button on the map to find your location. If you click on it, then the map will bring you to your…
dumazy
  • 13,857
  • 12
  • 66
  • 113
110
votes
1 answer

How to hide "Navigation" and "GPS Pointer" buttons when I click the marker on the android google map

When I click the marker on the google map, "Navigation" and "GPS Pointer" buttons come out. How can I hide those two navigation buttons programmatically in android development?
Tim Yu
  • 1,243
  • 2
  • 9
  • 10
106
votes
9 answers

Custom marker in google maps in android with vector asset icon

How can we achieve a map marker icon with vector asset file, the way google shows it like this, programatically: Update: map.addMarker(new MarkerOptions() .position(latLng) …
Shuddh
  • 1,920
  • 2
  • 19
  • 30
104
votes
11 answers

How to download Google Play Services in an Android emulator?

I want to use Google Play Services API in my application, but when I open the emulator to test my application it sends me a message that says "Google Play Services must be downloaded". I know that occurs because I coded this test in my MainActivity…
102
votes
12 answers

This app won't run unless you update Google Play Services (via Bazaar)

I'm testing out the new Google Maps API V2 for Android, and I'm getting this message when the app launches: This is running on an 4.1 emulator. Here is my AndroidManifest.xml file:
100
votes
18 answers

Google Maps Android API v2 Authorization failure

My steps: got SHA1 code from debug.keystore create app in google apis console enabled google map api v2 input SHA1;my.package.name get API key created AndroidManifest file:
Rusfearuth
  • 3,261
  • 5
  • 28
  • 37
96
votes
20 answers

moveCamera with CameraUpdateFactory.newLatLngBounds crashes

I'm making use of the new Android Google Maps API. I create an activity which includes a MapFragment. In the activity onResume I set the markers into the GoogleMap object and then define a bounding box for the map which includes all of the…
Lee
  • 3,996
  • 3
  • 33
  • 37
90
votes
18 answers

Adding Google Play services version to your app's manifest?

I'm following this tutorial: https://developers.google.com/maps/documentation/android/start#overview on how to add Google Maps to an app within the Android SDK. The only problem I seem to be having is during this bit (I've done everything else…
Adz
  • 2,809
  • 10
  • 43
  • 61
90
votes
2 answers

Clear markers from Google Map in Android

I have added map on fragment activity and added several marker using addMarker function, but i am able to remove all markers , I am getting notification for different list of markers, Now i wants to remove all markers and add new one. one way to…
Ashish Kasma
  • 3,594
  • 7
  • 26
  • 29
85
votes
17 answers

Change position of Google Maps API's "My location" button

I am using the Google Maps Android API v2, and I need a way to chance the position of the "My Location" button. I get the "My Location" button like this: GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext()); final…
Jakob Harteg
  • 9,587
  • 15
  • 56
  • 78
1
2 3
99 100