-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKMLParser.h
37 lines (28 loc) · 947 Bytes
/
KMLParser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
Copyright (C) 2015 Apple Inc. All Rights Reserved.
See LICENSE.txt for this sample’s licensing information
Abstract:
Implements a limited KML parser.
The following KML types are supported:
Style,
LineString,
Point,
Polygon,
Placemark.
All other types are ignored
*/
#import "KMLPlacemark.h"
@interface KMLParser : NSObject <NSXMLParserDelegate> {
NSMutableDictionary *_styles;
NSMutableArray *_placemarks;
KMLPlacemark *_placemark;
KMLStyle *_style;
NSXMLParser *_xmlParser;
}
- (instancetype)initWithURL:(NSURL *)url;
- (void)parseKML;
@property (unsafe_unretained, nonatomic, readonly) NSArray *overlays;
@property (unsafe_unretained, nonatomic, readonly) NSArray *points;
- (MKAnnotationView *)viewForAnnotation:(id <MKAnnotation>)point;
- (MKOverlayRenderer *)rendererForOverlay:(id <MKOverlay>)overlay;
@end