public void ShowWithOsmLayer()
        {
            var map = new Map();

            var layer = new OpenStreetMapLayer();
            map.Layers.Add(layer);

            var mapControl = new MapControl {Map = map};

            WindowsFormsTestHelper.ShowModal(mapControl);
        }
Exemple #2
0
        public void PanZoomUsingMouseWheelTest()
        {
            var map = new Map();

            var layer = new OpenStreetMapLayer();
            map.Layers.Add(layer);

            var mapControl = new MapControl { Map = map, AllowDrop = false };

            var tool = new PanZoomUsingMouseWheelTool();
            mapControl.ActivateTool(tool);
           
            WindowsFormsTestHelper.ShowModal(mapControl);
        }