hitTest method

List<MarkerMatch> hitTest(
  1. Coordinates coordinates
)

Perform a hit test across all marker collections.

Parameters

  • IN coordinates The position to be tested

Returns

  • The list of marker matches

Implementation

List<MarkerMatch> hitTest(final Coordinates coordinates) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapViewMarkerCollections',
    'hitTest',
    args: coordinates,
    dependencyId: _mapPointerId,
  );

  return MarkerMatchList.init(resultString['result']).toList();
}