diff --git a/maplibre_gl/ios/maplibre_gl/Sources/maplibre_gl/MapLibreMapController.swift b/maplibre_gl/ios/maplibre_gl/Sources/maplibre_gl/MapLibreMapController.swift index dcdb0bdfd..4a4344abd 100644 --- a/maplibre_gl/ios/maplibre_gl/Sources/maplibre_gl/MapLibreMapController.swift +++ b/maplibre_gl/ios/maplibre_gl/Sources/maplibre_gl/MapLibreMapController.swift @@ -254,7 +254,7 @@ class MapLibreMapController: NSObject, FlutterPlatformView, MLNMapViewDelegate, case "map#queryRenderedFeatures": guard let arguments = methodCall.arguments as? [String: Any] else { return } var styleLayerIdentifiers: Set? - if let layerIds = arguments["layerIds"] as? [String] { + if let layerIds = arguments["layerIds"] as? [String], !layerIds.isEmpty { styleLayerIdentifiers = Set(layerIds) } var filterExpression: NSPredicate?