added 'id' attribute to GeoJSON

This commit is contained in:
Tanner Semerad
2016-09-23 19:16:57 -07:00
parent 28d192a12c
commit d1f7a1edc7
+1
View File
@@ -645,6 +645,7 @@ RCT_EXPORT_METHOD(queryRenderedFeatures:(nonnull NSNumber *)reactTag
NSDictionary *geoJSON = @{
@"type": @"Feature",
@"id": feature.identifier ? feature.identifier : [NSNull null],
@"properties": feature.attributes,
@"geometry": geoJSONGeometry
};