Skip to content

Commit

Permalink
解决报错
Browse files Browse the repository at this point in the history
  • Loading branch information
sakitam-fdd committed Apr 8, 2017
1 parent c402bc8 commit b8bd8a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export const PI = 3.1415926535897932384626; // PI
export const a = 6378245.0; // 北京54坐标系长半轴a=6378245m
export const ee = 0.00669342162296594323;

import _proj4 from '../node_modules/proj4'
// import _proj4 from '../node_modules/proj4'
import _ol from '../node_modules/openlayers'
// import _olx from '../node_modules/openlayers/externs'
// import _olx from '../node_modules/openlayers/externs/olx'

import _config from './config/config'

export const ol = _ol;
export const proj4 = _proj4;
// export const proj4 = _proj4;
// export const olx = _olx;
export const config = _config
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const HMap = {};
HMap.version = require('../package.json').version;
import {ol, proj4} from './constants'
import {ol} from './constants'
import Map from './map/Map'
import Layer from './layer/Layer'
import Feature from './feature/feature'
Expand All @@ -12,7 +12,7 @@ import Measure from './plugins/Measure'
import MeasureTool from './plugins/MeasureTool'

HMap.ol = ol;
HMap.proj4 = proj4;
// HMap.proj4 = proj4;
HMap.Map = Map;
HMap.Layer = Layer;
HMap.Feature = Feature;
Expand Down

0 comments on commit b8bd8a1

Please sign in to comment.