mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-30 20:41:08 +00:00
added 'id' attribute to GeoJSON
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user