MapKit Mobile SDK

MMKBalloonGeometry

class MMKBalloonGeometry : NSObject

Undocumented

Summary

Class methods

 init(anchor: MMKBalloonAnchor,
       width: Float,
      height: Float,
 imageAnchor: CGPoint,
 contentRect: MMKRect,
 balloonRect: MMKRect)

Properties

var anchorMMKBalloonAnchor { get }
Undocumented

var width: Float { get }
Total balloon image size

var height: Float { get }
Undocumented

var imageAnchor: CGPoint { get }
Anchor inside image rect

var contentRectMMKRect { get }
area with main information, except leg/borders

var balloonRectMMKRect { get }
area with balloon, except leg, shadows, etc

Class methods

init(anchor:width:height:imageAnchor:contentRect:balloonRect:)

 init(anchor: MMKBalloonAnchor,
       width: Float,
      height: Float,
 imageAnchor: CGPoint,
 contentRect: MMKRect,
 balloonRect: MMKRect)


Properties

anchor

var anchor: MMKBalloonAnchor { get }

Undocumented


width

var width: Float { get }

Total balloon image size


height

var height: Float { get }

Undocumented


imageAnchor

var imageAnchor: CGPoint { get }

Anchor inside image rect. Coordinates from 0 to 1 are inside the image.


contentRect

var contentRect: MMKRect { get }

area with main information, except leg/borders


balloonRect

var balloonRect: MMKRect { get }

area with balloon, except leg, shadows, etc.