Skip to content

Commit 795d32d

Browse files
committed
[Maps] Fix documentations docblocks for the LiveComponent integration
1 parent ae5cc06 commit 795d32d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Map/doc/index.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,7 @@ Usage with Live Components
341341
To use a Map inside a Live Component, you need to use the ``ComponentWithMapTrait`` trait
342342
and implement the method ``instantiateMap`` to return a ``Map`` instance.
343343

344-
You can interact with the Map by using ``LiveAction`` attribute:
345-
346-
.. code-block::
344+
You can interact with the Map by using ``LiveAction`` attribute::
347345

348346
namespace App\Twig\Components;
349347

@@ -382,9 +380,7 @@ Then, you can render the map with ``ux_map()`` in your component template:
382380
</div>
383381

384382
Then, you can define `Live Actions`_ to interact with the map from the client-side.
385-
You can retrieve the map instance using the ``getMap()`` method, and change the map center, zoom, add markers, etc.
386-
387-
.. code-block::
383+
You can retrieve the map instance using the ``getMap()`` method, and change the map center, zoom, add markers, etc::
388384

389385
#[LiveAction]
390386
public function doSomething(): void

0 commit comments

Comments
 (0)