3

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"));
Amarjit
  • 4,327
  • 2
  • 34
  • 51
Vinay Agrahar
  • 33
  • 1
  • 7

3 Answers3

3

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();
CodingRat
  • 1,934
  • 3
  • 23
  • 43
0

Try this :

googleMap.addMarker(new MarkerOptions().position(LatLng)
                .title(title).snippet(snippet).icon(BitmapDescriptorFactory
                        .fromResource(icon)));
Kapil Rajput
  • 11,429
  • 9
  • 50
  • 65
0

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.