Constructor
new CsvLayer(config, cache, id)
Set all properties for the layer based on the options object.
Parameters:
Name | Type | Description |
---|---|---|
config |
object | |
cache |
object | |
id |
string |
- Source:
Methods
reloadFile(file, identifier)
Reload the data from a file or a url
Parameters:
Name | Type | Description |
---|---|---|
file |
File | string | file or url |
identifier |
string | optionally override the identifier |
- Source:
(static) createLayers(file) → {Promise}
Parameters:
Name | Type | Description |
---|---|---|
file |
string | File | File object or path to a file |
- Source:
Returns:
array of layers
- Type
- Promise
(static) generateFileIdentifier(file) → {string}
Parameters:
Name | Type | Description |
---|---|---|
file |
string | File | File object or path to a file |
- Source:
Returns:
identifier
- Type
- string
(static) parseData(file, identifier) → {Promise}
Parameters:
Name | Type | Description |
---|---|---|
file |
string | File | File object or path to a file |
identifier |
string |
- Source:
Returns:
dataframe
- Type
- Promise
(static) requestFileUpload(fileId)
open a file upload dialog and reload the content for each layer
containing the same fileIdentifier
Parameters:
Name | Type | Description |
---|---|---|
fileId |
string | override the identifier to ignore changes to the file |
- Source: