I'm looking to reposition a JavaScript map based on GeoJSON data. Can I calculate the center point of a Polygon from its array of coordinates
? e.g. with:
{
"data": {
"type": "Polygon",
"coordinates": [
[
[
-9.31640625,
43.83452678223682
],
/* etc */
]
]
}
}