# NSValue(MGLLineStyleLayerAdditions)

    @interface NSValue (MGLLineStyleLayerAdditions)

Methods for wrapping an enumeration value for a style layer attribute in an `MGLLineStyleLayer` object and unwrapping its raw value.

### Working with Line Style Layer Attribute Values

- `+valueWithMGLLineCap:`

  Creates a new value object containing the given `MGLLineCap` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLLineCap:(MGLLineCap)lineCap;

  Swift

      convenience init(mglLineCap lineCap: MGLLineCap)

  #### Parameters

  `lineCap` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLLineCapValue`

  The `MGLLineCap` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLLineCap MGLLineCapValue;

  Swift

      var mglLineCapValue: MGLLineCap { get }

  View Source on GitHub
- `+valueWithMGLLineJoin:`

  Creates a new value object containing the given `MGLLineJoin` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLLineJoin:(MGLLineJoin)lineJoin;

  Swift

      convenience init(mglLineJoin lineJoin: MGLLineJoin)

  #### Parameters

  `lineJoin` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLLineJoinValue`

  The `MGLLineJoin` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic) MGLLineJoin MGLLineJoinValue;

  Swift

      var mglLineJoinValue: MGLLineJoin { get }

  View Source on GitHub
- `+valueWithMGLLineTranslationAnchor:`

  Creates a new value object containing the given `MGLLineTranslationAnchor` enumeration.

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLLineTranslationAnchor:
          (MGLLineTranslationAnchor)lineTranslationAnchor;

  Swift

      convenience init(mglLineTranslationAnchor lineTranslationAnchor: MGLLineTranslationAnchor)

  #### Parameters

  `lineTranslationAnchor` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLLineTranslationAnchorValue`

  The `MGLLineTranslationAnchor` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic)
          MGLLineTranslationAnchor MGLLineTranslationAnchorValue;

  Swift

      var mglLineTranslationAnchorValue: MGLLineTranslationAnchor { get }

  View Source on GitHub