PointOverLay gzwzLay;//故障位置层 protected override void OnShown(EventArgs e) { base.OnShown(e); mapview.FullView(); ucLayerCar.MapControl = rMap1; ucLayerCar.ShowToolbar = false; ucLayerCar.InitLayer(); if (!isPlayback) { lastDatetime = new DateTime(2013, 5, 1); carLay = new PointOverLay(rMap1, "car"); rMap1.Overlays.Add(carLay); freshPosition(); gzwzLay = new PointOverLay(rMap1, "gzwz"); gzwzLay.AllowEdit = true; rMap1.Overlays.Add(gzwzLay); freshGzwz(); timer1 = new Timer(); timer1.Interval = 10 * 1000; timer1.Tick += new EventHandler(timer1_Tick); timer1.Start(); } IList list = Client.ClientHelper.PlatformSqlMap.GetList("SelectOneStr", "select value from msys where dm='gpsservice'"); if (list.Count > 0) { gpsUrl = list[0].ToString(); } }
private void initOverlay() { bdzLayer = new PointOverLay(this, "bdz"); bdzLayer.Text = "变电所"; this.Overlays.Add(bdzLayer); }