diff --git a/src/Map/doc/index.rst b/src/Map/doc/index.rst index be16614c0ed..e337b9ab5a3 100644 --- a/src/Map/doc/index.rst +++ b/src/Map/doc/index.rst @@ -120,7 +120,7 @@ A map is created by calling ``new Map()``. You can configure the center, zoom, a ; // 3. You can also add Polygons, which represents an area enclosed by a series of `Point` instances - $map->addPolygon(new Polygon( + $myMap->addPolygon(new Polygon( points: [ new Point(48.8566, 2.3522), new Point(45.7640, 4.8357),