Skip to content

Commit e514572

Browse files
committed
minor #2339 Update index.rst (LesRouxDominerontLeMonde)
This PR was merged into the 2.x branch. Discussion ---------- Update index.rst added '::' instead of ':' for visual effect | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Issues | instead --> visual effect | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> added the '::' syntax instead of the simple ':' for more visual effect on the doc. Commits ------- 64498a6 Update index.rst
2 parents 65e59d1 + 64498a6 commit e514572

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Map/doc/index.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,12 @@ Start by creating a new map instance::
7878
Center and zoom
7979
~~~~~~~~~~~~~~~
8080

81-
You can set the center and zoom of the map using the ``center()`` and ``zoom()`` methods:
81+
You can set the center and zoom of the map using the ``center()`` and ``zoom()`` methods::
8282

8383
use Symfony\UX\Map\Map;
8484
use Symfony\UX\Map\Point;
8585
8686
$myMap
87-
8887
// Explicitly set the center and zoom
8988
->center(new Point(46.903354, 1.888334))
9089
->zoom(6)
@@ -96,7 +95,7 @@ You can set the center and zoom of the map using the ``center()`` and ``zoom()``
9695
Add markers
9796
~~~~~~~~~~~
9897

99-
You can add markers to a map using the ``addMarker()`` method:
98+
You can add markers to a map using the ``addMarker()`` method::
10099

101100
$myMap
102101
->addMarker(new Marker(
@@ -134,7 +133,7 @@ You can add markers to a map using the ``addMarker()`` method:
134133
Add Polygons
135134
~~~~~~~~~~~~
136135

137-
You can also add Polygons, which represents an area enclosed by a series of ``Point`` instances:
136+
You can also add Polygons, which represents an area enclosed by a series of ``Point`` instances::
138137

139138
$myMap->addPolygon(new Polygon(
140139
points: [

0 commit comments

Comments
 (0)