Browse Source

城市体检-geometryLine结构修改20250418-05

zhiyuan-007 3 days ago
parent
commit
76c3692e95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/cstj/problemsMain/index.vue

+ 1 - 1
src/views/cstj/problemsMain/index.vue

@@ -483,7 +483,7 @@ function toFullGeoJson(shape){
   if(singleForm.value.type == "polygon"){
     return {"type":"Polygon","crs":{"type":"name","properties":{"name":"EPSG:3857"}},"coordinates":shape}
   }else if(singleForm.value.type == "polyline"){
-    return {"type":"LineString","crs":{"type":"name","properties":{"name":"EPSG:3857"}},"coordinates":shape}
+    return {"type":"LineString","crs":{"type":"name","properties":{"name":"EPSG:3857"}},"coordinates":shape[0]}
   }else if(singleForm.value.type == "point"){
     return {"type":"Point","crs":{"type":"name","properties":{"name":"EPSG:3857"}},"coordinates":shape}
   }