Number of objects in layer not marked with state MergableObjectState.Unchanged.
Number of objects with conflicts in the layer. A conflict occurs if there is a mismatch between the local and the remote representation of the layer. Conflicts can only occur when Layer.saveAndMerge or Layer.loadAndMerge is called.
true if a layer exists and if Layer.saveAndMerge or Layer.loadAndMerge
has been called successfully at least once.
Get the objects currently in the layer
true if user has permission to update the layer.
Get the version of the currently loaded layer. [-1] if no layer has yet been loaded.
Creates a new markup sheet and adds it to the layer api.
The id for the new sheet (has to be unique).
Optionalproperties: Map<string, MarkupProperty>Properties for the sheet.
The new markup sheet.
Clear the layer.
Conflicts in the layer. A conflict occurs if there is a mismatch between the local and the remote representation of a object in the layer. Conflicts can only occur when Layer.saveAndMerge or Layer.loadAndMerge is called.
Get a markup sheet based on id.
Id of the markup sheet you are trying to get.
The markup sheet if it exists, undefined if no markup sheet of that id exists.
Loads all existing (remote) objects from the backend and attempts to merge them into objects. This may result in conflicts between the local and the remote objects. A typical example is if the same object has been modified locally but also remotely (in the backend.)
Save the sheets using the layer api.
If true then the last version will be overwritten.
Number of conflicts, if > 0 then save was not successfull.
Array of states used to filter out sheets, default is [MergableObjectState.Added, MergableObjectState.Modified, MergableObjectState.Unchanged].
Collection of all the MarkupSheet2D instances that have been created locally and loaded via the markup API.