Skip to main content

Exposed Methods

In this section, you will find a list of methods that can be accessed and called within your code. The examples provided below demonstrate how to use these methods.

To use the save() method, you can use the following code:

const response = await document.querySelector("#das-map").save();

The clear() method does not require any parameters either. To use it, simply call the method as follows:

document.querySelector("#das-map").clear();
MethodDescriptionParametersReturn Value
save()

Saves the user-selected (highlighted) cadastres on the map.

Same behaviour as clicking the save button within the component.

nonePromise<SaveEventDetail>
clear()

Remove all the user-selected (highlighted) cadastres on the map. The aggregations for the total number of selected cadastres and the total area will be set back to 0.

Same behaviour as clicking the clear button within the component.

nonevoid