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
FileListLoaderobject given theFileListand options.Parameters:
Name Type Attributes Description fileListFileList <optional>
The list of files to load. See FileList. If
fileListargument is specified, thenloadmethod is called immediately.optionsObject <optional>
Options for file reading.
-
static fileReader(fileopt, optionsopt) → {L.FileReader}
-
Factory function to instantiate a
L.FileReaderobject. Instantiates aL.FileReaderobject given theFile/Bloband optionally an object literal withoptions. Note: it's possible to specifyreadAsdirectly instead of fulloptionsobject.Parameters:
Name Type Attributes Description fileBlob <optional>
The file or blob to be read. Optional.
optionsObject | string <optional>
Options for file reading or a string representing the read method.
Example
var reader = L.fileReader(file, { readAs: 'readAsText' });