MapControls with rotation three.js

Thanks for the explanation, I understand now. You want horizontal motion of the mouse to make left-right rotation, while the vertical motion to make forward-backward panning. I’m not sure this is possible in MapControls. You may consider these options:

  • make own camera motion by capturing mouse motion
  • modify the source of MapControls to work as you want

The first option might be easier and faster to implement.

Edit: Here is a demo of the first option. The red sphere only indicates the camera target position, the sphere is not used for the navigation.

https://codepen.io/boytchev/full/LYgEMPM

image

1 Like