diff --git a/lib/src/controller.dart b/lib/src/controller.dart index d02d3d2f..68760645 100644 --- a/lib/src/controller.dart +++ b/lib/src/controller.dart @@ -1024,20 +1024,24 @@ class MaplibreMapController extends ChangeNotifier { notifyListeners(); } - /// Query rendered features at a point in screen cooridnates + /// Query rendered (i.e. visible) features at a point in screen coordinates Future queryRenderedFeatures( Point point, List layerIds, List? filter) async { return _maplibreGlPlatform.queryRenderedFeatures(point, layerIds, filter); } - /// Query rendered features in a Rect in screen coordinates + /// Query rendered (i.e. visible) features in a Rect in screen coordinates Future queryRenderedFeaturesInRect( Rect rect, List layerIds, String? filter) async { return _maplibreGlPlatform.queryRenderedFeaturesInRect( rect, layerIds, filter); } - /// Query rendered features at a point in screen coordinates + /// Query features contained in the source with the specified [sourceId]. + /// + /// In contrast to [queryRenderedFeatures], this returns all features in the source, + /// regardless of whether they are currently rendered by the current style. + /// /// Note: On web, this will probably only work for GeoJson source, not for vector tiles Future querySourceFeatures( String sourceId, String? sourceLayerId, List? filter) async {