Skip to content

Commit

Permalink
Merge branch 'main' into feat/heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
m0nac0 authored Jan 14, 2024
2 parents 8d9d1c2 + 1e66cb7 commit 4fa9cab
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 @@ -1095,20 +1095,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 4fa9cab

Please sign in to comment.