From a98501059390e1651ee89ef084d2113862659aff Mon Sep 17 00:00:00 2001 From: Stefan Kuethe Date: Mon, 16 Dec 2024 21:37:34 +0100 Subject: [PATCH] Add shiny express example --- docs/shiny_express.md | 6 ++++++ mkdocs.yml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 docs/shiny_express.md diff --git a/docs/shiny_express.md b/docs/shiny_express.md new file mode 100644 index 00000000..70c70ba3 --- /dev/null +++ b/docs/shiny_express.md @@ -0,0 +1,6 @@ +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`. + +```python +-8<-- "getting_started/shiny_express.py" +``` diff --git a/mkdocs.yml b/mkdocs.yml index 8238f5cb..8954b8ee 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -15,6 +15,7 @@ nav: - Layers: layers.md - Deck.GL Layers: deckgl.md - Shiny: shiny.md + - Shiny Express: shiny_express.md - Jupyter: jupyter.md - Streamlit: streamlit.md - Changelog: changelog.md @@ -65,4 +66,4 @@ markdown_extensions: base_path: [docs/examples, "."] repo_name: py-maplibregl -repo_url: https://github.com/eodaGmbH/py-maplibregl \ No newline at end of file +repo_url: https://github.com/eodaGmbH/py-maplibregl