[fusion-trac] #588: Smarter layer/group toggling

Fusion trac_fusion at osgeo.org
Mon Jul 29 22:10:13 PDT 2013


#588: Smarter layer/group toggling
---------------------------+------------------------------------------------
   Reporter:  jng          |       Owner:  jng   
       Type:  enhancement  |      Status:  new   
   Priority:  P2           |   Milestone:  Future
  Component:  Widgets      |     Version:  2.0   
   Severity:  Major        |    Keywords:        
External_id:               |       State:  New   
    Browser:  All          |          Os:  All   
---------------------------+------------------------------------------------
 Each check/uncheck of a layer/group in a Fusion legend fires off a refresh
 request. If you're checking/unchecking a series of layers/groups in quick
 succession, it will send off a request for each item checked/unchecked!

 We should be a bit smarter about this. Instead of immediately sending off
 a refresh request on check/uncheck, we should schedule a call to refresh
 via setTimeout(). Each subsequent check/uncheck, should see if we have a
 scheduled refresh and if we do, reset the timeout on the refresh call.

 This way, we can rapidly check/uncheck a series of layers/groups and only
 have one refresh call sent back.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/588>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list