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 2022/06/07 09:20:16 UTC
[GitHub] [echarts] gabrielnemeth opened a new issue, #17174: [Bug] Map initialization problem in Angular
gabrielnemeth opened a new issue, #17174:
URL: https://github.com/apache/echarts/issues/17174
### Version
5.3.2
### Link to Minimal Reproduction
https://stackblitz.com/edit/angular-ivy-7kavza?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html
### Steps to Reproduce
Just open the example and if it is loaded properly on the first run, refresh the app.
### Current Behavior
The map is not rendered and there are errors in the console:
```
Map USA not exists. The GeoJSON of the map must be provided.
Error: Cannot read properties of undefined (reading 'regions')
[ECharts] `resize` should not be called during main process.
```
### Expected Behavior
Render the map and not throw an error.
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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.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
[GitHub] [echarts] Ovilia commented on issue #17174: [Bug] Map initialization problem in Angular
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #17174:
URL: https://github.com/apache/echarts/issues/17174#issuecomment-1149499684
Maps should be registered before calling `echarts.init`. See the [demo](https://echarts.apache.org/examples/zh/editor.html?c=map-usa).
--
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