Hello,
I need some help getting pinch to zoom working. In my application I handle zooming in/out differently than you regularly would in a WebView I am using Google Maps so I need to use JavaScript in order to zoom in/out.
To zoom in I use this:
To zoom out I use this
How can I get Pinch to Zoom working with something like this. I already read the Cocoa Event-Handling Guide for Handling Trackpad Events, but I couldn't figure out how to implement pinch to zoom when you use to different methods for zooming in and zooming out.
Thanks
I need some help getting pinch to zoom working. In my application I handle zooming in/out differently than you regularly would in a WebView I am using Google Maps so I need to use JavaScript in order to zoom in/out.
To zoom in I use this:
Code:
id map = [aMapView windowScriptObject];
NSString *jsCmd = @"map.zoomIn();";
[map evaluateWebScript:jsCmd];
To zoom out I use this
Code:
id map = [aMapView windowScriptObject];
NSString *jsCmd = @"map.zoomOut();";
[map evaluateWebScript:jsCmd];
How can I get Pinch to Zoom working with something like this. I already read the Cocoa Event-Handling Guide for Handling Trackpad Events, but I couldn't figure out how to implement pinch to zoom when you use to different methods for zooming in and zooming out.
Thanks