[OpenLayers-Users] OpenLayers on touch device: drawing by dragging instead of click

Jelmer Baas baas at speerit.nl
Thu Mar 22 09:17:56 EDT 2012


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:dominikmikiewicz at o2.pl] 
Sent: donderdag 22 maart 2012 11:21
To: Jelmer Baas; openlayers-users at lists.osgeo.org
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: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Jelmer Baas
Sent: Thursday, March 22, 2012 10:29 AM
To: openlayers-users at lists.osgeo.org
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
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list