From 5901867b05f46881d7d6fad6f2ff9ef51047e1bd Mon Sep 17 00:00:00 2001 From: sushuang Date: Wed, 29 Nov 2017 11:58:44 +0800 Subject: [PATCH] Fix #7145 (parseGeoJSON and parseGeoJson) --- src/export.js | 5 ++++- test/lib/config.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/export.js b/src/export.js index 1d1f50dc9..328f1db28 100644 --- a/src/export.js +++ b/src/export.js @@ -12,6 +12,7 @@ import * as numberUtil from './util/number'; import * as formatUtil from './util/format'; import {throttle} from './util/throttle'; import * as ecHelper from './helper'; +import parseGeoJSON from './coord/geo/parseGeoJson'; export {zrender}; @@ -27,7 +28,9 @@ export {matrix}; export {vector}; export {colorTool as color}; export {default as env} from 'zrender/src/core/env'; -export {default as parseGeoJson} from './coord/geo/parseGeoJson'; + +export {parseGeoJSON}; +export var parseGeoJson = parseGeoJSON; var ecUtil = {}; zrUtil.each([ diff --git a/test/lib/config.js b/test/lib/config.js index b168a9bf6..32a52de97 100644 --- a/test/lib/config.js +++ b/test/lib/config.js @@ -111,7 +111,7 @@ ].join(';'); document.body.appendChild(dom); } - dom.innerHTML = content.join(''); + dom.innerHTML += content.join(''); } function pad(num, len) { -- GitLab