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
Changing Pan and Zoom behavior
- Oliver Heilig
- Posts: 160
- Joined: Tue May 13, 2014 12:10 pm
- Location: Karlsruhe, Germany
- Contact:
Re: Changing Pan and Zoom behavior
Hello,
In https://github.com/ptv-logistics/xservernet-bin -- > CustomPanAndZoom , I could not find the file Window1.xaml.
I think that in the project missing some files.
Thanks.
Patricia
In https://github.com/ptv-logistics/xservernet-bin -- > CustomPanAndZoom , I could not find the file Window1.xaml.
I think that in the project missing some files.
Thanks.
Patricia
- Oliver Heilig
- Posts: 160
- Joined: Tue May 13, 2014 12:10 pm
- Location: Karlsruhe, Germany
- Contact:
Re: Changing Pan and Zoom behavior
Uups, you're right. I've added the missing file.
Tanks,
Oliver
Tanks,
Oliver
- Oliver Heilig
- Posts: 160
- Joined: Tue May 13, 2014 12:10 pm
- Location: Karlsruhe, Germany
- Contact:
Re: Changing Pan and Zoom behavior
I've added a second option to disable the zoom on double-click.