Blink marker ( WindowsForm)

May 5, 2010 at 2:59 PM
Edited May 5, 2010 at 4:49 PM

Hello, i want to ask how to blink marker ?

 

Idea:

  GMapMarker blinkMarker;
    Timer timerBlink;
    int count = 5;
    bool blink = true;
    protected void BlinkMarker(GMapMarker_Vehicle gMapMarker_Vehicle)
    {     
       if (gMapMarker_Vehicle != null)
       {
           if (timerBlink == null)
               CreateTimerBlink();
           blinkMarker = gMapMarker_Vehicle;
           gMapMarker_Vehicle.Visible = true;          
       }
       else return;
       timerBlink.Enabled = true;
       count = 5;
       blink = false;      
    }  
      
     void timerBlink_Tick(object sender, EventArgs e)
    {
      if (count >= 0)
      {
        count--;
        timerBlink.Enabled = true;   
        blinkMarker.Visible=blink;          
        this.InvalidateMap();
        blink = !blink;        
      }
      else
      {
        timerBlink.Enabled = false;    
        blinkMarker.Visible = true;
        count = 5;
      }
    }

May 5, 2010 at 7:21 PM

yeah, something like that, you can change color instead of visibility too