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 2020/04/26 11:23:15 UTC

[incubator-echarts] branch fix-geo-name-property created (now 1360a8e)

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

shenyi pushed a change to branch fix-geo-name-property
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git.


      at 1360a8e  fix(geo): fix default name property when parsing GeoJSON

This branch includes the following new commits:

     new 1360a8e  fix(geo): fix default name property when parsing GeoJSON

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[incubator-echarts] 01/01: fix(geo): fix default name property when parsing GeoJSON

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch fix-geo-name-property
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 1360a8e3d3c2b3f8a593b2671e03de7c2b432c01
Author: pissang <bm...@gmail.com>
AuthorDate: Sun Apr 26 19:22:37 2020 +0800

    fix(geo): fix default name property when parsing GeoJSON
---
 src/coord/geo/parseGeoJson.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/coord/geo/parseGeoJson.js b/src/coord/geo/parseGeoJson.js
index f2348f8..e7f7530 100644
--- a/src/coord/geo/parseGeoJson.js
+++ b/src/coord/geo/parseGeoJson.js
@@ -137,7 +137,7 @@ export default function (geoJson, nameProperty) {
         }
 
         var region = new Region(
-            properties[nameProperty],
+            properties[nameProperty || 'name'],
             geometries,
             properties.cp
         );


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