Ctrl+drag on GeoSpatial Camera

Hi, I’ve just played a bit with the geospatial camera, and it’s really awesome. The possibilities this opens :exploding_head:.

One small feature request: Could it be possible to rotate the camera with a Control + drag or Shift + drag, something like what we get on other map viewers? That would be on top of the right-click drag, which is suitable for people with a mouse. If you have a trackpad only, right-click + drag is a bit hard to execute.

I’m super excited about what we can build with that.

Cc @georgie as I understand you’re the master on the geobabylon :wink:.

Georgie is OOF right now, please wait a little until she is back to check on this! :slight_smile:

No worries, nothing urgent. But thanks for the update :slight_smile:

1 Like

Thanks @tibotiber yes I can add this! Working on a configurable input → interaction system as we speak, will ping once in PR !

1 Like

Hello @tibotiber thank you for your patience, the new input system PR has been checked in (though not yet released), you can test the new behavior with the following link from PR snapshot

GeospatialCamera inputMap | Babylon.js Playground

I am writing documentation for the new feature as we speak, but adding in ctrl+drag functionality to the camera is achievable using the new API as follows (also included in the above playground snippet)

The feature will be released next week, or we can patch release if needed sooner. Thank you!

1 Like

The new Input system is looking really awesome, amazing work.

If I understand well, the same Input system applies to the GeoSpatial Camera and the Arc Rotate Camera? All others as well maybe? Am I understanding that well?

And I think this addition to the geospatial camera really fills the gap for a very natural map experience. Really, really great. Thank you.

1 Like

Wonderful I’m glad it’s useful! Yes right now the feature is available in ArcRotate and GeospatialCamera, and I will be porting to the other cameras piecewise. I can share future PRs for the other cameras on this thread once available!

1 Like