Delete Markers?

Is it possible to delete/clear markers? In the same way you can clear overlays.

In the same vein of questions: Is there any guidance on which activities are “heavy” vs just refreshing the entire BPMN from scratch (importXML + various updates)

Hi @StephenOTT, sorry for not getting back to you earlier.

Is it possible to delete/clear markers?

What do you refer to as markers? Add a code snippet / an example and we’ll be better able to understand what exactly you’d like to achieve.

Is there any guidance on which activities are “heavy” vs just refreshing the entire BPMN from scratch (importXML + various updates)

No. (Re-)import is always costly. Updating is cheap. Exporting is a little costly.

@nikku marker:

await viewer.importXML(diagramXML);

var canvas = viewer.get('canvas');

canvas.addMarker('UserTask_1', 'highlight');

@StephenOTT remove marker:

canvas.removeMarker('UserTask_1', 'highlight');