I have 10 markers in the GoogleMap. I want to zoom in as much as possible and keep all markers in view? In the earlier version this can be achieved from zoomToSpan() but in v2 I have no idea how about doing that. Further, I know the radius of the…
I am trying to a make custom InfoWindow after a click on a marker with the new Google Maps API v2. I want it to look like in the original maps application by Google. Like this:
When I have ImageButton inside, its not working - the entire InfoWindow…
I am developing an Android Application where I'm using Google Map API v2. I need to show the user location on a map with custom markers.
Each marker will show the picture of the user from an URL. The image must be downloaded in asynchronous mode…
My app that uses Google Maps SDK (v2) just started crashing with this exception:
Process: com.currentlocation.android, PID: 7328
java.lang.ArrayIndexOutOfBoundsException: length=1; index=12
at…
How to I make the markers in Android Google Maps API v2 become clickable so they will either bring up a menu with options or just start a new activity? I believe I made the markers in my app currently in a "newb" method. I didn't assign them a name…
Is it possible to change the zoom level for myLocation with the new Google Maps API v2?
If you set GoogleMap.setEnableMyLocation(true);, you get a button on the map to find your location.
If you click on it, then the map will bring you to your…
When I click the marker on the google map, "Navigation" and "GPS Pointer" buttons come out. How can I hide those two navigation buttons programmatically in android development?
How can we achieve a map marker icon with vector asset file, the way google shows it like this, programatically:
Update:
map.addMarker(new MarkerOptions()
.position(latLng)
…
I want to use Google Play Services API in my application, but when I open the emulator to test my application it sends me a message that says "Google Play Services must be downloaded". I know that occurs because I coded this test in my MainActivity…
I'm testing out the new Google Maps API V2 for Android, and I'm getting this message when the app launches:
This is running on an 4.1 emulator.
Here is my AndroidManifest.xml file:
My steps:
got SHA1 code from debug.keystore
create app in google apis console
enabled google map api v2
input SHA1;my.package.name
get API key
created AndroidManifest file:
I'm making use of the new Android Google Maps API.
I create an activity which includes a MapFragment. In the activity onResume I set the markers into the GoogleMap object and then define a bounding box for the map which includes all of the…
I'm following this tutorial: https://developers.google.com/maps/documentation/android/start#overview
on how to add Google Maps to an app within the Android SDK.
The only problem I seem to be having is during this bit (I've done everything else…
I have added map on fragment activity and added several marker using addMarker function, but i am able to remove all markers , I am getting notification for different list of markers,
Now i wants to remove all markers and add new one.
one way to…
I am using the Google Maps Android API v2, and I need a way to chance the position of the "My Location" button.
I get the "My Location" button like this:
GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());
final…