toGeoJson( data: | Record<string, any> | Feature<Geometry, GeoJsonProperties> | FeatureCollection<Geometry, GeoJsonProperties> | GeometryCollection<Geometry>,): FeatureCollection 参数
- data:
| Record<string, any>
| Feature<Geometry, GeoJsonProperties>
| FeatureCollection<Geometry, GeoJsonProperties>
| GeometryCollection<Geometry>
返回 FeatureCollection
将TopoJson,GeometryCollection,不标准格式比如只有geometries或只有feature的格式转为标准GeoJson格式