1
我想要使用Google地图v2着色Marker
。下面的解决方案是行不通的:地图v2着色标记
Drawable d = getResources().getDrawable(R.drawable.my_drawable);
d.setColorFilter(getResources().getColor(
R.color.tint_color), Mode.MULTIPLY);
BitmapDescriptor bitmap = BitmapDescriptorFactory.fromBitmap(((BitmapDrawable) d).getBitmap());
myMap.addMarker(new MarkerOptions().icon(bitmap).position(latLon));
有没有得到Markers
有色替代解决方案?
我试过你的答案,但第一行是错误的。我得到代码错误提示“无法解析方法getBitmap()”。你能提供一个更全面的解释吗? – 2015-08-20 13:36:07