10
10
#import " MGLPolyline+MGLAdditions.h"
11
11
#import " MGLPolygon+MGLAdditions.h"
12
12
#import " NSDictionary+MGLAdditions.h"
13
+ #import " NSArray+MGLAdditions.h"
13
14
14
15
#import " NSExpression+MGLAdditions.h"
15
16
@@ -25,6 +26,10 @@ @implementation MGLPointFeature
25
26
@synthesize identifier;
26
27
@synthesize attributes;
27
28
29
+ MGL_DEFINE_FEATURE_INIT_WITH_CODER ();
30
+ MGL_DEFINE_FEATURE_ENCODE ();
31
+ MGL_DEFINE_FEATURE_IS_EQUAL ();
32
+
28
33
- (id )attributeForKey : (NSString *)key {
29
34
return self.attributes [key];
30
35
}
@@ -47,6 +52,10 @@ @implementation MGLPolylineFeature
47
52
@synthesize identifier;
48
53
@synthesize attributes;
49
54
55
+ MGL_DEFINE_FEATURE_INIT_WITH_CODER ();
56
+ MGL_DEFINE_FEATURE_ENCODE ();
57
+ MGL_DEFINE_FEATURE_IS_EQUAL ();
58
+
50
59
- (id )attributeForKey : (NSString *)key {
51
60
return self.attributes [key];
52
61
}
@@ -69,6 +78,10 @@ @implementation MGLPolygonFeature
69
78
@synthesize identifier;
70
79
@synthesize attributes;
71
80
81
+ MGL_DEFINE_FEATURE_INIT_WITH_CODER ();
82
+ MGL_DEFINE_FEATURE_ENCODE ();
83
+ MGL_DEFINE_FEATURE_IS_EQUAL ();
84
+
72
85
- (id )attributeForKey : (NSString *)key {
73
86
return self.attributes [key];
74
87
}
@@ -91,6 +104,10 @@ @implementation MGLPointCollectionFeature
91
104
@synthesize identifier;
92
105
@synthesize attributes;
93
106
107
+ MGL_DEFINE_FEATURE_INIT_WITH_CODER ();
108
+ MGL_DEFINE_FEATURE_ENCODE ();
109
+ MGL_DEFINE_FEATURE_IS_EQUAL ();
110
+
94
111
- (id )attributeForKey : (NSString *)key {
95
112
return self.attributes [key];
96
113
}
@@ -113,6 +130,10 @@ @implementation MGLMultiPolylineFeature
113
130
@synthesize identifier;
114
131
@synthesize attributes;
115
132
133
+ MGL_DEFINE_FEATURE_INIT_WITH_CODER ();
134
+ MGL_DEFINE_FEATURE_ENCODE ();
135
+ MGL_DEFINE_FEATURE_IS_EQUAL ();
136
+
116
137
- (id )attributeForKey : (NSString *)key {
117
138
return self.attributes [key];
118
139
}
@@ -135,6 +156,10 @@ @implementation MGLMultiPolygonFeature
135
156
@synthesize identifier;
136
157
@synthesize attributes;
137
158
159
+ MGL_DEFINE_FEATURE_INIT_WITH_CODER ();
160
+ MGL_DEFINE_FEATURE_ENCODE ();
161
+ MGL_DEFINE_FEATURE_IS_EQUAL ();
162
+
138
163
- (id )attributeForKey : (NSString *)key {
139
164
return self.attributes [key];
140
165
}
@@ -163,6 +188,10 @@ + (instancetype)shapeCollectionWithShapes:(NSArray *)shapes {
163
188
return [super shapeCollectionWithShapes: shapes];
164
189
}
165
190
191
+ MGL_DEFINE_FEATURE_INIT_WITH_CODER ();
192
+ MGL_DEFINE_FEATURE_ENCODE ();
193
+ MGL_DEFINE_FEATURE_IS_EQUAL ();
194
+
166
195
- (id )attributeForKey : (NSString *)key {
167
196
return self.attributes [key];
168
197
}
0 commit comments