Skip to content

Commit cb9dc5b

Browse files
committed
minor #3035 [Map] Correct and reword typos about polygons (Kocal)
This PR was merged into the 2.x branch. Discussion ---------- [Map] Correct and reword typos about polygons | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | yes <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | 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. - Update/add documentation as required (we can help!) - 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). --> Spotted while workign on E2E test for Map Commits ------- 3e5840a [Map][Docs] Correct and reword typos about polygons
2 parents af0dd3a + 3e5840a commit cb9dc5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Map/doc/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ You can also add Polygons, which represents an area enclosed by a series of ``Po
191191

192192
`Polygon` with holes is available since UX Map 2.26.
193193

194-
Since UX Map 2.26, you can also create polygons with holes in them, by passing an array of `array<Point>` to `points` parameter::
194+
Since UX Map 2.26, you can create polygons with holes by using an array of ``array<Point>``::
195195

196-
// Draw a polygon with a hole in it, on the French map
196+
// Draw a polygon with a hole in it, on the France map
197197
$map->addPolygon(new Polygon(points: [
198198
// First path, the outer boundary of the polygon
199199
[
@@ -203,7 +203,7 @@ Since UX Map 2.26, you can also create polygons with holes in them, by passing a
203203
new Point(43.296482, 5.369780), // Marseille
204204
new Point(44.837789, -0.579180), // Bordeaux
205205
],
206-
// Second path, it will make a hole in the previous one
206+
// Second path, making a hole in the first path
207207
[
208208
new Point(45.833619, 1.261105), // Limoges
209209
new Point(45.764043, 4.835659), // Lyon

0 commit comments

Comments
 (0)