I am using react-google-maps library for showing polylines and markers on map, and for that I have used this example with the dataset
react-google-maps
polylines
markers