marker's id

Topics: Help
Jan 7, 2012 at 6: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 11:22 AM

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)