Android: Change Marker's Size/color Based On Parameter
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?
Solution 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
.
Post a Comment for "Android: Change Marker's Size/color Based On Parameter"