From 3e5840aa834c14462fc1661413fb36361e5d8a30 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 20 Aug 2025 15:07:20 +0200 Subject: [PATCH] [Map][Docs] Correct and reword typos about polygons --- src/Map/doc/index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Map/doc/index.rst b/src/Map/doc/index.rst index 4b6cfcf9766..79dda97fa87 100644 --- a/src/Map/doc/index.rst +++ b/src/Map/doc/index.rst @@ -191,9 +191,9 @@ You can also add Polygons, which represents an area enclosed by a series of ``Po `Polygon` with holes is available since UX Map 2.26. -Since UX Map 2.26, you can also create polygons with holes in them, by passing an array of `array` to `points` parameter:: +Since UX Map 2.26, you can create polygons with holes by using an array of ``array``:: - // Draw a polygon with a hole in it, on the French map + // Draw a polygon with a hole in it, on the France map $map->addPolygon(new Polygon(points: [ // First path, the outer boundary of the polygon [ @@ -203,7 +203,7 @@ Since UX Map 2.26, you can also create polygons with holes in them, by passing a new Point(43.296482, 5.369780), // Marseille new Point(44.837789, -0.579180), // Bordeaux ], - // Second path, it will make a hole in the previous one + // Second path, making a hole in the first path [ new Point(45.833619, 1.261105), // Limoges new Point(45.764043, 4.835659), // Lyon