Module: KmlFileCache

Provides Cache for Promises representing KmlFiles in current KmlDocument.
Source:

Methods

add(url, filePromise, isRoot)

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.
isRoot Boolean Whether it is the root object for the cache.
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