hitTest method

List<MarkerMatch> hitTest(
  1. Coordinates coordinates, {
  2. Marker? ignoreMarker,
})

Hit test in collection markers.

Parameters

  • IN coordinates The coordinates of the position to be tested
  • IN ignoreMarker The marker to be ignored in the test

Returns

  • The list of marker matches

Implementation

List<MarkerMatch> hitTest(Coordinates coordinates, {Marker? ignoreMarker}) {
  final OperationResult resultString = objectMethod(
      pointerId, 'MarkerCollection', 'hitTest',
      args: <String, Object>{
        'coords': coordinates,
        if (ignoreMarker != null) 'ignoreMarker': ignoreMarker.pointerId,
      });
  return MarkerMatchList.init(resultString['result']).toList();
}