You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/12/08 15:12:00 UTC

[GitHub] [incubator-echarts] alex2wong commented on issue #11799: 地图geojson中properties键值为大写时的问题

alex2wong commented on issue #11799: 地图geojson中properties键值为大写时的问题
URL: https://github.com/apache/incubator-echarts/issues/11799#issuecomment-562958366
 
 
   @yuanqiangxie  目前Echarts 中的 geojsonParser 只支持 properties.name 作为 key 去标识 region 对象,所以要么你批量修改下你的数据,改成小写name,或者我们改下 parseGeoJson.js 的一行,虽然我觉得没必要。你们觉得呢? @yufeng04 @Ovilia 
   
   https://github.com/apache/incubator-echarts/blob/master/src/coord/geo/parseGeoJson.js#L139
   `
   var region = new Region(
               properties.name,   // properties.name || properties.NAME
               geometries,
               properties.cp
           );
   `
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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