Marker used to display an icon on a geographical position on a map. The map handles proper placement of icons on the screen as well as panning and rotation. More...
#import <SYMapObjects.h>
Instance Methods | |
(nonnull instancetype) | - initWithCoordinate:image: |
Initializes a SYMapMarker instance with the specified SYGeoCoordinate and UIImage for the displayed image. More... | |
(nonnull instancetype) | - initWithCoordinate:image:payload: |
Initializes a SYMapMarker instance with the specified SYGeoCoordinate and UIImage for the displayed image. More... | |
(instancetype) | - initWithSdkMarker: [implementation] |
![]() | |
(instancetype) | - initWithCoordinate:type:payload: [implementation] |
(Sygic::Map::MapObject *) | - sdkMapObject [implementation] |
![]() | |
(instancetype) | - initWithCoordinate:baseType: [implementation] |
(instancetype) | - initWithCoordinate:baseType:payload: [implementation] |
Properties | |
UIImage * | image |
The image displayed at the marker location. More... | |
CGPoint | anchorPosition |
The relative CGPoint position of the SYMapMarker from its anchored location. Value of 0,0 is top left location of SYMapMarker, 1,1 is bottom right. Default value is 0.5,0.5. More... | |
CGFloat | minZoomLevel |
Minimum zoom level, at which SYMapMarker is displayed. More... | |
CGFloat | maxZoomLevel |
Maximum zoom level, at which SYMapMarker is displayed. More... | |
UIEdgeInsets | clickableAreaInsets |
Clickable area insets, defined by margin values from SYMapMarker.image size. Zero by default. More... | |
std::shared_ptr< Sygic::Map::MapMarker > | ptrMapMarker [implementation] |
![]() | |
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... | |
![]() | |
SYGeoCoordinate * | coordinate |
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 | |
![]() | |
(std::vector< uint8_t >) | + serializePayload: [implementation] |
(id< NSCoding >) | + deserializePayload: [implementation] |
Marker used to display an icon on a geographical position on a map. The map handles proper placement of icons on the screen as well as panning and rotation.
- (nonnull instancetype) initWithCoordinate: | (nonnull SYGeoCoordinate *) | coordinate | |
image: | (nonnull UIImage *) | image | |
Initializes a SYMapMarker instance with the specified SYGeoCoordinate and UIImage for the displayed image.
- (nonnull instancetype) initWithCoordinate: | (nonnull SYGeoCoordinate *) | coordinate | |
image: | (nonnull UIImage *) | image | |
payload: | (nullable id< NSCoding >) | payload | |
Initializes a SYMapMarker instance with the specified SYGeoCoordinate and UIImage for the displayed image.
payload | Optional data payload that can be stored in SYMapMarker. |
|
implementation |
|
readwritenonatomicassign |
The relative CGPoint position of the SYMapMarker from its anchored location. Value of 0,0 is top left location of SYMapMarker, 1,1 is bottom right. Default value is 0.5,0.5.
|
readwritenonatomicassign |
Clickable area insets, defined by margin values from SYMapMarker.image size. Zero by default.
|
readwritenonatomicstrong |
The image displayed at the marker location.
|
readwritenonatomicassign |
Maximum zoom level, at which SYMapMarker is displayed.
|
readwritenonatomicassign |
Minimum zoom level, at which SYMapMarker is displayed.
|
readwritenonatomicassignimplementation |