# NSValue(MGLFillStyleLayerAdditions)

    @interface NSValue (MGLFillStyleLayerAdditions)

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

### Working with Fill Style Layer Attribute Values

- `+valueWithMGLFillTranslationAnchor:`

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

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLFillTranslationAnchor:
          (MGLFillTranslationAnchor)fillTranslationAnchor;

  Swift

      convenience init(mglFillTranslationAnchor fillTranslationAnchor: MGLFillTranslationAnchor)

  #### Parameters

  `fillTranslationAnchor` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLFillTranslationAnchorValue`

  The `MGLFillTranslationAnchor` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic)
          MGLFillTranslationAnchor MGLFillTranslationAnchorValue;

  Swift

      var mglFillTranslationAnchorValue: MGLFillTranslationAnchor { get }

  View Source on GitHub