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'
2222
2323import provincialCenterData from './webmap/config/ProvinceCenter.json' ; // eslint-disable-line import/extensions
2424import 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
2626
2727import GeoJSON from 'ol/format/GeoJSON' ;
2828import MVT from 'ol/format/MVT' ;
@@ -1837,7 +1837,7 @@ export class WebMap extends Observable {
18371837 }
18381838 } else if ( dataSource . type === 'SAMPLE_DATA' ) {
18391839 // 示例数据从本地拿xyField
1840- const sampleData = SampleData . find ( item => item . id === dataSource . name ) || { } ;
1840+ const sampleData = SampleDataInfo . find ( item => item . id === dataSource . name ) || { } ;
18411841 xField = sampleData . xField ;
18421842 yField = sampleData . yField
18431843 layerInfo . xyField = {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments