new L()
Root class for all Leaflet-related functionalities, extended with custom methods and properties.
Classes
Methods
-
static fileListLoader(fileListopt, optionsopt) → {L.FileListLoader}
-
A factory function that instantiates a
FileListLoader
object given theFileList
and options.Parameters:
Name Type Attributes Description fileList
FileList <optional>
The list of files to load. See FileList. If
fileList
argument is specified, thenload
method is called immediately.options
Object <optional>
Options for file reading.
-
static fileReader(fileopt, optionsopt) → {L.FileReader}
-
Factory function to instantiate a
L.FileReader
object. Instantiates aL.FileReader
object given theFile
/Blob
and optionally an object literal withoptions
. Note: it's possible to specifyreadAs
directly instead of fulloptions
object.Parameters:
Name Type Attributes Description file
Blob <optional>
The file or blob to be read. Optional.
options
Object | string <optional>
Options for file reading or a string representing the read method.
Example
var reader = L.fileReader(file, { readAs: 'readAsText' });