Maps newMapsControl1 = new Maps();
newMapsControl1.Dock = DockStyle.Fill;
newMapsControl1.ZoomLevel = 2;
newMapsControl1.Margin = new Padding(0, 0, 0, 0);
newMapsControl1.MapBackgroundBrush = new SolidBrush(
DesignHelper.HexToColour(Properties.Settings.Default.HexMapSpaceColour));
newMapsControl1.MapItemsShape = MapItemShapes.None;
newMapsControl1.MapItemStroke = new SolidBrush(
DesignHelper.HexToColour(Properties.Settings.Default.HexMapSpaceColour));
newMapsControl1.ShapeSelected += mapsControl1_ShapeSelected;
newMapsControl1.AnnotationDrawing += mapsControl1_AnnotationDrawing;
ShapeFileLayer shapeLayer = new ShapeFileLayer();
shapeLayer.Uri = "ShapeFiles/world1.shp";
shapeLayer.EnableSelection = true;
shapeLayer.ShapeIDPath = "Country";
shapeLayer.ShapeIDTableField = "NAME";
shapeLayer.ShapeSetting.ShapeValuePath = "Blocked";
shapeLayer.ShapeSetting.ShapeColorValuePath = "Blocked";
shapeLayer.ShapeSetting.ShapeDisplayValuePath = "NAME";
shapeLayer.ShapeSetting.FillSetting.AutoFillColors = false;
shapeLayer.ShowMapItem = false;
shapeLayer.LayoutType = LayoutType.Tile;
shapeLayer.ItemSource = viewModel.CountriesList;
shapeLayer.Annotations = viewModel.ConnectionCoordinatesList;
shapeLayer.ShapeSetting.SelectedShapeColor = Properties.Settings.Default.HexMapSelectedColour;
shapeLayer.ShapeSetting.ShapeFill = Properties.Settings.Default.HexMapLandColour;
shapeLayer.ShapeSetting.ShapeStrokeThickness = 0.5;
shapeLayer.ShapeSetting.ShapeStroke = Properties.Settings.Default.HexForeColour;