Constructor
new BasicWorldWindowController(worldWindow)
Constructs a window controller with basic capabilities.
Parameters:
Name | Type | Description |
---|---|---|
worldWindow |
WorldWindow | The WorldWindow associated with this layer. |
- Source:
Extends
Members
(readonly) wwd :WorldWindow
The WorldWindow associated with this controller.
Type:
- Inherited From:
- 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. |
- Inherited From:
- 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.
- Overrides:
- 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. |
- Inherited From:
- Source:
Throws:
-
If any argument is null or undefined.
- Type
- ArgumentError