diff --git a/docs/examples/getting_started/shiny_express.py b/docs/examples/getting_started/shiny_express.py index 5cdf9ec..36b84c6 100644 --- a/docs/examples/getting_started/shiny_express.py +++ b/docs/examples/getting_started/shiny_express.py @@ -24,5 +24,5 @@ def coords(): @render.code -def views_tate(): +def view_state(): return json.dumps(input.mapgl_view_state(), indent=2) diff --git a/docs/shiny_express.md b/docs/shiny_express.md index 70c70ba..4709512 100644 --- a/docs/shiny_express.md +++ b/docs/shiny_express.md @@ -1,5 +1,5 @@ In Shiny Express the `output_id` corresponds to the name of the _render_ function. -For the example below your `output_id` equals `mapgl`. Therefore, you have to listen to `input.mapgl_clicked` to get the map clicked event `input.{output_id}.clicked`. +For the example below the `output_id` is `mapgl`, so that you have to listen to `input.mapgl_clicked` to get the map clicked event. ```python -8<-- "getting_started/shiny_express.py"