Exemple #1
0
 /// <summary>
 /// Clear this instance
 /// </summary>
 public override void Clear()
 {
     if (marker != null)
     {
         foreach (GMapOverlay overlay in Global.control.Overlays)
         {
             if (overlay.Markers.Contains(marker))
             {
                 overlay.Markers.Remove(marker);
                 marker = null;
                 break;
             }
         }
     }
 }
Exemple #2
0
        public override void Show()
        {
            if (marker == null)
            {
                base.Show();

                marker = new GMarkerEx(PointsArray[0], new Bitmap(AppDomain.CurrentDomain.BaseDirectory + property.ImageFile));
                marker.IsHitTestVisible       = true;
                marker.ToolTipMode            = property.ToolTipMode;
                marker.ToolTipText            = property.Name;
                property.ehLableValueChanged += new EHLableValueChanged(OnLableValueChanged);
                property.LocalPosition        = PointsArray[0];
                property.IsLoad = true;
                Global.control.Overlays[Overlay].Markers.Add(marker);
                IsZoomVisible((int)Global.control.Zoom);
            }
        }