I’m trying to make GMap.Net control multitouch enabled, using WPF build-in events but i wasn’t successful.
I found a series of articles about multitouch like this and this one. In all of them, ManipulationContainer is a canvas and movable controls placed on it, but in GMap issue ManipulationContainer is GMapControl and there is no control over it. how can i use e.ManipulationDelta data to Zoom and Move?
The GMapControl has a Zoom property which by increase or decreasing it, you can zoom in or zoom out.
A quick look at the code shows that the
GMapControlis anItemsContainer.You should be able to restyle the
ItemsPaneltemplate and supply theIsManipulationEnabledproperty there:At this point you need to wire up the
Window:And supply the appropriate methods in the Code Behind (shamelessly stolen and adapted from this MSDN Walkthrough):