Adding marker or updating polyline points color google maps polygon (react)

0
Hi experts, My usecase is I want to show polyline points with different color on start of the polyline as below.  I have tried existing Google maps polygon (react) widget but its showing default white color points at all points.   is there anyway to modify the color of polyline point or to add custom marker into this polygon widget.     Edit : My expected output should like below  
asked
2 answers
1

Hi Naga durga sai phalok Garapati,

                                                             Create a domain module, Where add a attribute string named as color and store the color value as colorcode(eg:#fff). Now in the polygon react widget pass the color code attribute. Hope it will be useful for you.

answered
0

You could use the Google Maps custom Marker widget and use the feature to draw a line between the markers. You then have full control of the styling of the markers/points and the polyline. The only downside is you can't drag the points in de polyline as the points and the polyline are technically different objects plotted, not a real connected polyline.

answered