Esempio n. 1
0
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()
Esempio n. 2
0
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])
Esempio n. 3
0
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)