AWFPointSource
Objective-C
@interface AWFPointSource
: AWFMapContentSource <AWFStylable, AWFAnimatableOverlay,
AWFDataAnimationDataSource>
Swift
class AWFPointSource : AWFMapContentSource, AWFStylable, AWFAnimatableOverlay, AWFDataAnimationDataSource
An AWFPointSource
object represents a map content source that manages a series of points on the map.
-
The annotations being managed by the content source (readonly).
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSArray<NSObject<AWFAnnotation> *> *annotations;
Swift
var annotations: [AWFAnnotation]! { get }
-
The options to use when requesting data for the content source.
Declaration
Objective-C
@property (nonatomic, strong) AWFWeatherRequestOptions *requestOptions
-
The request action to use when requesting data for the content source.
Declaration
Objective-C
@property (nonatomic, copy) NSString *requestAction;
Swift
var requestAction: String! { get set }
-
The style to use when rendering annotations for this content source on the weather map.
Declaration
Objective-C
@property (nonatomic, strong) id style;
Swift
var style: Any! { get set }
-
The legend style used when rendering data points for the content source.
Declaration
Objective-C
@property (nonatomic, strong) AWFLegendStyle *legendStyle;
Swift
var legendStyle: AWFLegendStyle! { get set }
-
The minimum distance, in points, between rendered points for the content source. Default is
0
, meaning all points will be rendered.Declaration
Objective-C
@property (nonatomic) CGFloat minimumInteritemDistance;
Swift
var minimumInteritemDistance: CGFloat { get set }
-
The animation object associated with the content source.
Declaration
Objective-C
@property (nonatomic, strong) AWFDataAnimation *animation;
Swift
var animation: AWFDataAnimation! { get set }
-
Requests data for the content source within the region described by the specified coordinate bounds.
Declaration
Objective-C
- (void)loadForMapBounds:(AWFMapCoordinateBounds *)bounds results:(void (^)(NSArray<NSObject<AWFAnnotation> *> *, NSError *))results;
Swift
func load(forMapBounds bounds: AWFMapCoordinateBounds!, results: (([AWFAnnotation]?, Error?) -> Void)!)
Parameters
bounds
The coordinate bounds to request data for
results
The completion block when the request finishes or fails
-
Requests data for the content source within the region described the the specified coordinate bounds and the date range.
Declaration
Objective-C
- (void)loadForMapBounds:(AWFMapCoordinateBounds *)bounds fromDate:(NSDate *)fromDate toDate:(NSDate *)toDate results:(void (^)(NSArray<NSObject<AWFAnnotation> *> *, NSError *))results;
Swift
func load(forMapBounds bounds: AWFMapCoordinateBounds!, from fromDate: Date!, to toDate: Date!, results: (([AWFAnnotation]?, Error?) -> Void)!)
Parameters
bounds
The coordinate bounds to request data for
fromDate
The starting date to use for the request, or
nil
to use the current date and timetoDate
The ending date to use for the request, or
nil
to use the current date and timeresults
The completion block when the requet finishes or fails
-
Cancels any active requests and prepared for a new request.
Declaration
Objective-C
- (void)reset;
Swift
func reset()