【发布时间】:2017-08-26 18:03:40
【问题描述】:
如何制作这样的自定义标记?
【问题讨论】:
如何制作这样的自定义标记?
【问题讨论】:
首先使用BitmapDescriptorFactory.fromResource(id goes here)
然后使用
向地图添加标记Marker marker = GoogleMap.addMarker(new MarkerOptions().position(latLng)
.icon(BitmapDescriptorFactory.fromResource(id goes here));
对于你可以使用的文本
marker.setTitle(string); //text on top
marker.setSnippet(string); //text below the title
【讨论】:
osmdroid。