Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created October 22, 2018 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/a4cb273dc2042431b35e4949834b5fd3 to your computer and use it in GitHub Desktop.
Save fitomad/a4cb273dc2042431b35e4949834b5fd3 to your computer and use it in GitHub Desktop.
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