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:
zoomToMouseEnabled :Boolean
Enables/disables the zoom to mouse effect.
When used on a touch device the location of the mouse is the center between the touch points.
When zooming in, the location of the mouse will move towards the center of the screen.
When zooming out, the location of the mouse will away from the center of the screen.
Type:
- Boolean
- Default Value:
- true
- 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