checkObjectVisibility method
- MapSceneObject? mapSceneObject,
- RectType<
int> ? rect,
Check if the given scene object visible in the given viewport.
Does not take into account the object visibility.
Parameters
- IN mapSceneObject Map scene object to test
- IN rect Viewport rectangle in screen coordinates. If no viewport is given, the whole screen is used
Returns
- True if the given scene object visible in the given viewport, false otherwise
Throws
- An exception if it fails.
Implementation
bool checkObjectVisibility({
MapSceneObject? mapSceneObject,
RectType<int>? rect,
}) {
rect ??= RectType<int>(x: 0, y: 0, width: 0, height: 0);
mapSceneObject ??= MapSceneObject.getDefPositionTracker();
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'checkObjectVisibility',
args: <String, dynamic>{
'obj': mapSceneObject.pointerId,
'rc': rect,
},
);
return resultString['result'];
}