D
Deleted member 103
Guest
Hi,
Who can translate this Java code into B4a?
I need only the function "getMarkerIcon".
Thanks in advance.
Who can translate this Java code into B4a?
I need only the function "getMarkerIcon".
B4X:
Marker melbourne = mMap.addMarker(new MarkerOptions().position(MELBOURNE)
.icon(getMarkerIcon("#ff2299")));
// method definition
public BitmapDescriptor getMarkerIcon(String color) {
float[] hsv = new float[3];
Color.colorToHSV(Color.parseColor(color), hsv);
return BitmapDescriptorFactory.defaultMarker(hsv[0]);
}
Thanks in advance.