[OpenLayers-Users] Touchbegin events for DrawFeature control

Jelmer Baas baas at speerit.nl
Thu Sep 26 04:51:03 PDT 2013


Is there anyone who has an answer to this question? 

Thanks,
Jelmer


-----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, September 19, 2013 10:23
To: openlayers-users at lists.osgeo.org
Subject: [OpenLayers-Users] Touchbegin events for DrawFeature control

Hello,

The DrawFeature control doesn't seem to capture TouchBegin and TouchMove events on an iPad, where the ModifyFeature does do this. Putting your finger on the screen and moving around, moves the entire website (not even the map, but really the entire website).

On the desktop you can hold the left mouse button down and move the point you want to create around a bit, before letting go of the mouse button. Combined with OpenLayers.Handler.Path.prototype.pixelTolerance set to (for example) 100, this would provide a very nice to draw new features on mobile devices. 

It also seems the DrawFeature control doesn't  have stopUp/stopDown properties. 

Is there a way to have the DrawFeature control hook these events, or possibly hook them manually and pass them to this control?

Thanks,

Regards,
Jelmer Baas
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


More information about the Users mailing list