marker's id

Topics: Help
Jan 7, 2012 at 7:02 PM

hey everyone :)

can anyone help me on this

i need to locate 4 cars in my map using their id , so everytime the car send latitude and longitude , its marker move to the new location

how to know the id of marker that i have to move

srry for my english

 

Jan 9, 2012 at 12:22 PM

you should make a new marker class that inherits whatever marker class you are currently using.  add an ID property.  something like...

using GMap.NET;
using GMap.NET.WindowsForms;
using GMap.NET.WindowsForms.Markers;

public class GMapMarkerWithID : GMapMarkerGoogleRed
{
    public int ID {get; set; }

    public GMapMarkerWithID(PointLatLng p)
        : base(p)
    {
    }
}