OSPlacemark Class Reference
| Inherits from | NSObject |
| Conforms to | OSAnnotation |
| Declared in | OSPlacemark.h |
Overview
- A wrapper around
CLPlacemarkthat implements the OSAnnotation protocol. * - This class is not a subclass of CLPlacemark because CLPlacemark’s constructors are private apart from
initWithPlacemark:and the properties are read-only.
Tasks
Specifying co-ordinates
-
CLPlacemarkproperty -
nameproperty -
placemarkTypeThis property returns the single/double character code listed above
property -
fullPlacemarkTypeThis property returns the expanded description in capitals. R is expressed as ROMAN, W as WATER, and H as HILL. X is UNKNOWN
property -
countyproperty -
gridPointThe center point of the annotation, as an OSGridPoint. The implementation of this property must be KVO-compliant. If this returns a valid OSGridPoint, it is used instead of the coordinate.
property -
– initWithPlacemark: -
– initWithName:type:county:gridPoint:
Properties
fullPlacemarkType
This property returns the expanded description in capitals. R is expressed as ROMAN, W as WATER, and H as HILL. X is UNKNOWN
@property (nonatomic, copy, readonly) NSString *fullPlacemarkTypeDeclared In
OSPlacemark.hgridPoint
The center point of the annotation, as an OSGridPoint. The implementation of this property must be KVO-compliant. If this returns a valid OSGridPoint, it is used instead of the coordinate.
@property (nonatomic, assign, readonly) OSGridPoint gridPointDeclared In
OSAnnotation.h