When using the drawing library google maps I try to build a dotted broken line. To do this, I create its path and use it in accordance with the documentation. At the same time, the line does not break or cut off at the required points (nodes) of the line.
Here is an example of my code (you need to go in and build a polyline): jsfiddle
As a result, when building a dashed line on the map, I get (see the attached image below): 
Are there any methods to achieve the correct fracture of the stroke at the required point (node) of the broken line?