Changing Pan and Zoom behavior
Posted: Wed Feb 25, 2015 10:42 am
Hello,
i was asked if it is possible to change the pan/zoom behavior, so the user can explicitly switch between drag and select instead of holding down the Shift key. We think it is useful to have some kind of MouseDragMode in the next release of the SDK, but currently this is not supported.
However, with the current release you can add this function by replacing the default PanAndZoom interactor with a custom one. The sample CustomPanAndZoom in our GitHub sample-repository shows this practice.
https://github.com/ptv-logistics/xservernet-bin
You can also use this as template to completely change the pan/zoom behavior.
- Oliver
i was asked if it is possible to change the pan/zoom behavior, so the user can explicitly switch between drag and select instead of holding down the Shift key. We think it is useful to have some kind of MouseDragMode in the next release of the SDK, but currently this is not supported.
However, with the current release you can add this function by replacing the default PanAndZoom interactor with a custom one. The sample CustomPanAndZoom in our GitHub sample-repository shows this practice.
https://github.com/ptv-logistics/xservernet-bin
You can also use this as template to completely change the pan/zoom behavior.
- Oliver