Class: MapboxUtil

MapboxUtil

Utilities from mapbox or implementations of mapbox specifications. It is static and should not be initiated.

Static Methods

  • (static) exports.isFunctionDefinition(obj) [source]

  • Check if object is a definition of function type
    Parameter Type Description
    obj Object object
    Returns:
    Boolean:
  • (static) exports.hasFunctionDefinition(obj) [source]

  • Check if obj's properties has function definition
    Parameter Type Description
    obj Object object to check
    Returns:
    Boolean:
  • (static) exports.loadFunctionTypes(parameters) [source]

  • Load function types defined in object
    Parameter Type Description
    parameters Array.<Object> parameters
    Returns:
    Object: loaded object
  • (static) exports.getFunctionTypeResources(t) [source]

  • Get external resources in the function type
    Parameter Type Description
    t Object Function type definition
    Returns:
    Array.<String>: resouces