eapatel edited a comment on issue #15256:
URL: https://github.com/apache/echarts/issues/15256#issuecomment-871141885
I called this.setOption() in onChartInit() and after that getting the
leaflet map instance.
```
onChartInit(echarts: any) {
this.echartsInstance = echarts;
// setting echarts option
this.setOptions();
// getting leaflet instance and setting options (e.g. setMaxBounds,
tileLayers etc)
this.initMap();
}
```
```
<div echarts
[options]="option"
(chartInit)="onChartInit($event)" // called when chart is initialized
>
</div>
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]