Skip to content

Commit 0c71f97

Browse files
committed
minor #2360 [Map] Add position and missing closing parenthesis (tacman)
This PR was merged into the 2.x branch. Discussion ---------- [Map] Add position and missing closing parenthesis so that it works when blindly cutting and pasting. Commits ------- a432df8 add position and missing closing parenthesis
2 parents a5318fa + a432df8 commit 0c71f97

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
@@ -122,7 +122,7 @@ You can add markers to a map using the ``addMarker()`` method::
122122
// You can also pass arbitrary data via the `extra` option in both the marker
123123
// and the infoWindow; you can later use this data in your custom Stimulus controllers
124124
->addMarker(new Marker(
125-
// ...
125+
position: new Point(45.7740, 4.8351),
126126
extra: [
127127
'icon_mask_url' => 'https://maps.gstatic.com/mapfiles/place_api/icons/v2/tree_pinlet.svg',
128128
],
@@ -133,7 +133,7 @@ You can add markers to a map using the ``addMarker()`` method::
133133
'includes_link' => true,
134134
],
135135
),
136-
)
136+
))
137137
;
138138

139139
Add Polygons

0 commit comments

Comments
 (0)