[OpenLayers-Trac] Re: [OpenLayers] #3315: Problem with geometry handlers - doesn't stop showing a point under the cursor

OpenLayers trac-20090302 at openlayers.org
Wed May 25 10:40:07 EDT 2011


#3315: Problem with geometry handlers - doesn't stop showing a point under the
cursor
---------------------------+------------------------------------------------
 Reporter:  mgleahy        |       Owner:  tschaub     
     Type:  feature        |      Status:  new         
 Priority:  minor          |   Milestone:  2.11 Release
Component:  Handler.Point  |     Version:  2.11 RC1    
 Keywords:                 |       State:              
---------------------------+------------------------------------------------

Comment(by jorix):

 Replying to [comment:6 erilem]:
 >
 > > @erilen: The line
 [http://trac.osgeo.org/openlayers/browser/trunk/openlayers/lib/OpenLayers/Handler/Path.js?rev=11962#L344
 344 of Path.js] should be {{{this.modifyFeature(evt.xy,
 }}}'''true'''{{{);}}}?
 >
 > Or {{{!!this.lastUp}}}, no?

 Yes, you are right, before the first point must be false.

 But there is a problem with {{{!!this.lastUp}}} using freehand (in
 {{{down}}} and {{{move}}} methods):
  * use the example [http://openlayers.org/dev/examples/measure.html
 measure.html] selecting "use immediate measures"
  * start freehand
  * release the shift key
  * move, oops! the immediate measure does not change.
  * continue freehand
  * release the shift key
  * move, ok! now works

 It's a minor problem which I have not opened ticket. This problem and
 #3310 make me think it would be good to reintroduce "handler.drawing" (and
 it has the advantage of causing less trouble adapting to users, eg: this
 ticket)

 What is your opinion?

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3315#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list