Get all marker of an element

How can I get all markers of an element?
something like
canvas.getMarker(id);

What do you need that functionality for?