Opened 11 years ago

Closed 11 years ago

#588 closed enhancement (fixed)

Smarter layer/group toggling

Reported by: jng Owned by: jng
Priority: P2 Milestone: Future
Component: Widgets Version: 2.0
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

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.

Change History (1)

comment:1 by jng, 11 years ago

Resolution: fixed
Status: newclosed

Fixed r2806

Note: See TracTickets for help on using tickets.