This file provides utilities for handling files in an environment-independent way, including functions to save files and wrappers around the FileReader API to integrate with Leaflet's event system.
Methods
-
private, inner saveAs(data, filenameopt, dataTypeopt)
-
Saves data as a file with a specified filename and data type.
Parameters:
Name Type Attributes Description datastring | Blob | BlobPart | Array.<BlobPart> The data to be saved.
filenamestring <optional>
The name of the file to save.
dataTypestring <optional>
The MIME type of the file, used to specify the file format.