# GoogleRidesharingConsumer Framework Reference

# GMTCMarkerStyleOptions

    @interface GMTCMarkerStyleOptions
        : https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCImmutableData.html <NSCopying, NSMutableCopying>

Data object that holds custom marker properties from the client application.
- `


  ### [groundAnchor](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMarkerStyleOptions#/c:objc(cs)GMTCMarkerStyleOptions(py)groundAnchor)


  ` The ground anchor for the marker. Defaults to {0.5f, 0.5f}

  #### Declaration

  Swift

      var groundAnchor: CGPoint { get }

  Objective-C

      @property (nonatomic, readonly) CGPoint groundAnchor;

- `


  ### [isVisible](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMarkerStyleOptions#/c:objc(cs)GMTCMarkerStyleOptions(py)isVisible)


  ` Boolean that determines the visibility of the marker. Defaults to YES.

  #### Declaration

  Swift

      var isVisible: Bool { get }

  Objective-C

      @property (nonatomic, readonly) BOOL isVisible;

- `


  ### [iconView](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMarkerStyleOptions#/c:objc(cs)GMTCMarkerStyleOptions(py)iconView)


  ` Marker view to render. If left nil, falls back to the icon property instead.

  #### Declaration

  Swift

      var iconView: UIView? { get }

  Objective-C

      @property (nonatomic, readonly, nullable) UIView *iconView;

- `


  ### [icon](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMarkerStyleOptions#/c:objc(cs)GMTCMarkerStyleOptions(py)icon)


  ` The icon to display for the marker.

  #### Declaration

  Swift

      var icon: UIImage? { get }

  Objective-C

      @property (nonatomic, readonly, nullable) UIImage *icon;

- `


  ### [zIndex](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMarkerStyleOptions#/c:objc(cs)GMTCMarkerStyleOptions(py)zIndex)


  ` The z-index specifies the stack order of this marker. Defaults to 0.

  #### Declaration

  Swift

      var zIndex: Int32 { get }

  Objective-C

      @property (nonatomic, readonly) int32_t zIndex;

- `


  ### [isFlat](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMarkerStyleOptions#/c:objc(cs)GMTCMarkerStyleOptions(py)isFlat)


  ` Whether the marker is flat against the map or a billboard facing the camera. Defaults to NO.

  #### Declaration

  Swift

      var isFlat: Bool { get }

  Objective-C

      @property (nonatomic, readonly) BOOL isFlat;

- `


  ### [-init](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMarkerStyleOptions#/c:objc(cs)GMTCMarkerStyleOptions(im)init)


  ` Initializes the object with default values: `groundAnchor:{0.5f, 0.5f}`, `isVisible:YES`,
  `iconView:nil`, `icon:nil`, `zIndex:0`, `isFlat:NO`.

  #### Declaration

  Swift

      init()

  Objective-C

      - (nonnull instancetype)init;