4 android google-maps google-maps-markers google-maps-android-api-2 android-maps-v2
我在谷歌搜索但我无法得到它.我需要这种类型,其中值在标记中

我无法理解如何像上面显示的那样做.
GoogleMap gm;
gm = ((SupportMapFragment) (getSupportFragmentManager()
.findFragmentById(R.id.map))).getMap();
gm.setOnInfoWindowClickListener(this);
gm.addMarker(new MarkerOptions()
.title(jsonObj.getString("project_name"));
@Override
public void onInfoWindowClick(final Marker marker) {
String name = marker.getTitle(); // this displays when marker window gets tap
}
Run Code Online (Sandbox Code Playgroud)
但是当我点击标记窗口时,上面的代码就会显示出来.我只想显示上面的iamge链接.怎么做.请帮忙解决问题.
提前致谢.
使用android map utils库
这是该网站的链接,并浏览发布的视频.
http://googlemaps.github.io/android-maps-utils/
1.Downlaod图书馆
github.com/googlemaps/android-maps-utils
2.使用检查此链接
IconGenerator tc = new IconGenerator(this);
Bitmap bmp = tc.makeIcon("hello"); // pass the text you want.
Run Code Online (Sandbox Code Playgroud)
然后将位图设置为地图对象
.icon(BitmapDescriptorFactory.fromBitmap(bmp)));
Run Code Online (Sandbox Code Playgroud)
快照
