cursorSelectionStreets method

List<Landmark> cursorSelectionStreets()

Retrieve the list of streets under the cursor location.

Use setCursorScreenPosition to set the cursor location.

Returns

A list of Street objects under the cursor. If no streets are found, the list will be empty.

Throws

  • An exception if it fails.

Implementation

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

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