We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9e5d5d commit cf92daeCopy full SHA for cf92dae
src/openlayers/mapping/WebMap.js
@@ -1447,9 +1447,10 @@ export class WebMap extends ol.Observable {
1447
colTitles[i] = Util.trim(colTitles[i]);
1448
}
1449
1450
+ // 迁徙图xyField暂时用from中的
1451
let fileCode = layerInfo.projection,
- xIdx = colTitles.indexOf(Util.trim(layerInfo.xyField.xField)),
1452
- yIdx = colTitles.indexOf(Util.trim(layerInfo.xyField.yField)),
+ xIdx = colTitles.indexOf(Util.trim((layerInfo.xyField && layerInfo.xyField.xField) || (layerInfo.from && layerInfo.from.xField))),
1453
+ yIdx = colTitles.indexOf(Util.trim((layerInfo.xyField && layerInfo.xyField.yField) || (layerInfo.from && layerInfo.from.yField))),
1454
baseLayerEpsgCode = this.baseProjection,
1455
features = [];
1456
0 commit comments