SYMapPolygon Class Reference

SYMapObject in the shape of a polygon. In order to display the polygon object on the map, the polygon object needs to be added to an SYMapView by calling addMapObject: More...

#import <SYMapObjects.h>

Inheritance diagram for SYMapPolygon:
Collaboration diagram for SYMapPolygon:

Instance Methods

(nonnull instancetype) - initWithGeoCenter:coordinates:
 Initializes a SYMapPolygon instance with the specified SYGeoCoordinates. More...
 
(instancetype) - initWithSdkPolygon: [implementation]
 
- Instance Methods inherited from SYMapObject
(instancetype) - initWithCoordinate:type:payload: [implementation]
 
(Sygic::Map::MapObject *) - sdkMapObject [implementation]
 
- Instance Methods inherited from SYViewObject
(instancetype) - initWithCoordinate:baseType: [implementation]
 
(instancetype) - initWithCoordinate:baseType:payload: [implementation]
 

Properties

NSArray< SYGeoCoordinate * > * vertices
 The SYGeoCoordinate array that comprise the edge of the SYMapPolygon. More...
 
UIColor * centerColor
 The color of polygon center. More...
 
UIColor * borderColor
 The color of polygon border. More...
 
CGFloat centerRadius
 The radius of center part. More...
 
CGFloat borderRadius
 The radius of border part. More...
 
std::shared_ptr< Sygic::Map::MapPolygon > ptrMapPolygon [implementation]
 
- Properties inherited from SYMapObject
NSInteger tag
 An integer that you can use to identify view objects in your application. Default value is 0. More...
 
SYMapObjectType mapObjectType
 Map object type. See the available SYMapObjectTypes. More...
 
NSUInteger zIndex
 Z-index (stacking order) for the SYMapObject. Objects with the highest value are placed at the top of the stacking order. More...
 
BOOL visibility
 Visibility of the SYMapObject. Can be shown or hidden. More...
 
- Properties inherited from SYViewObject
SYGeoCoordinatecoordinate
 Geographical location of the SYViewObject. The meaning of the location for a particular object depends on that object's type. Objects that don't have a location will return nil. The meaning of the location for certain view objects is as follows: More...
 
SYViewObjectType baseType
 Determines which type of this ViewObject it is. More...
 
id< NSCoding > payload
 Optional payload for storing custom data. More...
 

Additional Inherited Members

- Class Methods inherited from SYViewObject
(std::vector< uint8_t >) + serializePayload: [implementation]
 
(id< NSCoding >) + deserializePayload: [implementation]
 

Detailed Description

SYMapObject in the shape of a polygon. In order to display the polygon object on the map, the polygon object needs to be added to an SYMapView by calling addMapObject:

Method Documentation

◆ initWithGeoCenter:coordinates:()

- (nonnull instancetype) initWithGeoCenter: (nonnull SYGeoCoordinate *)  center
coordinates: (nonnull NSArray< SYGeoCoordinate * > *)  coordinates 

Initializes a SYMapPolygon instance with the specified SYGeoCoordinates.

◆ initWithSdkPolygon:()

- (instancetype) initWithSdkPolygon: (std::shared_ptr< Sygic::Map::MapPolygon >)  ptrPolygon
implementation

Property Documentation

◆ borderColor

- (UIColor*) borderColor
readwritenonatomicstrong

The color of polygon border.

◆ borderRadius

- (CGFloat) borderRadius
readwritenonatomicassign

The radius of border part.

◆ centerColor

- (UIColor*) centerColor
readwritenonatomicstrong

The color of polygon center.

◆ centerRadius

- (CGFloat) centerRadius
readwritenonatomicassign

The radius of center part.

◆ ptrMapPolygon

- (shared_ptr<)Sygic:
readwritenonatomicassignimplementation

◆ vertices

- (NSArray<SYGeoCoordinate*>*) vertices
readnonatomicassign

The SYGeoCoordinate array that comprise the edge of the SYMapPolygon.


The documentation for this class was generated from the following file: