Skip to content

Commit b8bd8a1

Browse files
committed
解决报错
1 parent c402bc8 commit b8bd8a1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ export const PI = 3.1415926535897932384626; // PI
88
export const a = 6378245.0; // 北京54坐标系长半轴a=6378245m
99
export const ee = 0.00669342162296594323;
1010

11-
import _proj4 from '../node_modules/proj4'
11+
// import _proj4 from '../node_modules/proj4'
1212
import _ol from '../node_modules/openlayers'
1313
// import _olx from '../node_modules/openlayers/externs'
1414
// import _olx from '../node_modules/openlayers/externs/olx'
1515

1616
import _config from './config/config'
1717

1818
export const ol = _ol;
19-
export const proj4 = _proj4;
19+
// export const proj4 = _proj4;
2020
// export const olx = _olx;
2121
export const config = _config

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const HMap = {};
22
HMap.version = require('../package.json').version;
3-
import {ol, proj4} from './constants'
3+
import {ol} from './constants'
44
import Map from './map/Map'
55
import Layer from './layer/Layer'
66
import Feature from './feature/feature'
@@ -12,7 +12,7 @@ import Measure from './plugins/Measure'
1212
import MeasureTool from './plugins/MeasureTool'
1313

1414
HMap.ol = ol;
15-
HMap.proj4 = proj4;
15+
// HMap.proj4 = proj4;
1616
HMap.Map = Map;
1717
HMap.Layer = Layer;
1818
HMap.Feature = Feature;

0 commit comments

Comments
 (0)