GMTCMutableMarkerStyleOptions Class Reference

GMTCMutableMarkerStyleOptions Class Reference

Overview

Mutable data object that holds marker's customization properties.

Note:
When applying the style options for a marker with the `GMTCCustomizableMarkerTypeTripVehicle` type, you must explicitly set the `isFlat` property to YES. Otherwise, when the map is rotated in 3D mode, the vehicle heading won't be aligned with the rotated direction.

Inherits GMTCMarkerStyleOptions.

Public Member Functions

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

Properties

CGPoint groundAnchor
 The ground anchor for the marker.
BOOL isVisible
 Boolean that determines the visibility of the marker.
UIView * iconView
 Marker view to render.
UIImage * icon
 The icon to display for the marker.
int32_t zIndex
 The z-index specifies the stack order of this marker.
BOOL isFlat
 Whether the marker is flat against the map or a billboard facing the camera.

Member Function Documentation

- (instancetype) init

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


Property Documentation

- (CGPoint) groundAnchor [read, write, assign]

The ground anchor for the marker.

Defaults to {0.5f, 0.5f}

Implements GMTCMarkerStyleOptions.

- (BOOL) isVisible [read, write, assign]

Boolean that determines the visibility of the marker.

Defaults to YES.

Implements GMTCMarkerStyleOptions.

- (UIView*) iconView [read, write, assign]

Marker view to render.

If left nil, defaults to the icon property value.

Implements GMTCMarkerStyleOptions.

- (UIImage*) icon [read, write, assign]

The icon to display for the marker.

If there is no iconView, and icon is left nil, the marker's default icon is used.

Implements GMTCMarkerStyleOptions.

- (int32_t) zIndex [read, write, assign]

The z-index specifies the stack order of this marker.

Defaults to 0.

Implements GMTCMarkerStyleOptions.

- (BOOL) isFlat [read, write, assign]

Whether the marker is flat against the map or a billboard facing the camera.

Defaults to NO.

Implements GMTCMarkerStyleOptions.