Skip to content

Commit

Permalink
minor #2339 Update index.rst (LesRouxDominerontLeMonde)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Kocal committed Nov 4, 2024
2 parents 65e59d1 + 64498a6 commit e514572
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Map/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,12 @@ Start by creating a new map instance::
Center and zoom
~~~~~~~~~~~~~~~

You can set the center and zoom of the map using the ``center()`` and ``zoom()`` methods:
You can set the center and zoom of the map using the ``center()`` and ``zoom()`` methods::

use Symfony\UX\Map\Map;
use Symfony\UX\Map\Point;
$myMap

// Explicitly set the center and zoom
->center(new Point(46.903354, 1.888334))
->zoom(6)
Expand All @@ -96,7 +95,7 @@ You can set the center and zoom of the map using the ``center()`` and ``zoom()``
Add markers
~~~~~~~~~~~

You can add markers to a map using the ``addMarker()`` method:
You can add markers to a map using the ``addMarker()`` method::

$myMap
->addMarker(new Marker(
Expand Down Expand Up @@ -134,7 +133,7 @@ You can add markers to a map using the ``addMarker()`` method:
Add Polygons
~~~~~~~~~~~~

You can also add Polygons, which represents an area enclosed by a series of ``Point`` instances:
You can also add Polygons, which represents an area enclosed by a series of ``Point`` instances::

$myMap->addPolygon(new Polygon(
points: [
Expand Down

0 comments on commit e514572

Please sign in to comment.