Esempio n. 1
0
 private void RefreshToolTip(MarkerToolTip tip)
 {
     if (!tip.ViewRect.IsEmpty)
     {
         MapObject.Invalidate(tip.ViewRect);
         MapObject.Update();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 注册ToolTip事件
 /// </summary>
 private void AddToolTipEvent(MarkerToolTip tip)
 {
     if (tip != null)
     {
         if (this.ToolTipCloseed != null)
         {
             tip.ToolTipClosed += this.ToolTipCloseed;
         }
         if (ToolTipOpened != null)
         {
             tip.ToolTipOpened += this.ToolTipOpened;
         }
     }
 }