After reading the Nativescript app documentation on changing Google Maps polyline color, I found this information:
The line segment color should be in ARGB format, similar to the Color format. The default color is black (0xff000000).
I would like to utilize the following color:
rgb(138, 191, 95)
However, my attempts failed when implementing it in the code snippet below:
drawRoute(encodedPolylinePoints) {
this.mapView.removeAllPolylines();
this.routeCordinates = decodePolyline(encodedPolylinePoints);
this.polyline = new Polyline();
this.routeCordinates.forEach(point =>
this.polyline.addPoint(Position.positionFromLatLng(point.lat, point.lng))
);
this.polyline.visible = true;
this.polyline.geodesic = true;
this.polyline.width = 2;
this.polyline.color = new Color('#8ABF5F');
this.mapView.addPolyline(this.polyline);
},
How can I properly convert it to the required format for the app?