Skip to content

Commit 4673bc7

Browse files
committed
修改GeoJSON多线转换缺失问题 reviewe by caoxinke
1 parent cc40731 commit 4673bc7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/iclient9-leaflet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@
12171217
lineList.push(pointList);
12181218
geoPoints.splice(0, geoParts[i]);
12191219
}
1220-
return {type: "LineString", components: lineList};
1220+
return {type: "MultiLineString", components: lineList};
12211221
}
12221222

12231223
},

dist/iclient9-openlayers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@
11821182
lineList.push(pointList);
11831183
geoPoints.splice(0, geoParts[i]);
11841184
}
1185-
return {type: "LineString", components: lineList};
1185+
return {type: "MultiLineString", components: lineList};
11861186
}
11871187

11881188
},

src/Core/format/GeoJSON.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ SuperMap.Format.GeoJSON = SuperMap.Class(SuperMap.Format.JSON, {
790790
lineList.push(pointList);
791791
geoPoints.splice(0, geoParts[i]);
792792
}
793-
return {type: "LineString", components: lineList};
793+
return {type: "MultiLineString", components: lineList};
794794
}
795795

796796
},

0 commit comments

Comments
 (0)