Add TAG property to Markers

Jan 23, 2009 at 7:40 AM
Can you please add a TAG propery of type OBJECT to the markers , so we can store any reference info ,

Thanks,
Paul.

Jan 23, 2009 at 7:59 AM
You could subclass the Marker class for your own purpose:

 

public class myMarker : GMapNET.Marker
{
    private object _tag;

 

 

    public myMarker(PointLatLng pos, MarkerType type, MarkerColor color): base(pos, type, color)
    {}

 

 

    public object Tag
    {
        
get { return _tag; }
        
set { _tag = value; }
    }

 

}

Coordinator
Jan 23, 2009 at 8:23 AM
good point ceriksson!, but i add it for sure ;}