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 2021/09/07 09:47:29 UTC

[GitHub] [echarts] xinghehaohan edited a comment on issue #15527: typeScript 下 echarts.registerMap,提示错误,怎么解决

xinghehaohan edited a comment on issue #15527:
URL: https://github.com/apache/echarts/issues/15527#issuecomment-914160862


   echarts.registerMap('china', (china) as any);
   echarts.registerMap('world', (world) as any);
   echarts.registerMap('USA', (usa) as any, {
     Alaska: {
       // 把阿拉斯加移到美国主大陆左下方
       left: -143,
       top: 50,
       width: 15
     },
     Hawaii: {
       left: -135,        // 夏威夷
       top: 24,
       width: 5
     }
   });
   
   ### 加  (usa) as any 可以解决这个bug


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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