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/05/10 05:53:42 UTC

[GitHub] [echarts] MafuyuRyan opened a new issue #14903: 注册成功的geoJSON map无法显示

MafuyuRyan opened a new issue #14903:
URL: https://github.com/apache/echarts/issues/14903


   ### Version
   5.1.1
   
   ### Steps to reproduce
   用typescript写的echarts, 已经可以通过getMap()看到,但是就是在页面上无法显示。
   是写的有什么问题吗,谢谢。
   
   **代码**:
   ![image](https://user-images.githubusercontent.com/50653281/117611973-05c66c00-b197-11eb-99b6-f1c73bc0a88d.png)
   
   geo是我自己引入的文件。
   
   **打印出来的console**:
   ![image](https://user-images.githubusercontent.com/50653281/117611987-0a8b2000-b197-11eb-96d0-ddca4423dc35.png)
   
   ### What is expected?
   正确显示地图
   
   ### What is actually happening?
   无法显示
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   


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



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


[GitHub] [echarts] MafuyuRyan commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
MafuyuRyan commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-842182330


   已经是true了。。不影响使用先这样吧 谢谢了


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



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-836216554


   @MafuyuRyan Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.


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



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


[GitHub] [echarts] MafuyuRyan closed issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
MafuyuRyan closed issue #14903:
URL: https://github.com/apache/echarts/issues/14903


   


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



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


[GitHub] [echarts] MafuyuRyan closed issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
MafuyuRyan closed issue #14903:
URL: https://github.com/apache/echarts/issues/14903


   


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



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


[GitHub] [echarts] MafuyuRyan commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
MafuyuRyan commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-842182330


   已经是true了。。不影响使用先这样吧 谢谢了


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



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


[GitHub] [echarts] MafuyuRyan commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
MafuyuRyan commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-836282232


   @plainheart 我的geoJSON里没有default 这是注册后里面自带的属性 而且js代码里是可以的 到ts就不行了 我看了js的console是这样的 就不知道怎么弄。。
   ![image](https://user-images.githubusercontent.com/50653281/117620058-a706ef80-b1a2-11eb-8b5d-18ec2ee0ae55.png)
   


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



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


[GitHub] [echarts] MafuyuRyan commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
MafuyuRyan commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-836238374


   demo: https://codesandbox.io/s/restless-fire-yofjl?file=/src/index.js
   
   demo里是可以的 是js,
   但是在我这里的typescript却不行
   
   ![image](https://user-images.githubusercontent.com/50653281/117614787-68216b80-b19b-11eb-88a7-978a0e5197b6.png)
   
   


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



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


[GitHub] [echarts] plainheart commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-836367243


   或许可以配置 tsconfig.json -> `esModuleInterop` 为 `true`
   ```ts
   import geo from 'xxxx.geo.json'
   ```


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



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


[GitHub] [echarts] MafuyuRyan commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
MafuyuRyan commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-836363208


   ![image](https://user-images.githubusercontent.com/50653281/117629617-edf9e280-b1ac-11eb-924a-0730e4fb9794.png)
   @plainheart 通过这种方式解决了 但我觉得不是很好 希望能帮忙给一个更好的方案 谢谢


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



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


[GitHub] [echarts] plainheart commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-836273252


   似乎导入的 JSON 多了一层 `default`


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



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14903: 注册成功的geoJSON map无法显示

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14903:
URL: https://github.com/apache/echarts/issues/14903#issuecomment-836214010






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



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