Currently I'm using google-map-API V2 for android google map,is there any way I can based on one variable parameter change the marker(pin) size/color of google map?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
float valueBetween0and360 = 222.222;
marker.setIcon(BitmapDescriptorFactory.defaultMarker(valueBetween0and360));
will change marker icon color.
For size you will have to provide your own icons and use BitmapDescriptorFactory.fromResource
.