diff --git a/ios/RCTMapboxGL/RCTMapboxGLManager.m b/ios/RCTMapboxGL/RCTMapboxGLManager.m index ba8f482..e447daa 100644 --- a/ios/RCTMapboxGL/RCTMapboxGLManager.m +++ b/ios/RCTMapboxGL/RCTMapboxGLManager.m @@ -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 };