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