Dominik, Although your solution might work, it feels more like giving the user the ability to correct the problem afterwards, not to get rid of the problem.
It shouldn't be that hard to suppress the pan action while drawing, should it? Regards, Jelmer Baas Speer IT B.V. -----Original Message----- From: Dominik Mikiewicz [mailto:[email protected]] Sent: donderdag 22 maart 2012 11:21 To: Jelmer Baas; [email protected] Subject: RE: [OpenLayers-Users] OpenLayers on touch device: drawing by dragging instead of click You could edit a feature once it's been saved. This works with my setup reasonably well. The problem (or maybe there is a solution for this already) is deleting nodes on a mobile. In a normal browser environment one would use delete or d button when hovering over a node in edit mode. On mobile this is not possible or a solution is not obvious. dom -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jelmer Baas Sent: Thursday, March 22, 2012 10:29 AM To: [email protected] Subject: [OpenLayers-Users] OpenLayers on touch device: drawing by dragging instead of click Hello, With the release of OpenLayers 2.11 it's gotten fantastic to deploy to mobile devices (iPhone/iPad/Android tablets). However, our users need to be able to draw accurate lines which is nearly impossible at the moment. Right now, you start drawing by tapping the screen, removing your finger, moving to where you want the next point without touching the screen, and tap again. If you make a mistake, you'll need to remove the line or node, and try again. It would be great if the "swipe" on mobile devices could replace the "mousemove", so that it would move the next node instead of panning the map. Of course this would also change when the drawing ends: instead of putting down the node at "mousedown", it would do so at "mouseup". Are there any plans of changing this drawing behavior for mobile devices? And, does anyone have a suggestion how I could implement this for my site with OL 2.11? Thank you, Regards, Jelmer Baas Speer IT B.V. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
