addSourceType method

dynamic addSourceType(
  1. String name,
  2. dynamic sourceType,
  3. Function callback
)

Adds a/// custom source type*(#Custom Sources), making it available for use with {@link MapboxMap#addSource}. @private @param {string} name The name of the source type; source definition objects use this name in the {type: ...} field. @param {Function} SourceType A {@link Source} constructor. @param {Function} callback Called when the source type is ready or with an error argument if there is an error.

Implementation

addSourceType(String name, dynamic sourceType, Function callback) =>
    jsObject.addSourceType(name, sourceType, callback);