Questions tagged [android-maps-v2]

The new Google Maps Android API v2 allows you to offer interactive, feature-rich maps to users of your Android application.

With the Google Google Maps Android API v2, you can add maps based on Google Maps data to your application. The API automatically handles access to Google Maps servers, data downloading, map display, and response to map gestures. You can also use API calls to add markers, polygons, and overlays to a basic map, and to change the user's view of a particular map area. These objects provide additional information for map locations, and allow user interaction with the map.

Related tags:

1138 questions
33
votes
4 answers

How to change the position of a Marker on a Android Map v2

I need to do the following: I have a Marker on the map and I need to change the position of it. So I tried the following: MarkerOptions a = new MarkerOptions() .position(new LatLng(50,6))); map.addMarker(a); …
gurehbgui
  • 14,236
  • 32
  • 106
  • 178
32
votes
4 answers

Android Map V2 - Why MAPS_RECEIVE permission

Consider this as a wiki question. While I setup my project to support Map V2, There has been a step to add MAPS_RECEIVE permission.
Mahendran
  • 2,719
  • 5
  • 28
  • 50
31
votes
9 answers

AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager, java.lang.ArrayIndexOutOfBoundsException: length=1; index=12

I have used Google Maps SDK (v2) in my application and today suddenly it started crashing with below crash message: 2020-04-24 02:26:40.874 22678-22758/com.**.**E/AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager Process: com.**.**,…
Rupesh Yadav
  • 12,096
  • 4
  • 53
  • 70
31
votes
5 answers

How to improve fragment loading speed?

Performance Enhancement: Previously I saved ALL images in drawable folder, this might be the reason why the map first loads slow, when draw the markers on screen, the image may not fit the screen size. Now I saved images in drawable-mdpi,…
Haifeng Zhang
  • 30,077
  • 19
  • 81
  • 125
28
votes
10 answers

Set a max zoom level on LatLngBounds builder

I haven't found an answer in my search, there are a few answers on SO but they didn't work for me. I have 2 markers on the map and I am using LatLngBounds builder in order to let the camera zoom to the right zoom level to include them both.…
Alin
  • 14,809
  • 40
  • 129
  • 218
28
votes
2 answers

Android Google Map API V2 : Open Custom Info Window on Right Side of Marker

I have Integrated Google MAP API V2 for Android. I want to have a Custom Info Window at Onclick of My Marker. Up to that it is fine. i have integrate it. What I want : I want to Show my Custom Info Window on Right Side of Marker Instead of Top of…
Bhavesh Patadiya
  • 25,740
  • 15
  • 81
  • 107
27
votes
5 answers

Google map for android my location custom button

How can I change google map my location default button? I set my location enable and map draw standard image to find location, is it possible to change default image?
Nininea
  • 2,671
  • 6
  • 31
  • 57
27
votes
6 answers

Replace default Android Maps API v2 Change MyLocation icon

I would like to replace the default icon that Android Maps V2 uses for 'My Location' with my own image. I've created my own tile provider that brings in a few maps which are predominantly blue and as such the default My Location icon, the little…
Gyroscope
  • 3,121
  • 4
  • 26
  • 33
27
votes
2 answers

Don't snap to marker after click in android map v2

Currently Android Map v2 snaps to marker location after click. I want to disable this behavior but see no options to do it. Does anybody know how to fix that?
Alexey Zakharov
  • 24,694
  • 42
  • 126
  • 197
26
votes
3 answers

Restoring MapView's state on rotate and on back

Background I have a larger application in which I had/have several problems with new Google Maps API. I tried to describe it in a different question but since it seems too complex I decided to start a new project, as simple as possible and try to…
26
votes
3 answers

Android maps V2 newLatLngBounds with bearing

I'm using the new Android maps V2 with this layout:
pedroca
  • 1,748
  • 1
  • 19
  • 17
25
votes
3 answers

Android setOnMyLocationChangeListener is deprecated

Android Google Map's setOnMyLocationChangeListener method is now deprecated. Does anyone know how to go around it? Thanks.
Thiago
  • 12,778
  • 14
  • 93
  • 110
25
votes
2 answers

How to increase consistency of Android geofence enter/exit notifications?

I am using the built in geofence APIs (play services) and have been having mixed results. It looks like after setting a geofence, the notifications for entering/exiting are very inconsistent even when GPS is on, with an up-to-date location…
oviroa
  • 1,079
  • 2
  • 12
  • 29
25
votes
3 answers

Remove a circle from Android Google Maps API v2 without clearing map

I am drawing a circle on my map like this: CircleOptions circle=new CircleOptions(); circle.center(centre); circle.strokeColor(0xFFFFA420); circle.strokeWidth(2f); circle.fillColor(0x11FFA420); circle.radius(radius); myMap.addCircle(circle); To…
Simo
  • 1,200
  • 1
  • 16
  • 26
24
votes
4 answers

How to get click event of the marker text

I am displaying google map api v2 in my app. I have set some markers in the map. I have also set title and snippet on the markers which are shown when you click the marker. Now I want to call a new activity when clicked on the marker's title and not…
Gaurav
  • 1,700
  • 4
  • 22
  • 38
1
2
3
75 76