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
27
votes
2 answers

You attempted to set the key on an object that is meant to be immutable and has been frozen

In the following example: MapView displays elements of a ListView as annotations Clicking on a ListView element should result in painting it in blue color. Bonus if the MapView and ListView efficiently use the state object Modifying the…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
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
9 answers

Disable moving around in mapview

Is it possible to disable moving inside the google map?
Vincent
  • 6,058
  • 15
  • 52
  • 94
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
1 answer

Why retrieving Google Directions for Android using KML data is not working anymore?

Possible Duplicate: Google Maps output=kml broken? I started to get Error when I'm trying to retrieve Google Directions using KML data since few days. The Error seems that the URL I'm requesting doesn't retreieve KML data anymore, it returns a…
Hesham Saeed
  • 5,358
  • 7
  • 37
  • 57
25
votes
4 answers

How to draw dashed polyline with android google map sdk v2?

I've looked through the documentation of polyline and there is no option to make it dashed. Do anybody know how to draw dashed polyline with android google map sdk v2?
24
votes
1 answer

Combine image and text to drawable

I want to create a drawable, which consists of a map pin(bubble) and some text. The bubble should be in the background and the text in the foreground. This drawable should be passed in super(drawable) of the class BalloonItemizedOverlay which…
Abhi
  • 8,935
  • 7
  • 37
  • 60
23
votes
8 answers

android maps: How to Long Click a Map?

How do I long click on a mapview so that a place marker appears at that point on the map? I tried a couple ways without success: 1) Using setOnLongClickListener on the MapvView which never detected the longclicks. 2) My other idea was to extend…
vamsibm
  • 391
  • 2
  • 4
  • 7
22
votes
2 answers

Hide markers info window in android google maps API v2

Currently I was able to view all my markers in Google maps using Android Google maps API v2. Adding my marker in map: mapView.addMarker (new MarkerOptions() .position(aUsersLocation). …
user915303
22
votes
5 answers

Let's solve the "Failed to find style 'mapViewstyle' in current theme" error

Sorry to post yet another one of these, but it seems we have yet to document every solution to this issue. Here's what happened: I added a mapview, everything was working peachy. I added a slidingdrawer and moved buttons into it, then changed the…
Billdr
  • 1,557
  • 2
  • 17
  • 30
21
votes
3 answers

Keytool alias does not exist

I am trying to get my debug.keystore md5 key so I can get the API key for Google Maps. I run the command: keytool –genkeypair -alias armand -keypass pass And then running the command: keytool -list -alias armand -keystore debug.keystore I then…
Armand
  • 9,847
  • 9
  • 42
  • 75
21
votes
3 answers

Comparing two locations using their Longitude and Latitude

Hi i need to cal an event at onchangelocation(), by comparing current latitude and longitude with some saved latitude and longitude but i m getting an error. eclipse is not recognizing key word distance, and for correction error it is giving hint…
user2590541
  • 522
  • 3
  • 7
  • 19
21
votes
4 answers

How to add google-play-services.jar project dependency so my project will run and present map

I have following problem: I try to use SupportMapFragment from com.google.android.gms.maps.SupportMapFragment which is part of Google Maps Android API v2. My first approach was to add project to Eclipse from…
MichK
  • 3,202
  • 3
  • 29
  • 33
19
votes
8 answers

Placing Zoom Controls in a MapView

I'm trying to get the zoom controls to show up in a mapview, the following code almost works, but the zoom controls appear in the top left of the mapview, not the bottom center like I'm specifying via setGravity(). Can someone enlighten me as to…
jasonhudgins
  • 2,815
  • 1
  • 25
  • 20
19
votes
6 answers

How can I detect if an Android MapView has been panned or zoomed?

I'm creating an Android app that searches for items based on the visible area of the MapView. Is there a way to set up a listener on my MapView to detect when a map has been panned or zoomed?
dl.
  • 2,264
  • 1
  • 19
  • 22