Called when the element bound to this directive is clicked. Use the feature helper to export the feature(s) depending on the format(s) available(s). If there's only one, the call to the export method is direct, otherwise a drop-down menu is show to let the user choose the format of the export. Finally, if there's only one feature in the collection to export and there's more than one format set, some formats may not support the type of geometry. If that's the case, then disable each format item in the drop-down menu that doesn't support the type of geometry.
Generated using TypeDoc
Cleanup event listeners and remove the menu from DOM, if any.