Constructor
(abstract) new WorldWindowController(worldWindow)
Constructs a root window controller.
Parameters:
Name | Type | Description |
---|---|---|
worldWindow |
WorldWindow | The WorldWindow associated with this layer. |
- Source:
Throws:
-
If the specified WorldWindow is null or undefined.
- Type
- ArgumentError
Members
(readonly) wwd :WorldWindow
The WorldWindow associated with this controller.
Type:
- Source:
Methods
addGestureListener(listener)
Registers a gesture event listener on this controller. Registering event listeners using this function
enables applications to prevent the controller's default behavior.
Listeners must implement an onGestureEvent method to receive event notifications. The onGestureEvent method will
receive one parameter containing the information about the gesture event. Returning true from onGestureEvent
indicates that the event was processed and will prevent any further handling of the event.
When an event occurs, application event listeners are called before WorldWindowController event listeners.
Parameters:
Name | Type | Description |
---|---|---|
listener |
The function to call when the event occurs. |
- Source:
Throws:
-
If any argument is null or undefined.
- Type
- ArgumentError
applyLimits()
Called by WorldWindow to allow the controller to enforce navigation limits. Implementation is not required by
sub-classes.
- Source:
removeGestureListener(listener)
Removes a gesture event listener from this controller. The listener must be the same object passed to
addGestureListener. Calling removeGestureListener with arguments that do not identify a currently registered
listener has no effect.
Parameters:
Name | Type | Description |
---|---|---|
listener |
The listener to remove. Must be the same object passed to addGestureListener. |
- Source:
Throws:
-
If any argument is null or undefined.
- Type
- ArgumentError