diff --git a/docs/examples/road_safety/app.py b/docs/examples/road_safety/app.py index c2afed6b..574a72c9 100644 --- a/docs/examples/road_safety/app.py +++ b/docs/examples/road_safety/app.py @@ -72,9 +72,13 @@ def mapylibre(): @reactive.Effect @reactive.event(input.res, ignore_init=True) - async def resolutiom(): + async def resolution(): async with MapContext("mapylibre", session=session) as m: - m.set_data("road-safety", create_h3_grid(input.res())) + with ui.Progress() as p: + p.set(message="H3 calculation in progress") + geojson = create_h3_grid(input.res()) + m.set_data("road-safety", geojson) + p.set(1, message="Calculation finished") app = App(app_ui, server)