Class YMKIconStyle

The style of created icons.

Class Methods

Properties

anchor

An anchor is used to alter image placement.

flat

If true, the icon is displayed on the map surface.

rotationType

Icon rotation type.

scale

Scale of the icon.

tappableArea

Tappable area on the icon.

visible

Sets icon visibility.

zIndex

Z-index of the icon, relative to the placemark's z-index.

Method Detail

+iconStyleWithAnchor:rotationType:zIndex:flat:visible:scale:tappableArea:

+ (nonnull YMKIconStyle *)iconStyleWithAnchor:(nullable NSValue *)anchor
                                 rotationType:(nullable NSNumber *)rotationType
                                       zIndex:(nullable NSNumber *)zIndex
                                         flat:(nullable NSNumber *)flat
                                      visible:(nullable NSNumber *)visible
                                        scale:(nullable NSNumber *)scale
                                 tappableArea:(nullable YMKRect *)tappableArea 

Property Detail

anchor

(copy, readwrite) NSValue * anchor

An anchor is used to alter image placement.

Normalized: (0.0f, 0.0f) denotes the top left image corner; (1.0f, 1.0f) denotes bottom right. Default is (0.5f, 0.5f).

Optional property, can be null.

flat

(copy, readwrite) NSNumber * flat

If true, the icon is displayed on the map surface.

If false, the icon is displayed on the screen surface. Default: false.

Optional property, can be null.

rotationType

(copy, readwrite) NSNumber * rotationType

Icon rotation type.

Default: NoRotation.

Optional property, can be null.

scale

(copy, readwrite) NSNumber * scale

Scale of the icon.

Default: 1.0f.

Optional property, can be null.

tappableArea

(strong, readwrite) YMKRect * tappableArea

Tappable area on the icon.

Coordinates are measured the same way as anchor coordinates. If rect is empty or invalid, the icon will not process taps. By default, icons process all taps.

Optional property, can be null.

visible

(copy, readwrite) NSNumber * visible

Sets icon visibility.

Default: true.

Optional property, can be null.

zIndex

(copy, readwrite) NSNumber * zIndex

Z-index of the icon, relative to the placemark's z-index.

Optional property, can be null.