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

2009-04-20 Thread Josh Rosenthal
Oops. After posting, I saw Chris' post about 2.8-rc1, and decided to take a look at the upcoming release. Needless to say, Handler.Path has changed, and while the code I posted works in 2.7, it fails in 2.8 rc1 Not a great solution. I'm still trying to puzzle through the changes in 2.8 to se

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

2009-04-20 Thread Josh Rosenthal
Hi Ryan, I realize its a bit late, but I ran into the same need as you've described. If you've (or anyone else) has solved it, I'd be curious to see your solution if you feel like sharing. My solution is to play with the handlerOptions to overwrite the modifyFeature method of the path handler. F

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

2009-03-19 Thread RFeagin
Unless I'm missing something, that looks exactly like what I'm already doing and gets me an updated distance each time the user clicks to add another point to the polyline. What I'm looking for is to get the distance to the current mouse location (without having to click to add the current locati