You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2022/03/18 04:15:32 UTC

[echarts] 01/02: chore: fix map data decode util

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

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

commit ff53c0d3a9bd25eff9496571b6acbea2d9f7e81e
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Mar 16 14:03:01 2022 +0800

    chore: fix map data decode util
---
 test/data/map/decode.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/data/map/decode.js b/test/data/map/decode.js
index 6f61e70..6e7bbc1 100644
--- a/test/data/map/decode.js
+++ b/test/data/map/decode.js
@@ -18,7 +18,7 @@
 */
 
 function decode(json) {
-    if (json.UTF8Encoding) {
+    if (!json.UTF8Encoding) {
         return;
     }
     var jsonCompressed = json;
@@ -48,7 +48,7 @@ function decode(json) {
                 decodeRings(coordinates, encodeOffsets, encodeScale);
                 break;
             case 'MultiPolygon':
-                zrUtil.each(coordinates, function (rings, idx) {
+                coordinates.forEach(function (rings, idx) {
                     return decodeRings(rings, encodeOffsets[idx], encodeScale)
                 });
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org