Class: PickedObject

PickedObject(color, userObject, position, parentLayer, isTerrain)

Represents a picked object.

Constructor

new PickedObject(color, userObject, position, parentLayer, isTerrain)

Constructs a picked object.
Parameters:
Name Type Description
color Color The pick color identifying the object.
userObject Object An object to associate with this picked object, usually the picked shape.
position Position The picked object's geographic position. May be null if unknown.
parentLayer Layer The layer containing the picked object.
isTerrain Boolean true if the picked object is terrain, otherwise false.
Source:

Members

(readonly) color :Color

This picked object's pick color.
Type:
Source:

isOnTop :boolean

Indicates whether this picked object is the top object.
Type:
  • boolean
Source:

(readonly) isTerrain :Boolean

Indicates whether this picked object is terrain.
Type:
  • Boolean
Source:

(readonly) parentLayer :Layer

The layer containing this picked object.
Type:
Source:

(readonly) position :Position

This picked object's geographic position.
Type:
Source:

(readonly) userObject :Object

The picked shape.
Type:
  • Object
Source: