本文整理汇总了C#中GMap.NET.WindowsForms.GMapOverlay.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# GMapOverlay.Dispose方法的具体用法?C# GMapOverlay.Dispose怎么用?C# GMapOverlay.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GMap.NET.WindowsForms.GMapOverlay
的用法示例。
在下文中一共展示了GMapOverlay.Dispose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: _6CompassCalib
public _6CompassCalib()
{
InitializeComponent();
// map configuring
gMapControl1.CacheLocation = Path.GetDirectoryName(Application.ExecutablePath) + Path.DirectorySeparatorChar + "gmapcache" + Path.DirectorySeparatorChar;
gMapControl1.MapProvider = GoogleMapProvider.Instance;
gMapControl1.MinZoom = 0;
gMapControl1.MaxZoom = 24;
gMapControl1.Zoom = 24 - vScrollBar1.Value;
gMapControl1.DisableFocusOnMouseEnter = true;
gMapControl1.RoutesEnabled = true;
gMapControl1.PolygonsEnabled = true;
tfrpolygons = new GMapOverlay("tfrpolygons");
gMapControl1.Overlays.Add(tfrpolygons);
tfrpolygons.IsVisibile = true;
kmlpolygons = new GMapOverlay("kmlpolygons");
gMapControl1.Overlays.Add(kmlpolygons);
kmlpolygons.IsVisibile = true;
geofence = new GMapOverlay("geofence");
gMapControl1.Overlays.Add(geofence);
geofence.IsVisibile = true;
polygons = new GMapOverlay("polygons");
gMapControl1.Overlays.Add(polygons);
polygons.IsVisibile = true;
routes = new GMapOverlay("routes");
gMapControl1.Overlays.Add(routes);
routes.IsVisibile = true;
portlocation = new PointLatLng(MainV2.comPort.MAV.cs.lat, MainV2.comPort.MAV.cs.lng);
routes.Markers.Add(new GMapMarkerPlane(portlocation, MainV2.comPort.MAV.cs.yaw, MainV2.comPort.MAV.cs.groundcourse, MainV2.comPort.MAV.cs.nav_bearing, MainV2.comPort.MAV.cs.target_bearing) { ToolTipText = MainV2.comPort.MAV.cs.alt.ToString("0"), ToolTipMode = MarkerTooltipMode.Always });
routes.Dispose();
rallypointoverlay = new GMapOverlay("rally points");
gMapControl1.Overlays.Add(rallypointoverlay);
rallypointoverlay.IsVisibile = true;
gMapControl1.Overlays.Add(poioverlay);
gMapControl1.Position = new PointLatLng(MainV2.comPort.MAV.cs.lat, MainV2.comPort.MAV.cs.lng);
poioverlay.IsVisibile = true;
prevDegree = 0;
}