Closed trankhacvy closed 5 years ago
I just wonder how we can create a Polygon from a list of coordinates. I have researched but can't find any solution.
Coordinates look like: const coordinates = [{lng1, lat1}, {lng2, lat2}, {lng3, lat3}, {lng4, lat4}, {lng5, lat5} ].
const coordinates = [{lng1, lat1}, {lng2, lat2}, {lng3, lat3}, {lng4, lat4}, {lng5, lat5} ]
Please help !!
Use stackoverflow for questions like this.
I just wonder how we can create a Polygon from a list of coordinates. I have researched but can't find any solution.
Coordinates look like:
const coordinates = [{lng1, lat1}, {lng2, lat2}, {lng3, lat3}, {lng4, lat4}, {lng5, lat5} ]
.Please help !!