question: private void markerWithColoredIcon ( GoogleMap googleMap , LatLng latLng , String publicId , String hexColor ) { MarkerOptions options = new MarkerOptions ( ) ; options . position ( latLng ) ; int color = Color . parseColor ( hexColor ) ; float [ ] hsv = new float [ 3 ] ; Color . colorToHSV ( color , hsv ) ; float hue = hsv [ 0 ] ; options . icon ( BitmapDescriptorFactory . defaultMarker ( hue ) ) ; Marker marker = googleMap . addMarker ( options ) ; publicMarkerIds . put ( marker . getId ( ) , publicId ) ; }
target:  Places a colored default marker on the map at the required position.