cursorSelectionMapSceneObject method
Retrieves the scene object under the current cursor selection
Scene objects can include 3D models, custom drawings, or other complex visual elements added to the map. This method determines which scene object, if any, is under the cursor, facilitating interactions like selection or manipulation.
Returns
- The MapSceneObject under the cursor. If no scene object is found, this will return null.
Throws
- An exception if it fails.
Implementation
MapSceneObject? cursorSelectionMapSceneObject() {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'cursorSelectionSceneObject',
);
if (resultString['result'] == 0) {
return null;
}
return MapSceneObject.init(resultString['result'], _mapId);
}