isSourceLoaded method

bool isSourceLoaded(
  1. String id
)

Returns a Boolean indicating whether the source is loaded.

@param {string} id The ID of the source to be checked. @returns {boolean} A Boolean indicating whether the source is loaded. @example var sourceLoaded = map.isSourceLoaded('bathymetry-data');

Implementation

bool isSourceLoaded(String id) => jsObject.isSourceLoaded(id);