Google android maps api v2 Show Marker Title Always

后端 未结 6 1668
南旧
南旧 2020-12-14 14:47

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 ti

6条回答
  •  粉色の甜心
    2020-12-14 15:31

    Something like that:

    googleMap.addMarker(new MarkerOptions()
        .position(new LatLng(latitude, longitude))
        .title("Your position")).showInfoWindow();
    

提交回复
热议问题