Skip to content

Commit ec15004

Browse files
author
Simon Irmančnik
committed
Return all targets when supplying empty layers list
1 parent 95a8535 commit ec15004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maplibre_gl/ios/maplibre_gl/Sources/maplibre_gl/MapLibreMapController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class MapLibreMapController: NSObject, FlutterPlatformView, MLNMapViewDelegate,
254254
case "map#queryRenderedFeatures":
255255
guard let arguments = methodCall.arguments as? [String: Any] else { return }
256256
var styleLayerIdentifiers: Set<String>?
257-
if let layerIds = arguments["layerIds"] as? [String] {
257+
if let layerIds = arguments["layerIds"] as? [String], !layerIds.isEmpty {
258258
styleLayerIdentifiers = Set<String>(layerIds)
259259
}
260260
var filterExpression: NSPredicate?

0 commit comments

Comments
 (0)