高德地图自定义Marker
高德地图默认的marker样式是这种
一般的修改样式是通过icon接口来调整
MarkerOptions markerOptions = new MarkerOptions()
.position(latlng)
.draggable(true)
.icon(BitmapDescriptorFactory.fromBitmap(bitmap));
当遇到图片加文字的marker该如何自定义呢?如这样
步骤:
/**
* 往地图上添加marker
*/
public static void addMarkersToMap(Context context, AMap aMap, LatLng latlng, PointModel model) {
if (aMap != null) {
View view = View.inflate(context, R.layout.view_marker, null);
TextView textView = (TextView) view.findViewB