Index: Demo/Ringtoets/src/Demo.Ringtoets/Commands/OpenMapViewCommand.cs =================================================================== diff -u -rf9058d5293ecb785069c5b6b4c554dc6800ee771 -r3167b898b071fea4cf86c775bca5467fab086038 --- Demo/Ringtoets/src/Demo.Ringtoets/Commands/OpenMapViewCommand.cs (.../OpenMapViewCommand.cs) (revision f9058d5293ecb785069c5b6b4c554dc6800ee771) +++ Demo/Ringtoets/src/Demo.Ringtoets/Commands/OpenMapViewCommand.cs (.../OpenMapViewCommand.cs) (revision 3167b898b071fea4cf86c775bca5467fab086038) @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; - +using System.Collections.ObjectModel; using Core.Common.Controls.Commands; using Core.Common.Gui; using Core.Components.DotSpatial.Data; @@ -38,28 +38,14 @@ public void Execute(params object[] arguments) { - var data = new MapData(); - - var paths = new List + var points = new MapPointData(new Collection> { - "Resources/DR10_dijkvakgebieden.shp", - "Resources/DR10_cross_sections.shp", - "Resources/DR10_dammen_caissons.shp" - }; + new Tuple(10.5, 3), + new Tuple(11, 5), + new Tuple(11.5, 4) + }); - foreach (string path in paths) - { - try - { - data.AddShapeFile(path); - } - catch (Exception e) - { - Console.WriteLine(e.Message); - } - } - - documentViewController.DocumentViewsResolver.OpenViewForData(data); + documentViewController.DocumentViewsResolver.OpenViewForData(points); } } } \ No newline at end of file