Example #1
0
 private void SetActiveTool(MapToolType mapToolType)
 {
     mapControl.ActiveTool = mapToolType;
     ButtonSelect.Checked  = mapToolType == MapToolType.Select;
     ButtonPan.Checked     = mapToolType == MapToolType.Pan;
     ButtonZoomIn.Checked  = mapToolType == MapToolType.ZoomIn;
     ButtonZoomOut.Checked = mapToolType == MapToolType.ZoomOut;
 }
Example #2
0
 public Map()
 {
     InitializeComponent();
     MapScale    = 1.0;
     MapCenter   = new GEOPoint();
     Layers      = new List <Layer>();
     mapToolType = MapToolType.panBtn;
 }