From a432df844007d7e9516710b1ad7d50d6b3b8596a Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Sun, 10 Nov 2024 05:53:45 -0500 Subject: [PATCH] add position and missing closing parenthesis so that it works when blindly cutting and pasting. --- src/Map/doc/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Map/doc/index.rst b/src/Map/doc/index.rst index c6d49cfdc7d..2f3268e9898 100644 --- a/src/Map/doc/index.rst +++ b/src/Map/doc/index.rst @@ -116,7 +116,7 @@ You can add markers to a map using the ``addMarker()`` method:: // You can also pass arbitrary data via the `extra` option in both the marker // and the infoWindow; you can later use this data in your custom Stimulus controllers ->addMarker(new Marker( - // ... + position: new Point(45.7740, 4.8351), extra: [ 'icon_mask_url' => 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/tree_pinlet.svg', ], @@ -127,7 +127,7 @@ You can add markers to a map using the ``addMarker()`` method:: 'includes_link' => true, ], ), - ) + )) ; Add Polygons