[OpenLayers-Dev] Re: "allow pan while drawing" patch

Xavier Mamano (jorix) xavier.mamano at gmail.com
Thu Jan 13 13:20:46 EST 2011


Hi,

Oh! good! This is a much needed initiative.

I found an error in sandbox, using measure.html, distance measure does not
work: Handler/Path.js (line 163, this.point is null) I tried after r11030.
The other examples work correctly.

With the tests I've also lost points (as Alexandre Dubé) Using a slow PC
when
pan the map also the last point moves and distorts the drawing enough until
the
map reaches the mouse position, is a strange effect.

Xavier Mamano


Eric Lemoine-2-2 wrote:
> 
> Hello
> 
> Currently the map cannot be panned when a draw feature control is
> active. Google Maps allows it, and I think it would be great that
> OpenLayers allow it as well.
> 
> I've started prototyping this in a sandbox. It currently it works for
> "draw point" and "draw line" only (and it breaks the freehand mode).
> See [1] and [2] for examples.
> 
> With my patch points are added on mouseup as opposed to mousedown, so
> the drawing user experience is changed a bit. Also, although my patch
> makes this somehow configurable (through stopDown stopUp options), I
> think "allow pan while drawing" should be the default.
> 
> What do you think about it? Would such a patch make sense for
> inclusion into the trunk?
> 
> Thanks for any feedback,
> 
> 
> [1]
> <http://dev.openlayers.org/sandbox/elemoine/draw-feature/examples/draw-feature.html>
> [2]
> <http://dev.openlayers.org/sandbox/elemoine/draw-feature/examples/measure.html>
> 
> -- 
> Eric Lemoine
> 
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
> 
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine at camptocamp.com
> http://www.camptocamp.com
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
> 
> 

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/allow-pan-while-drawing-patch-tp5914262p5919215.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list