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
0
votes
0 answers

Show markers depending on zoom level?

I have an app where I show a lot of markers My question is: can I choose a group of markers shows in diferent zoom level? That is, more zoom in, more marks. Because Showing all markers in map with 13 o 14 zoom is confuse to read.
cristianego
  • 81
  • 1
  • 7
0
votes
2 answers

Google maps do not appear on the screen

After seeing several forums and tutorials for Google maps for Android, and I have this public class MapsActivity extends MapActivity { MapView mapView; MapController mc; GeoPoint p; class MapOverlay extends com.google.android.maps.Overlay{ …
0
votes
1 answer

SupportMapFragment memory leak?

So I have a simple Activity with following code: public class MainActivity extends FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Warpzit
  • 27,966
  • 19
  • 103
  • 155
0
votes
1 answer

Could not dispatch event: class android.widget.RelativeLayout to handler

I am working with Google Android Maps 2. The map can be viewed without any trouble, if I save a location and if when I select this location in the startup screen (which just lists the saved location by name) the application breaks and the following…
AliR
  • 2,065
  • 1
  • 27
  • 37
0
votes
1 answer

I wanted to integrate the geo fencing with google maps API v2, so how can i?

I am new to google maps, my requirement is to create the virtual boundaries on google maps API V2 using geo fencing. I wanted to make an alert when the virtual boundaries are crossed. So how can i get this done or any useful information regarding…
-1
votes
1 answer

draw route line between real time latitude and longitude

now i am getting latitude and longitude n time, if i move with my phone the marker also moving according latitude and longitude, but i need to draw a route line if phone change the position. example i have T1, T2, T4, T5 time latitude longitude…
Lokesh GP Loki
  • 101
  • 2
  • 15
-1
votes
1 answer

Android Map : How to cutomize Marker icon with SVG file?

I have a SGV icon (.svg) that I want to use like cutom icon for map markers. How should I proceed ? I didn't find anything on the subject.
Mohamed Jihed Jaouadi
  • 1,427
  • 4
  • 25
  • 44
-1
votes
2 answers

showInfoWindow() function doesn't work in Google Maps

I have a google map with some markers and all of them have title and snippet. I store markers in a HashMap. I want to display title and snippet with showInfoWindow() function when a button clicked. this is my code : Marker m = getMarker(location);…
-1
votes
1 answer

Android Google Map- how to divide map into 4 quadrants and know marker quadrant position

i have a google map and i have some markers on . The markers are already rendered on the map and the markers are placed based on a certain category. These categories are quadrants on a map. now after user clicks on a marker on the map i need to…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
-1
votes
2 answers

Googlemaps V2: Add an info window on GeoJsonPolygon

I am using geojson files to draw polygon on the map on Android. Now I wanna add info windows on top of this polygons. I try to use GeoJsonPolygonStyle from GeoJsonlayer -> getFeature() method to style these polygon with info window. But It doesnt…
rana
  • 1,824
  • 3
  • 21
  • 36
-1
votes
1 answer

Getting the locations from a MySQL database and displaying them on a map

How can I get locations from a Mysql database and display them on a android app showing a marker on the map? I have a custom Google map that currently gets the locations from an array or javascript variable named locations. I want the data to no…
-1
votes
1 answer

How to display stored locations from a database on a map?

I want to build an app which will display restaurants stored in a database (name, lat, long etc...) on a map within certain radius from the user. The user can then click on a particular restaurant to view more information or add a review about that…
-1
votes
2 answers

How can I get array of available routing LatLng between Source LatLng and destination LatLng?

I wanted to add some checkpoints(Marker) into Google map between the Source and destination as per available route in my Android App.
-1
votes
1 answer

Android - how to show mapFragment in tab action

I have tab activity and in the first tab i want to show a map fragment. my problem is that i dont know how to do that. I have map fragment that extends supportMapFragment, but still i have no idea how do i show that fragment in the tab. this is the…
Bolandian Eran
  • 211
  • 1
  • 4
  • 21
-1
votes
2 answers

maps shut down when the location im entering is not real

I'm using the Google maps activity and the app crushes when I write gibberish and hit "search". However, it works perfectly with a real location. How can I prevent it from crashing? My code: public void onSearch(View view) { String location =…
Niv Peretz
  • 19
  • 3