Traffic sign can be displayed on a geographical position on a map or on a constant position on screen. In order to display the object on the map, the object needs to be added to an SYMapView by calling addMapObject:. More...
#import <SYMapObjects.h>
Instance Methods | |
(nonnull instancetype) | - initWithCoordinate: |
Initializes a SYMapTrafficSign instance with the specified SYGeoCoordinate geographical position. More... | |
(nonnull instancetype) | - initWithCoordinate:payload: |
Initializes a SYMapTrafficSign instance with the specified SYGeoCoordinate geographical position. More... | |
(nonnull instancetype) | - initWithScreenPosition: |
Initializes a SYMapTrafficSign instance with the specified CGPoint position on screen. More... | |
(nonnull instancetype) | - initWithScreenPosition:payload: |
Initializes a SYMapTrafficSign instance with the specified CGPoint position on screen. More... | |
Properties | |
SYMapTrafficSignType | signType |
Type of SYMapTrafficSign. See the available SYMapTrafficSignType. Default value is SYMapTrafficSignTypeSpeedLimit. More... | |
double | limitValue |
A value to be displayed on SYMapTrafficSign. The value must be set in the following units: SYMapTrafficSignTypeSpeedLimit - kilometers per hour. More... | |
SYMapTrafficSignSettingsCountry | country |
Visual type of the traffic sign based on the country where it's used. Default value is SYMapTrafficSignSettingsCountryWorld. More... | |
SYMapTrafficSignSettingsUnitSystem | unitType |
Unit system used for displaying the limitValue property. Default value is SYMapTrafficSignSettingsCountryWorld. More... | |
CGPoint | scale |
SYMapTrafficSign scale. Default value is [1.0, 1.0]. More... | |
CGFloat | minZoomLevel |
Minimum zoom level, at which SYMapTrafficSign is displayed. More... | |
CGFloat | maxZoomLevel |
Maximum zoom level, at which SYMapTrafficSign is displayed. More... | |
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 | |
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... | |
CGPoint | screenPosition |
Position of the SYViewObject on the screen. More... | |
SYViewObjectType | baseType |
Determines which type of this ViewObject it is. More... | |
id< NSCoding > | payload |
Optional payload for storing custom data. More... | |
Traffic sign can be displayed on a geographical position on a map or on a constant position on screen. In order to display the object on the map, the object needs to be added to an SYMapView by calling addMapObject:.
- (nonnull instancetype) initWithCoordinate: | (nonnull SYGeoCoordinate *) | coordinate |
Initializes a SYMapTrafficSign instance with the specified SYGeoCoordinate geographical position.
- (nonnull instancetype) initWithCoordinate: | (nonnull SYGeoCoordinate *) | coordinate | |
payload: | (nullable id< NSCoding >) | payload | |
Initializes a SYMapTrafficSign instance with the specified SYGeoCoordinate geographical position.
payload | Optional data payload that can be stored in SYMapTrafficSign. |
- (nonnull instancetype) initWithScreenPosition: | (CGPoint) | screenPosition |
Initializes a SYMapTrafficSign instance with the specified CGPoint position on screen.
- (nonnull instancetype) initWithScreenPosition: | (CGPoint) | screenPosition | |
payload: | (nullable id< NSCoding >) | payload | |
Initializes a SYMapTrafficSign instance with the specified CGPoint position on screen.
payload | Optional data payload that can be stored in SYMapTrafficSign. |
|
readwritenonatomicassign |
Type of SYMapTrafficSign. See the available SYMapTrafficSignType. Default value is SYMapTrafficSignTypeSpeedLimit.
|
readwritenonatomicassign |
A value to be displayed on SYMapTrafficSign. The value must be set in the following units: SYMapTrafficSignTypeSpeedLimit - kilometers per hour.
The value will be converted and displayed in the units specified in unitType property. Default value is 0.
|
readwritenonatomicassign |
Visual type of the traffic sign based on the country where it's used. Default value is SYMapTrafficSignSettingsCountryWorld.
|
readwritenonatomicassign |
Unit system used for displaying the limitValue property. Default value is SYMapTrafficSignSettingsCountryWorld.
|
readwritenonatomicassign |
SYMapTrafficSign scale. Default value is [1.0, 1.0].
|
readwritenonatomicassign |
Minimum zoom level, at which SYMapTrafficSign is displayed.
|
readwritenonatomicassign |
Maximum zoom level, at which SYMapTrafficSign is displayed.