This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git


The following commit(s) were added to refs/heads/next by this push:
     new 118b589  fix: map series depends on geo component in buildCode
118b589 is described below

commit 118b5890bcfd8e30b5e112138241eceff9fc6ef9
Author: pissang <[email protected]>
AuthorDate: Mon Jan 18 20:16:34 2021 +0800

    fix: map series depends on geo component in buildCode
---
 common/buildCode.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/common/buildCode.js b/common/buildCode.js
index 6ee2f42..a91d8fb 100644
--- a/common/buildCode.js
+++ b/common/buildCode.js
@@ -166,6 +166,10 @@ module.exports.collectDeps = function collectDeps(option) {
         if (CHARTS_GL_MAP[seriesOpt.type]) {
             deps.push(CHARTS_GL_MAP[seriesOpt.type]);
         }
+        if (seriesOpt.type === 'map') {
+            // Needs geo component when using map
+            deps.push(COMPONENTS_MAP.geo);
+        }
         MARKERS.forEach(markerType => {
             if (seriesOpt[markerType]) {
                 deps.push(COMPONENTS_MAP[markerType]);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to