GMTCMarkerStyleOptions Class Reference

GMTCMarkerStyleOptions Class Reference

Overview

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

Inherits GMTSImmutableData.

Inherited by GMTCMutableMarkerStyleOptions.

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, assign]

The ground anchor for the marker.

Defaults to {0.5f, 0.5f}

Implemented in GMTCMutableMarkerStyleOptions.

- (BOOL) isVisible [read, assign]

Boolean that determines the visibility of the marker.

Defaults to YES.

Implemented in GMTCMutableMarkerStyleOptions.

- (UIView*) iconView [read, assign]

Marker view to render.

If left nil, falls back to the icon property instead.

Implemented in GMTCMutableMarkerStyleOptions.

- (UIImage*) icon [read, assign]

The icon to display for the marker.

Implemented in GMTCMutableMarkerStyleOptions.

- (int32_t) zIndex [read, assign]

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

Defaults to 0.

Implemented in GMTCMutableMarkerStyleOptions.

- (BOOL) isFlat [read, assign]

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

Defaults to NO.

Implemented in GMTCMutableMarkerStyleOptions.