[OpenLayers-Users] Touchbegin events for DrawFeature control

Jelmer Baas baas at speerit.nl
Thu Sep 19 01:22:35 PDT 2013


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


More information about the Users mailing list