Skip to content

Commit ca275c3

Browse files
committed
[bug] DV-176 二进制:按行政区划上传数据,设置自动刷新,保存分享,分享页面有刷新的请求,但是没有出图
review by zhaoq
1 parent 07bfec1 commit ca275c3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,15 @@ export class WebMap extends Observable {
15381538
}
15391539
var features;
15401540
if (data.type === 'CSV' || data.type === 'EXCEL') {
1541-
features = that.excelData2Feature(data.content, layerInfo);
1541+
if (layerInfo.dataSource && layerInfo.dataSource.administrativeInfo) {
1542+
//行政规划信息
1543+
data.content.rows.unshift(data.content.colTitles);
1544+
let { divisionType, divisionField } = layerInfo.dataSource.administrativeInfo;
1545+
let geojson = that.excelData2FeatureByDivision(data.content, divisionType, divisionField);
1546+
features = that._parseGeoJsonData2Feature({ allDatas: { features: geojson.features }, fileCode: layerInfo.projection });
1547+
} else {
1548+
features = that.excelData2Feature(data.content, layerInfo);
1549+
}
15421550
} else {
15431551
var geoJson = data.content ? JSON.parse(data.content) : data;
15441552
features = that.geojsonToFeature(geoJson, layerInfo);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy