Skip to content

Commit 35a334e

Browse files
committed
minor #2840 [Docs] Fix missing dynamic attributes on <twig:ux:map> example (raphael-geffroy)
This PR was merged into the 2.x branch. Discussion ---------- [Docs] Fix missing dynamic attributes on `<twig:ux:map>` example | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | yes | Issues | Fix #... | License | MIT The twig component example from the documentation is missing the dynamic annotation before the center and markers attributes creating an error as the arrays aren't decoded ![image](https://github.com/user-attachments/assets/a18a5fc3-922d-4032-8cb3-d05e6b06207c) Commits ------- 79f11cb fix: missing dynamic attributes on ux-map example
2 parents b61e6df + 79f11cb commit 35a334e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Map/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ Alternatively, you can use the ``<twig:ux:map />`` component.
288288
.. code-block:: html+twig
289289

290290
<twig:ux:map
291-
center="[51.5074, 0.1278]"
291+
:center="[51.5074, 0.1278]"
292292
zoom="3"
293-
markers='[
293+
:markers='[
294294
{"position": [51.5074, 0.1278], "title": "London"},
295295
{"position": [48.8566, 2.3522], "title": "Paris"},
296296
{

0 commit comments

Comments
 (0)