File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1428,7 +1428,6 @@ export class WebMap extends Observable {
1428
1428
if ( data . type === "JSON" || data . type === "GEOJSON" ) {
1429
1429
data . content = data . content . type ? data . content : JSON . parse ( data . content ) ;
1430
1430
features = that . geojsonToFeature ( data . content , layer ) ;
1431
-
1432
1431
} else if ( data . type === 'EXCEL' || data . type === 'CSV' ) {
1433
1432
if ( layer . dataSource && layer . dataSource . administrativeInfo ) {
1434
1433
//行政规划信息
@@ -1439,6 +1438,10 @@ export class WebMap extends Observable {
1439
1438
} else {
1440
1439
features = await that . excelData2Feature ( data . content , layer ) ;
1441
1440
}
1441
+ } else if ( data . type === 'SHP' ) {
1442
+ let content = JSON . parse ( data . content ) ;
1443
+ data . content = content . layers [ 0 ] ;
1444
+ features = that . geojsonToFeature ( data . content , layer ) ;
1442
1445
}
1443
1446
that . addLayer ( layer , features , layerIndex ) ;
1444
1447
that . layerAdded ++ ;
You can’t perform that action at this time.
0 commit comments