Plotting duplicate Coordinates on a PolylineOverlay causes ponts to disappear

I'm plotting a set of Coordinates for a hiking trail, and in instances where the trail is an Out & Back and has duplicate Coordinates:
Code Block
return new mapkit.Coordinate(point[0], point[1]);

...what ends up happening is that the coordinate disappears altogether from the map.

I'm plotting them with a pretty simple PolylineOverlay:
Code Block
const trail = new mapkit.PolylineOverlay(coords, { style });

...with the following style:
Code Block
const style = new mapkit.Style({
strokeColor: colors.purple,
lineWidth: 2,
lineJoin: 'round',
lineDash: [],
});

This works fine when I plot duplicate coordinates on iOS. How do I get this working with Mapkit JS?
Thanks for the post. This is a known issue. We are already tracking it.
This is tracked as rdar://37678493.
Plotting duplicate Coordinates on a PolylineOverlay causes ponts to disappear
 
 
Q