simplegeo / polymaps

Polymaps is a free JavaScript library for making dynamic, interactive maps in modern web browsers.
http://polymaps.org/
Other
1.6k stars 213 forks source link

Add multitouch interface for mobile phones and tablets #39

Open afarnham opened 13 years ago

afarnham commented 13 years ago

This is a feature request for adding standard multitouch gestures. Pinch to zoom, swipe to pan, one finger double tap to zoom in, two finger double tap to zoom out, etc...

natevw commented 13 years ago

Has anyone started work on this? I addedhacked in multitouch support to OpenLayers last year (https://github.com/andyet/OpenLayers-Multitouch), and I have a feeling both the journey and the destination would be both faster and much more pleasant on top of Polymaps' foundation.

shawnbot commented 13 years ago

To my knowledge nobody's tried it yet (publicly, at least). I'd be more than willing to test it out and pull it if you take it on. :)

shawnbot commented 13 years ago

Scratch that. Tom Carden tried it out (I can't seem to find his fork), but he called his "implemented webkit-specific touch handler" both "experimental" and "crashy":

https://github.com/codeprimate/polymaps/commit/92a5fceab428b017b27fab5cf27374c868338b49#diff-5

So I think it's still safe to say that it hasn't yet been done to anyone's satisfaction. ;)

afarnham commented 13 years ago

The branch for the experimental and crashy version lives here: https://github.com/simplegeo/polymaps/tree/touch

natevw commented 13 years ago

Here you go: https://github.com/simplegeo/polymaps/pull/59