cursorSelectionLandmarks method

List<Landmark> cursorSelectionLandmarks()

Retrieve the list of landmarks under the cursor location.

Use setCursorScreenPosition to set the cursor location.

Returns

  • A list of Landmark objects under the cursor. If no landmarks are found, the list will be empty.

Throws

  • An exception if it fails.

Implementation

List<Landmark> cursorSelectionLandmarks() {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapView',
    'cursorSelectionLandmarks',
  );

  return LandmarkList.init(resultString['result'], _mapId).toList();
}