Provides Cache for Promises representing KmlFiles in current KmlDocument.
- Source:
Methods
add(url, filePromise)
Adds new KmlFile to the KmlDocument represented by this Cache.
Parameters:
Name | Type | Description |
---|---|---|
url |
String | Url of the file for internal mapping |
filePromise |
Promise | Promise of the file to be stored. |
- Source:
retrieve(url) → {Promise|null}
Retrieve relevant KmlFile from the cache representing this Document.
Parameters:
Name | Type | Description |
---|---|---|
url |
String | Url of the file to retrieve from this cache. |
- Source:
Returns:
- Type
- Promise | null