Class: FileDialog

OSDPaperjsAnnotation.FileDialog(atk, opts)

The FileDialog class provides options for saving and loading feature collections as GeoJSON, exporting them as SVG or PNG files, and storing them in local storage. It is designed to work with the AnnotationToolKit (atk) object to manage annotations.

Constructor

new FileDialog(atk, opts)

Creates an instance of the FileDialog class, which allows users to save and load feature collections in various formats.
Parameters:
Name Type Description
atk any The AnnotationToolKit object.
opts object Additional options for the file dialog.
Source:

Methods

hide()

Hides the file dialog.
Source:

show()

Shows the file dialog.
Source:

toggle()

Toggles the visibility of the file dialog.
Source: