Skip to content

Commit

Permalink
fix docs for querySourceFeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
m0nac0 committed Dec 1, 2023
1 parent 0bf3260 commit ab359f6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<List> queryRenderedFeatures(
Point<double> point, List<String> layerIds, List<Object>? 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<List> queryRenderedFeaturesInRect(
Rect rect, List<String> 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<List> querySourceFeatures(
String sourceId, String? sourceLayerId, List<Object>? filter) async {
Expand Down

0 comments on commit ab359f6

Please sign in to comment.