My app shows a map and i want that users can't swipe over a certain region.
So i'm trying to add bounds but it makes the app to crash.
Here is the working code:
public class MapViewer extends Activity implements OnInfoWindowClickListener {
…
I am trying to get the driving direction between the two positions:
LatLng(12.917745600000000000,77.623788300000000000)
LatLng(12.842056800000000000,7.663096499999940000)
The code which i have tried:
Polyline line = mMap.addPolyline(new…
I know Gradle is powerful and I would like to manage the API keys for development/produciton of Google Maps
Currently I always need to manually comment one line and uncomment the other to make it work. Is there a way to do it automatically in Gradle…
i have the following code which is drawing polylines for me and working fine, But the problem is that its not drawing interactive polylines, drawn lines are missing some pixels !
import java.io.BufferedReader;
import java.io.IOException;
import…
I am creating an android application using google maps. here is the code:
MapFragActivity.java
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.maps.GoogleMap;
import…
I am not sure whether I should be using MapView or stick to using a MapFragment. My application is an app that finds the nearest set of places that are closest to you. I want to be able to add locations, display details of a marker when I press a…
I believe this is a limitation of the recent Google Maps API v2. They have recently added the ability to draw a Circle on the ground - but if you want to position the camera such that it shows the entire Circle, there exists no way to do so.
One can…
Final Update
The feature request has been fulfilled by Google. Please see this answer below.
Original Question
Using the old version of the Google Maps Android API, I was able to capture a screenshot of the google map to share via social media. I…
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)
I'm having a little trouble understanding how to change the colour of a marker in an Android Google Map project.
My code for a Marker is:
googlemap.addMarker(new MarkerOptions()
.position(new LatLng( 65.07213,-2.109375))
.title("This is my…
First, I watched out here: Start FragmentActivity from Activity and now I have the following problem:
MapsActivity:
public class MapsActivity extends FragmentActivity {
private GoogleMap mMap;
@Override
public void onCreate(Bundle…
I'm developing an Android app that is supposed to use Google Maps v2.
Now i'm stuck at finding when zoom level of map has changed.
Can anyone help me?Thanks in advance.
I'm using Google Maps v2 API in my project. In Google Maps v2 the debug/release API key is defined in AndroidManifest.xml. I have seen the link but in that map key is defined in a xml layout file not in AndroidManifest.xml. So can I define both…
I have a google maps v2 in my android application and some markers on it. When user click one of these markers, a title popup comes. How can I show these titles always without user click?
I'm trying to get the sample code of Android 'Google Maps Android API v2' working. I get the project built without errors. However, when I try to run the app on my Galaxy Nexus (connected with usb to my laptop), the app crashes immediately.
I…