[OpenLayers-Users] Mobile Device touch control

Gregor at HostGIS gregor at hostgis.com
Thu Aug 26 19:01:50 EDT 2010


My favorite is the one we developed, which was based on an older one. 
This one works well for Android and iPhone. It isn't fancily wrapped up 
as a OL class, but it does the job well for us!

Usage:

if (android || iphone) {
    new TouchHandler(map);
} else {
    map.addControl( new OpenLayers.Control.KeyboardDefaults() );
    map.addControl( new OpenLayers.Control.Navigation() );
}


-- 
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
    Network+   Server+   A+   Security+   Linux+
    PHP   PostgreSQL   MySQL   DHTML/JavaScript/AJAX

"No one cares if you can back up — only if you can recover."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: touch.js
Type: application/x-javascript
Size: 3184 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100826/b85d1a5d/touch.js


More information about the Users mailing list