Changing Pan and Zoom behavior

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.
Post Reply
User avatar
Oliver Heilig
Posts: 157
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Changing Pan and Zoom behavior

Post by Oliver Heilig »

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

Image

You can also use this as template to completely change the pan/zoom behavior.

- Oliver
Patricia
Posts: 7
Joined: Wed Feb 25, 2015 7:42 am

Re: Changing Pan and Zoom behavior

Post by Patricia »

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
User avatar
Oliver Heilig
Posts: 157
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Changing Pan and Zoom behavior

Post by Oliver Heilig »

Uups, you're right. I've added the missing file.

Tanks,

Oliver
User avatar
Oliver Heilig
Posts: 157
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Changing Pan and Zoom behavior

Post by Oliver Heilig »

I've added a second option to disable the zoom on double-click.
Post Reply