Marker's category and weight can be defined using the constructor.