anychart.onDocumentReady(function() {
var data = anychart.data.set([
{points: [51.5, -3.2, 57.1, -2.19], from: "Cardiff", to: "Aberdeen", time: "2h 20m"},
{points: [55.9, -3.2, 51.45, 0], from: "Edinburgh", to: "London", time: "1h 15m"},
{points: [54.7, -5.9, 57.6,-3.9], from: "Dublin", to: "Iverness", time: "1h 15m"}
var series = map.connector(data);
map.geoData(anychart.maps['united_kingdom']);
series.markers({position: '100%', size: 3, type: 'circle'});
series.hoverMarkers({position: '100%', size: 3, fill: '#FFCC99', stroke: '2 #E1E1E1', type: 'circle'});
series.selectMarkers({position: '100%', size: 3, fill: '#FFCC99', stroke: '2 #E1E1E1', type: 'circle'});
series.stroke("#CCCC99");
series.hoverFill("#996633");
series.selectFill("#996633");
series.hoverStroke("#CCCC99");
series.selectStroke("#CCCC99");
map.title("Setting the colors of the connectors");
series.tooltip().format("A flight from {%from} to {%to} takes at least {%time}");
map.container('container');