querySourceFeatures method
Implementation
@override
Future<List> querySourceFeatures(
String sourceId, String? sourceLayerId, List<Object>? filter) async {
try {
final Map<dynamic, dynamic> reply = await _channel.invokeMethod(
'map#querySourceFeatures',
<String, Object?>{
'sourceId': sourceId,
'sourceLayerId': sourceLayerId,
'filter': filter,
},
);
return reply['features'].map((feature) => jsonDecode(feature)).toList();
} on PlatformException catch (e) {
return Future.error(e);
}
}