void _IV_请求定位号码(string __号码) { if (_当前显示号码集.ContainsKey(__号码)) { var __位置 = _当前显示号码集[__号码].位置; if (__位置 != null) { _IF地图.定位(__位置); } } }
void _IV_请求定位号码(string __号码) { m_lock.EnterReadLock(); if (_当前显示号码集.ContainsKey(__号码)) { var __位置 = _当前显示号码集[__号码].位置; if (__位置 != null) { _IF地图.定位(__位置); } } m_lock.ExitReadLock(); }
void do定位点_Click(object sender, EventArgs e) { _I地图.定位(__中心); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.Text += " - " + Assembly.GetExecutingAssembly().GetName().Version; this.in区域检索_城市.Text = "南京市"; this.in区域检索_关键字.Text = "威尼斯水城"; this.in地址编码_城市.Text = "南京市"; this.in地址编码_地名.Text = "威尼斯水城"; this.in逆地址编码_经度.Text = "118.7519"; this.in逆地址编码_纬度.Text = "32.1359"; this.in查询路径_从城市.Text = "南京市"; this.in查询路径_到城市.Text = "南京市"; this.in查询路径_从地名.Text = "威尼斯水城"; this.in查询路径_到地名.Text = "蓝旗街"; this.in查询路径_从经纬度.Text = "118.7519,32.1359"; this.in查询路径_到经纬度.Text = "118.8229,32.02552"; this.in查询路径_地名_方式.Items.Clear(); this.in查询路径_地名_方式.Items.AddRange(Enum.GetNames(typeof(E驾车路线选择策略))); this.in查询路径_地名_方式.SelectedItem = E驾车路线选择策略.最少时间.ToString(); this.in查询路径_经纬度_方式.Items.Clear(); this.in查询路径_经纬度_方式.Items.AddRange(Enum.GetNames(typeof(E驾车路线选择策略))); this.in查询路径_经纬度_方式.SelectedItem = E驾车路线选择策略.最少时间.ToString(); _IF地图.地图缩放 += out地图_地图缩放; _IF地图.单击点 += 标单击; _IF地图.进入点 += 标进入; _IF地图.离开点 += 标离开; _IF地图.单击线 += 标单击; _IF地图.进入线 += 标进入; _IF地图.离开线 += 标离开; _IF地图.单击多边形 += 标单击; _IF地图.进入多边形 += 标进入; _IF地图.离开多边形 += 标离开; this.out层级.Text = _IF地图.当前层级.ToString(); this.do加载地图.Click += do加载地图_Click; this.do添加覆盖物.Click += do添加覆盖物_Click; this.do添加覆盖物2.Click += do添加覆盖物2_Click; this.do删除覆盖物.Click += do删除覆盖物_Click; this.do定位初始点.Click += (sender1, e1) => _IF地图.定位(_中心位置); this.do单次圈选.Click += do单次圈选_Click; this.do多次圈选.Click += do多次圈选_Click; this.do模拟轨迹.Click += do模拟轨迹_Click; this.do图层操作.Click += do图层操作_Click; this.out地图.MouseMove += out地图_MouseMove; this.do开始测距.Click += do开始测距_Click; //在线应用 this.do区域检索_城市.Click += do区域检索_城市_Click; this.do区域检索_圈选.Click += do区域检索_圈选_Click; this.do逆地址编码.Click += do逆地址编码_Click; this.do地址编码.Click += do地址编码_Click; this.do查询路径_驾车_地名.Click += do查询路径_驾车_地名_Click; this.do查询路径_驾车_经纬度.Click += do查询路径_驾车_经纬度_Click; this.do查询路径_公交_地名.Click += do查询路径_公交_地名_Click; this.do查询路径_公交_经纬度.Click += do查询路径_公交_经纬度_Click; _单次圈选窗口 = new F圈选_单次(this.out地图) { Left = this.out地图.Left + 100, Top = this.out地图.Top + 30 }; this.Controls.Add(_单次圈选窗口); _单次圈选窗口.BringToFront(); _单次圈选窗口.Hide(); _多次圈选窗口 = new F圈选_多次(this.out地图) { Left = this.out地图.Left + 100, Top = this.out地图.Top + 30 }; this.Controls.Add(_多次圈选窗口); _多次圈选窗口.BringToFront(); _多次圈选窗口.Hide(); this.do加载地图.PerformClick(); this.Activate(); }