fix: map series depends on geo component in buildCode
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 @@
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]);