MapControls constructor

MapControls(
  1. dynamic object,
  2. dynamic domElement
)

Implementation

MapControls(object, domElement) : super(object, domElement) {
  screenSpacePanning = false; // pan orthogonal to world-space direction camera.up

  mouseButtons['LEFT'] = MOUSE.PAN;
  mouseButtons['RIGHT'] = MOUSE.ROTATE;

  touches['ONE'] = TOUCH.PAN;
  touches['TWO'] = TOUCH.DOLLY_ROTATE;
}