layerWithIdentifier method

MLNStyleLayer? layerWithIdentifier(
  1. NSString identifier
)

Returns a style layer with the given identifier in the current style.

@return An instance of a concrete subclass of MLNStyleLayer associated with the given identifier, or nil if the current style contains no such style layer.

Implementation

MLNStyleLayer? layerWithIdentifier(objc.NSString identifier) {
  final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, _sel_layerWithIdentifier_, identifier.ref.pointer);
  return _ret.address == 0 ? null : MLNStyleLayer.castFromPointer(_ret, retain: true, release: true);
}