From 795d32d38dbb3ba48ea699157f45ffb54bfc7b6e Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Sun, 1 Dec 2024 10:32:01 +0100 Subject: [PATCH] [Maps] Fix documentations docblocks for the LiveComponent integration --- src/Map/doc/index.rst | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Map/doc/index.rst b/src/Map/doc/index.rst index 0801f95f859..855b6fa7e62 100644 --- a/src/Map/doc/index.rst +++ b/src/Map/doc/index.rst @@ -341,9 +341,7 @@ Usage with Live Components To use a Map inside a Live Component, you need to use the ``ComponentWithMapTrait`` trait and implement the method ``instantiateMap`` to return a ``Map`` instance. -You can interact with the Map by using ``LiveAction`` attribute: - -.. code-block:: +You can interact with the Map by using ``LiveAction`` attribute:: namespace App\Twig\Components; @@ -382,9 +380,7 @@ Then, you can render the map with ``ux_map()`` in your component template: Then, you can define `Live Actions`_ to interact with the map from the client-side. -You can retrieve the map instance using the ``getMap()`` method, and change the map center, zoom, add markers, etc. - -.. code-block:: +You can retrieve the map instance using the ``getMap()`` method, and change the map center, zoom, add markers, etc:: #[LiveAction] public function doSomething(): void