anychart.onDocumentReady(function() {
var data = anychart.data.set([
{points: [50.8, -3.6, 50.8, -1.6, 51.5, -0.16], stroke:'navy', to: "New Forest National Park", marker: {fill: "#9fa8da"}},
{points: [51.5,-0.16, 51.7, -1.29, 52.2, 0.27, 53.3, -1.5], to: "Cambridge"},
{points: [53.3, -1.5, 54.5,-3.4], to: "Edinburgh"},
{points: [54.5, -3.4, 57.1, -2.19], stroke:'green', to: "Aberdeen"}
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: '#1976d2', stroke: '2 #E1E1E1', type: 'circle'});
series.selectMarkers({position: '100%', size: 3, fill: '#1976d2', stroke: '2 #E1E1E1', type: 'circle'});
map.title("Creating segments");
map.container('container');