File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { DataFlowService } from '../services'
22
22
23
23
import provincialCenterData from './webmap/config/ProvinceCenter.json' ; // eslint-disable-line import/extensions
24
24
import municipalCenterData from './webmap/config/MunicipalCenter.json' ; // eslint-disable-line import/extensions
25
- import SampleData from './webmap/config/SampleData .json' ; // eslint-disable-line import/extensions
25
+ import SampleDataInfo from './webmap/config/SampleDataInfo .json' ; // eslint-disable-line import/extensions
26
26
27
27
import GeoJSON from 'ol/format/GeoJSON' ;
28
28
import MVT from 'ol/format/MVT' ;
@@ -1837,7 +1837,7 @@ export class WebMap extends Observable {
1837
1837
}
1838
1838
} else if ( dataSource . type === 'SAMPLE_DATA' ) {
1839
1839
// 示例数据从本地拿xyField
1840
- const sampleData = SampleData . find ( item => item . id === dataSource . name ) || { } ;
1840
+ const sampleData = SampleDataInfo . find ( item => item . id === dataSource . name ) || { } ;
1841
1841
xField = sampleData . xField ;
1842
1842
yField = sampleData . yField
1843
1843
layerInfo . xyField = {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments