YMKIconStyle

class YMKIconStyle : NSObject

The style of created icons.

Summary

Class methods

 init(anchor: NSValue?,
 rotationType: NSNumber?,
      zIndex: NSNumber?,
        flat: NSNumber?,
     visible: NSNumber?,
       scale: NSNumber?,
 tappableArea: YMKRect?)

Properties

@NSCopying var anchor: NSValue? { get set }
An anchor is used to alter image placement

@NSCopying var rotationType: NSNumber? { get set }
Icon rotation type

@NSCopying var zIndex: NSNumber? { get set }
Z-index of the icon, relative to the placemark's z-index

@NSCopying var flat: NSNumber? { get set }
If true, the icon is displayed on the map surface

@NSCopying var visible: NSNumber? { get set }
Sets icon visibility

@NSCopying var scale: NSNumber? { get set }
Scale of the icon

var tappableAreaYMKRect? { get set }
Tappable area on the icon

Class methods

init(anchor:rotationType:zIndex:flat:visible:scale:tappableArea:)

 init(anchor: NSValue?,
 rotationType: NSNumber?,
      zIndex: NSNumber?,
        flat: NSNumber?,
     visible: NSNumber?,
       scale: NSNumber?,
 tappableArea: YMKRect?)


Properties

anchor

@NSCopying var anchor: NSValue? { get set }

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

@NSCopying var rotationType: NSNumber? { get set }

Icon rotation type. Default: NoRotation.

Optional field, can be nil.


zIndex

@NSCopying var zIndex: NSNumber? { get set }

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

Optional field, can be nil.


flat

@NSCopying var flat: NSNumber? { get set }

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

@NSCopying var visible: NSNumber? { get set }

Sets icon visibility. Default: true.

Optional field, can be nil.


scale

@NSCopying var scale: NSNumber? { get set }

Scale of the icon. Default: 1.0f.

Optional field, can be nil.


tappableArea

var tappableArea: YMKRect? { get set }

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.