我有一个包含多个多边形的 GeoJson 文件。像这样的东西。
我使用 Leaflet 在网站中呈现这个 GeoJson。
我想围绕包围所有多边形的多边形绘制轮廓。像这样的东西。

我正在使用的 GeoJSOn 格式:
{
"features": [
{
"geometry": {
"coordinates": [
[
[
1074.426,
-1136.986
],
[
1088.241,
-1123.171
]
]
],
"type": "Polygon"
},
"properties": {
"number": "2009",
"type": "",
"spaceid": null,
"alias": null,
"roomkey": "5/2009"
},
"type": "Feature"
}
],
"bbox": [
2445.578,
2445.578
],
"crs": {
"properties": {
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
},
"type": "name"
},
"type": "FeatureCollection"
Run Code Online (Sandbox Code Playgroud)
}
任何指针都会有帮助:)谢谢