public UInt64 添加麻点图(List <M经纬度> __点列表, Image __图片, string __标题 = null, E标题显示方式 __标题显示方式 = E标题显示方式.OnMouseOver, string __图层名称 = null) { if (this.InvokeRequired) { var __信号量 = this.BeginInvoke(new Func <List <M经纬度>, Image, string, E标题显示方式, string, UInt64>(添加麻点图), __点列表, __图片, __标题, __标题显示方式, __图层名称); __信号量.AsyncWaitHandle.WaitOne(); return((UInt64)this.EndInvoke(__信号量)); } var __图层 = 获取图层(__图层名称); var __点缓存 = new List <UInt64>(); __点列表.ForEach(q => __点缓存.Add(添加点(__图层, q, __图片, __标题, false, null, __标题显示方式))); var __标识 = _所有覆盖物[__图层].标识++; _所有覆盖物[__图层].麻点图集[__标识] = __点缓存; return(__标识); }
public UInt64 添加点(Point __点, Bitmap __图片, string __标题, object __绑定对象, E标题显示方式 __标题显示方式 = E标题显示方式.OnMouseOver) { return(base.添加点(转换(__点), __图片, __标题, __绑定对象, null, __标题显示方式)); }
private UInt64 添加点(GMapOverlay __图层, M经纬度 __点, Image __图片, string __标题 = null, bool __允许交互 = true, object __绑定对象 = null, E标题显示方式 __标题显示方式 = E标题显示方式.OnMouseOver, bool __图标偏移 = true) { var __GPS = GPS转换(__点); //GMapMarker __图标 = new GMarkerGoogle(__GPS, GMarkerGoogleType.blue_small); GMapMarker __图标 = new GMarkerGoogle(__GPS, __图片); __图标.ToolTipText = __标题; __图标.ToolTipMode = (MarkerTooltipMode)(int)__标题显示方式; __图标.Tag = __绑定对象; if (__图标偏移) { __图标.Offset = new Point(-__图片.Width / 2 + 1, -__图片.Height + 1); } __图标.IsHitTestVisible = __允许交互; __图层.Markers.Add(__图标); var __标识 = _所有覆盖物[__图层].标识++; _所有覆盖物[__图层].点集[__标识] = __图标; return(__标识); }
public UInt64 添加点(M经纬度 __点, Image __图片, string __标题 = null, object __绑定对象 = null, string __图层名称 = null, E标题显示方式 __标题显示方式 = E标题显示方式.OnMouseOver, bool __图标偏移 = false) { if (this.InvokeRequired) { var __信号量 = this.BeginInvoke(new Func <M经纬度, Image, string, object, string, E标题显示方式, bool, UInt64>(添加点), __点, __图片, __标题, __绑定对象, __图层名称, __标题显示方式, __图标偏移); __信号量.AsyncWaitHandle.WaitOne(); return((UInt64)this.EndInvoke(__信号量)); } return(添加点(获取图层(__图层名称), __点, __图片, __标题, __绑定对象 != null || __标题 != null, __绑定对象, __标题显示方式, __图标偏移)); }