cursorSelectionStreets method
Retrieve the list of streets under the cursor location.
Use setCursorScreenPosition to set the cursor location.
Returns
- A list of Landmark objects corresponding to streets under the cursor. If no streets are found, the list will be empty.
See also:
- setCursorScreenPosition - Set the cursor location for selection
- GemMapController.registerOnCursorSelectionUpdatedLandmarks - Listen for cursor selection changes
Implementation
List<Landmark> cursorSelectionStreets() {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'cursorSelectionStreets',
);
return LandmarkList.init(resultString['result']).toList();
}