Questions tagged [android-mapview]

MapView allows you to create your own Google map-viewing Activity

A View which displays a map (with data obtained from the Google Maps service)

MapView usually refers to the old and obsolete v1 API. For the current v2 API, use .

Useful links

2307 questions
50
votes
11 answers

How can I handle map move end using Google Maps for Android V2?

I want to geocode address as soon as map center has been changed. How can I handle map moveend with new Google Maps for Android V2? (I'm talking about the case then user drags map by finger)
45
votes
8 answers

Shared library missing in android.

02-18 00:02:08.432: ERROR/PackageManager(57): Package com.example.brown requires unavailable shared library com.google.android.maps; failing! I got this exception in logcat. Can anyone guide me?
Praveen
  • 90,477
  • 74
  • 177
  • 219
41
votes
11 answers

Android: automatically choose debug/release Maps api key?

OBSOLETED: this old question refers to obsoleted Google Maps v1 API. When using v2 API, you can use multiple certificate fingerprints in one Google API Console entry. API Key is no longer stored in Manifest nor code. Is it possible to automatically…
tomash
  • 12,742
  • 15
  • 64
  • 81
39
votes
7 answers

Android Maps Point Clustering

Is there any code for Point Clustering in android? How can i load thousand pinpoint without having performance issues?
weakwire
  • 9,284
  • 8
  • 53
  • 78
38
votes
9 answers

Relocate Google logo in MapView

I have two buttons at each bottom corners of the MapView, partly obscuring the google logo in the bottom-left corner. In order to comply with the terms and conditions of the API, I need to relocate the google logo to somewhere more visible. i.e.…
dzeikei
  • 2,256
  • 1
  • 21
  • 27
38
votes
7 answers

Get altitude by longitude and latitude in Android

Is there a quick and efficient way to get altitude (elevation) by longitude and latitude on the Android platform?
Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
37
votes
4 answers

How do you draw text with a border on a MapView in Android?

I'm trying to draw some text onto an MapView on Android. The drawing of the text goes fine, but it's very hard to read the text because it's white with no black border (like the rest of the text that appears naturally on MapViews to denote cities,…
Dan Lew
  • 85,990
  • 32
  • 182
  • 176
33
votes
2 answers

How to handle onTouch event for map in Google Map API v2?

GoogleMap by default doesn't provide event for map drag start and drag stop. I have already reported that problem here. I want to make custom handler that will use plain onTouch event and combine it with setOnCameraChangeListener. However i failed…
32
votes
4 answers

How to animate marker in android map api V2?

I want to implement smooth transition to emulate car marker moving on the map. Is it possible to animate marker in android map api v2?
32
votes
3 answers

Google Maps Android API V2 check if GoogleMaps are installed on device

When using Google Maps Android API V2 I'm following the Google Play Services setup documentation to make a check to ensure that Google Play Services are installed, using the following code in my main Activity: @Override public void onResume() { …
DiscDev
  • 38,652
  • 20
  • 117
  • 133
32
votes
2 answers

Google Maps Android API v2 very slow when adding lots of Markers

I am updating an existing Android app to use the new Google Maps Android API v2. I have about 2500 markers that I want to add to the map. With the older version of the API I found the responsiveness of the maps to be horrendous when there are 2500…
DiscDev
  • 38,652
  • 20
  • 117
  • 133
32
votes
3 answers

GestureDetector Deprecated Issue

I have this code itemizedOverlay = new MyItemizedOverlay(drawable,this); itemizedOverlay.setGestureDetector(new GestureDetector(new MyGestureDetecor())); but new GestureDetector is marked as Deprecated in Eclipse. I want to avoid the use of…
AndreaF
  • 11,975
  • 27
  • 102
  • 168
30
votes
4 answers

Android GeoPoint with lat/long values

I am trying to get a GeoPoint for -23.4456 by 45.44334 What values do I pass into the constructor of the GeoPoint as it take Ints only.
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
29
votes
6 answers

How does one implement drag and drop for Android marker?

Hi? I am working on a MapView app in Android. I have three markers that I want to be able to use the Google Map API getlocation-function on, later on. In order to try it out I would like to move the marker with a drag and drop-function, and then…
kakka47
  • 3,479
  • 8
  • 44
  • 52
28
votes
5 answers

android MapView in Fragment

I want to have MapView inside my Fragment This is my FragmentLayout xml file
user3833308
  • 1,132
  • 3
  • 14
  • 39