getLayer method

dynamic getLayer(
  1. String id
)

Return the style layer object with the given id.

@param {string} id - id of the desired layer @returns {?Object} a layer, if one with the given id exists

Implementation

dynamic getLayer(String id) => jsObject.getLayer(id);