Пример #1
0
        public void ShowWithOsmLayer()
        {
            var map = new Map();

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

            var mapControl = new MapControl {Map = map};

            WindowsFormsTestHelper.ShowModal(mapControl);
        }
Пример #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);
        }