diff --git a/docs/shiny_express.md b/docs/shiny_express.md new file mode 100644 index 0000000..70c70ba --- /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 8238f5c..8954b8e 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