Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

The website claims that touch gestures are supported for Android browsers.

I'm running 2.2 and have not been able to get touch gestures to work. What can be done to enable it?

This works for iPhone but not for Android browsers.

How would one go about making it possible to enable touch support on Android browser?

Here's a link you can try on your mobile Android browser:

http://help.arcgis.com/en/webapi/javascript/arcgis/demos/mobile/mobile_simplemap.html

share|improve this question
3  
I'm just wondering whether this is an ArcGIS question or an Android question. Would it get some good answers on SO? –  whuber Apr 29 '11 at 20:59
1  
I think(but not 100% sure) that it is an ArcGIS question that has value on this site, but @LB01 should maybe provide which touch gestures are implemented and what the expected behavior is. –  Jay Cummins Apr 30 '11 at 21:00
    
Tap, Double-Tap, Drag, Press work. or at least I think they do--not really sure what the intended behavior is but stuff happens when I use those gestures on my droid with the website in the question. –  Jay Cummins Apr 30 '11 at 21:01
    
What gestures aren't working? –  James Schek May 2 '11 at 20:47
    
What device have you used? We had som issues with flash not working on some devices because of the hardware in the device. –  MathiasWestin Jun 7 '11 at 15:46
add comment

1 Answer

No surprise there so far, on most 2.x devices you don't get multitouch in the webkit browser although the device can recognise more than one touch. There is an (early) polyfill available, which works for OpenStreetmap and GoogleMaps, but not for the link you provided :(

Update: Thanks to Sam007's clarification the general issue cannot be related to 2.x (only). So it all narrows down to the touch event implementation of Android vs. iOs.

First thing coming to mind is that Apple introduced (proprietary, non-W3C-recognised) Gesture Events in Safari, which to my knowledge no other browser out there implements. If ArcGis only honours those events, you will be able to solve your problem writing a "simple" touch* to gesture*-Event converter.

I'd do it myself, but i don't own any apple devices. What i would do next is to enhance your example page with a debug window and catch all the events you could think of. Find the differences between Android and iOs, and you're halfway there to make ArcGis work as expected on Android.

share|improve this answer
    
I don't think multi-touch is the issue. I am able to open the link on Chrome on my Xperia NEO which is ICS 4.0.4 and still the pinch zoom does not work –  Sam007 Jun 19 '12 at 21:56
    
Thanks for clarifying on a 4.x device - good to know no bug there. –  Philzen Jun 21 '12 at 19:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.