Home > @magiclane/maps-sdk > GemView > checkObjectVisibility
GemView.checkObjectVisibility() method
Check if a map scene object is visible within the provided rectangle.
Signature:
checkObjectVisibility(input?: {
mapSceneObject?: MapSceneObject | null;
rect?: RectType<number> | null;
}): boolean;Parameters
Parameter | Type | Description |
|---|---|---|
{ mapSceneObject, rect, } | (not declared) | (Optional) |
input | { mapSceneObject?: MapSceneObject | null; rect?: RectType<number> | null; } | (Optional) |
input properties:
- Optional mapSceneObject?: MapSceneObject | null
- Optional rect?: RectType
| null
Returns:
boolean
True if the object intersects the rectangle.
Exceptions
An exception if it fails.