YMKIconStyle

@interface YMKIconStyle : NSObject

The style of created icons.

Summary

Class methods

+ (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;

Properties

@property (nonatomic, copy, readwrite, nullable) NSValue *anchor;
An anchor is used to alter image placement

@property (nonatomic, copy, readwrite, nullable) NSNumber *rotationType;
Icon rotation type

@property (nonatomic, copy, readwrite, nullable) NSNumber *zIndex;
Z-index of the icon, relative to the placemark's z-index

@property (nonatomic, copy, readwrite, nullable) NSNumber *flat;
If true, the icon is displayed on the map surface

@property (nonatomic, copy, readwrite, nullable) NSNumber *visible;
Sets icon visibility

@property (nonatomic, copy, readwrite, nullable) NSNumber *scale;
Scale of the icon

@property (nonatomic, strong, readwrite, nullable) YMKRect *tappableArea;
Tappable area on the icon

Class methods

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;


Properties

anchor

@property (nonatomic, copy, readwrite, nullable) 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 field, can be nil.


rotationType

@property (nonatomic, copy, readwrite, nullable) NSNumber *rotationType;

Icon rotation type. Default: NoRotation.

Optional field, can be nil.


zIndex

@property (nonatomic, copy, readwrite, nullable) NSNumber *zIndex;

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

Optional field, can be nil.


flat

@property (nonatomic, copy, readwrite, nullable) 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 field, can be nil.


visible

@property (nonatomic, copy, readwrite, nullable) NSNumber *visible;

Sets icon visibility. Default: true.

Optional field, can be nil.


scale

@property (nonatomic, copy, readwrite, nullable) NSNumber *scale;

Scale of the icon. Default: 1.0f.

Optional field, can be nil.


tappableArea

@property (nonatomic, strong, readwrite, nullable) 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 field, can be nil.


Предыдущая
Следующая