Skip to content

Commit 3e5840a

Browse files
committed
[Map][Docs] Correct and reword typos about polygons
1 parent af0dd3a commit 3e5840a

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)