Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-30 Thread Josh Rosenthal
Hi Andreas, Sorry to bring this question back from the dead, but unless I'm missing something obvious, the sketchmodified event / modify callback aren't triggered from Handler.RegularPolygon. This makes some sense, as they're supposed to take the modified vertex, and in the RegularPolygon, all vert

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-23 Thread Matt Foster
I'm a tad confused here. Is none of this possible in 2.7? Matt Josh Rosenthal wrote: D'oh! Yes, that should have been obvious. Either use whatever is being triggered by the modify callback, or set a custom one if the control isn't already using one. Much obliged, Josh On Wed, Apr 22,

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread Josh Rosenthal
D'oh! Yes, that should have been obvious. Either use whatever is being triggered by the modify callback, or set a custom one if the control isn't already using one. Much obliged, Josh On Wed, Apr 22, 2009 at 4:35 PM, Andreas Hocevar wrote: > Josh Rosenthal wrote: > >> Thanks a lot for the sol

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread Andreas Hocevar
Josh Rosenthal wrote: > Thanks a lot for the solution using callbacks. I was wondering if you > could suggest how that might be adapted to give the measurements on a > draw feature. It's much easier than what I was previously doing for > measure and drawFeature (passing a customized modifyFeat

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread Josh Rosenthal
Hi Andreas, Thanks a lot for the solution using callbacks. I was wondering if you could suggest how that might be adapted to give the measurements on a draw feature. It's much easier than what I was previously doing for measure and drawFeature (passing a customized modifyFeature function in the o

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread pribram pribram
It works great! Thanks a lot. Pribram ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread Andreas Hocevar
Hi, the solution (if you're using trunk or 2.8) is quite simple. The snippet below replaces the definition of measureControls in the measure example (starting around L65) measureControls = { line: new OpenLayers.Control.Measure( OpenLayers.Handler

[OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-20 Thread pribram pribram
Hi, Is there anything new about measuring + getting distance on mousemove? http://n2.nabble.com/Measure-Control---get-distance-on-mouse-move-td2503580.html If there is a solution, please publish it. Thanks, Pribram ___ Users mailing list Users@openlayers