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

OpenLayers trac-20090302 at openlayers.org
Tue May 24 17:18:04 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 mgleahy):

 Sorry...I was mistaken when I indicated the measurepartial event was being
 fired, it's the 'modify' callback on the handler that's constantly being
 called in between drawings (likely because of the moving dot).  My code
 was also using this method so that I could provide measurement feedback on
 mousemove events (without having to add additional points to the drawing).

 Having modify event being called when no drawing has been created seems
 counterintuitive to me, since when the user is not actually drawing the
 feature, there is no geometry being modified (unless we count the point
 under the cursor).  However, thanks for pointing out the new parameter in
 the callbacks...I think this is what I'll need to account for the changes
 coming in 2.11 for my code.

 While I will be able to account for this in my code, I still find that
 having a point following the cursor when there is no active drawing being
 created may not be appropriate or preferable in all cases.  Is there a
 parameter or some sort of approach that can change this behaviour, so that
 the point is only shown while the user is currently drawing something?

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


More information about the Trac mailing list