I want to show marker name without clicking on the marker.
How can i do that one?
mMap.addMarker(new MarkerOptions().position(name1).title("bangalore"));
I want to show marker name without clicking on the marker.
How can i do that one?
mMap.addMarker(new MarkerOptions().position(name1).title("bangalore"));
you can use showInfoWindow() after creating marker. official document
static final LatLng MELBOURNE = new LatLng(-37.81319, 144.96298);
Marker melbourne = mMap.addMarker(new MarkerOptions()
.position(MELBOURNE)
.title("Melbourne"));
melbourne.showInfoWindow();
Try this :
googleMap.addMarker(new MarkerOptions().position(LatLng)
.title(title).snippet(snippet).icon(BitmapDescriptorFactory
.fromResource(icon)));
use this library
http://googlemaps.github.io/android-maps-utils/
This open-source library contains classes that are useful for a wide range of applications using the Google Maps Android API.