I have a function that i want to call when you start pinchzoom on the map. This function turns off all vector layers to improve performance while panning zooming. I got another function that is called with "moveend" which turns the vector layers back on after zoom pan finishes. I have both these functions already written.
I registered "movestart" and "zoomproxy" hack to trigger the layers to be turned off as soon as user starts panning or zooming. Everything works except on a mobile device where pinch zoom does not turn off the vector layers. it does not seem to call my function.
I know there is a pinch handler that could possibly be added onto a control and attached to the map. Could you please provide some details on how to do do this and in turn call my function to turn off layers at the start of pinch zoom.