csmapcontrol

csmapcontrol Commit Details

Date:2010-08-01 12:25:58 (2 years 9 months ago)
Author:Ciaran Gultnieks
Branch:master
Commit:79a8396f42e1b240430f9f03775f97e7f9c43b91
Parents: 50eefb756c163b92af47b93d79c43c7944405aac
Message:Getting rid of the AutoScale stuff makes the control be the right size under Mono

Changes:
MMapControl/MapControl.cs (1 diff)
MMapDemo/MainForm.Designer.cs (3 diffs)

File differences

MapControl/MapControl.cs
313313
314314
315315
316
317316
318317
319318
public MapControl()
{
InitializeComponent();
mTileManager.NewDataAvailable+=NewTileDataAvailable;
}
MapDemo/MainForm.Designer.cs
1
1
22
33
44
......
5353
5454
5555
56
57
5658
5759
5860
5961
6062
61
6263
6364
6465
65
6666
6767
6868
......
9595
9696
9797
98
99
10098
10199
102100
//
//
// csmapcontrol - a C# map control - http://projects.ciarang.com/p/csmapcontrol
// Copyright (C) 2010, Ciaran Gultnieks
//
//
// mapControl1
//
this.mapControl1.Location = new System.Drawing.Point(2, 2);
this.mapControl1.Size = new System.Drawing.Size(432, 303);
this.mapControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.mapControl1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.mapControl1.Latitude = 53.9753;
this.mapControl1.Location = new System.Drawing.Point(2, 2);
this.mapControl1.Longitude = -1.7017;
this.mapControl1.LonScale = 0.00390625;
this.mapControl1.Name = "mapControl1";
this.mapControl1.Size = new System.Drawing.Size(432, 303);
this.mapControl1.TabIndex = 0;
//
// txtLat
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(435, 333);
this.Controls.Add(this.scrScale);
this.Controls.Add(this.txtLon);

Archive Download the corresponding diff file

Branches