Instantly share code, notes, and snippets.

Embed
What would you like to do?
function drawRoute(coordinates, color, centered)
{
var style = new mapkit.Style({
lineWidth: 6,
lineJoin: "bevel",
lineCap: "round",
strokeColor: color
});
var polyline = new mapkit.PolylineOverlay(coordinates, { style: style });
map.addOverlay(polyline);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment