Class: KmlRemoteFile

KmlRemoteFile(options)

new KmlRemoteFile(options)

Creates representation of KmlRemoteFile. In order to load an object it is necessary to run get function on created object.
Parameters:
Name Type Description
options Object
Properties
Name Type Description
ajax Boolean If we should use plain AJAX
zip Boolean If we are downloading kmz
responseType String Optional responseType applied in specific circumstances for the kmz
Source:

Methods

ajax(url, options) → {Promise}

Retrieves the data from remote server.
Parameters:
Name Type Description
url String Url to query for data
options Object
Properties
Name Type Description
responseType String If set, rewrites default responseType.
Source:
Returns:
Promise of the data.
Type
Promise

get() → {Promise}

It retrieves the current file. Usually it is used only once, but it can be used multiple times.
Source:
Returns:
Type
Promise