Reference Source
public class | source

CityJSONDefaultDataSource

Default data access strategy for CityJSONLoaderPlugin.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

getCityJSON(src: String | Number, ok: Function, error: Function)

Gets the contents of the given CityJSON file.

Public Constructors

public constructor() source

Public Methods

public getCityJSON(src: String | Number, ok: Function, error: Function) source

Gets the contents of the given CityJSON file.

Params:

NameTypeAttributeDescription
src String | Number

Path or ID of an CityJSON file.

ok Function

Callback fired on success, argument is the CityJSON JSON.

error Function

Callback fired on error.