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