The default behavior of panning the map is via left click + drag I would like to change that behavior to be with wheel click + drag. Is this possible?
Pan map with mouse wheel click instead of left click
240 views Asked by Alexander Gorelik At
1
That's handled by the
ScreenSpaceCameraController, and is configurable. For example:That last command above uses
Array.shiftto remove the first element of thetiltEventTypesarray. The default value of this array (for many versions of Cesium) is shown here:This is showing us that one can still issue "tilt" events even after shifting away the
MIDDLE_DRAGentry. We can CTRL-left-drag, for example, to get the same action.