# NSValue(MGLHillshadeStyleLayerAdditions)

    @interface NSValue (MGLHillshadeStyleLayerAdditions)

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

### Working with Hillshade Style Layer Attribute Values

- `+valueWithMGLHillshadeIlluminationAnchor:`

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

  #### Declaration

  Objective-C

      + (nonnull instancetype)valueWithMGLHillshadeIlluminationAnchor:
          (MGLHillshadeIlluminationAnchor)hillshadeIlluminationAnchor;

  Swift

      convenience init(mglHillshadeIlluminationAnchor hillshadeIlluminationAnchor: MGLHillshadeIlluminationAnchor)

  #### Parameters

  `hillshadeIlluminationAnchor` | The value for the new object.

  #### Return Value

  A new value object that contains the enumeration value.

  View Source on GitHub
- `MGLHillshadeIlluminationAnchorValue`

  The `MGLHillshadeIlluminationAnchor` enumeration representation of the value.

  #### Declaration

  Objective-C

      @property (readonly, atomic)
          MGLHillshadeIlluminationAnchor MGLHillshadeIlluminationAnchorValue;

  Swift

      var mglHillshadeIlluminationAnchorValue: MGLHillshadeIlluminationAnchor { get }

  View Source on GitHub