MapControls constructor

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

Implementation

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

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

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