def map_tab_content(value): """Callback to change between news and twitter feed """ if value == "testing-us-map-tab": return drive_thru_scatter_mapbox() else: return confirmed_scatter_mapbox()
def map_tab_content(value, state): """Callback to change between news and twitter feed """ if value == "testing-us-map-tab": return drive_thru_scatter_mapbox(state=REVERSE_STATES_MAP[state]) else: return confirmed_scatter_mapbox(state=REVERSE_STATES_MAP[state])
def mobile_map_tab_content(value, state): """Callback to change between news and twitter feed """ # print(f"callback value: {value}") # print(f"callback state: {state}") if value == "mobile-testing-us-map-tab": return drive_thru_scatter_mapbox(state=state) else: return confirmed_scatter_mapbox(state=state)