set_execute_during_toolbar_action

click.set_execute_during_toolbar_action(q)

Set if callbacks should be executed during a toolbar action (e.g. pan/zoom).

By default, callbacks are not executed during toolbar actions to make sure pan/zoom is smooth. (e.g. to avoid things like constant re-fetching of webmaps if a peek-layer callback is active during pan/zoom)

Parameters:

q (bool) – If True, callbacks will be triggered independent of the toolbar state. if False, callbacks will only trigger if no toolbar action is active.