diff --git a/src/constants.js b/src/constants.js index 9a84ee3..6824782 100644 --- a/src/constants.js +++ b/src/constants.js @@ -8,7 +8,7 @@ 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' @@ -16,6 +16,6 @@ import _ol from '../node_modules/openlayers' 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 \ No newline at end of file diff --git a/src/index.js b/src/index.js index 425deb7..76e519e 100644 --- a/src/index.js +++ b/src/index.js @@ -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' @@ -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;