【发布时间】:2016-02-22 12:41:28
【问题描述】:
【问题讨论】:
-
你的意思是自定义标记..???
-
是的,在自定义标记上,我必须在上面的部分设置背景图像
-
查看我和 Abx 的答案。
标签: android google-maps background-image google-maps-markers
【问题讨论】:
标签: android google-maps background-image google-maps-markers
【讨论】:
来自@Abx 的回答
您可以像这样添加自定义标记,
googleMap.addMarker(new MarkerOptions()
.icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_marker_me))
.anchor(0.5f, 1.0f) // Anchors the marker on the bottom left
.position(new LatLng(latitude, longitude)));
感谢@Abx
【讨论】: