I am currently utilizing Echarts along with Angular to showcase a map.
The requirement is for the map to be zoomable (which is achieved through roaming: true
in the chart settings), as well as to switch to a different map upon reaching a certain level of zoom.
For instance, if the zoom is below 150%, I would like to display a map of my country featuring various regions. However, once the zoom exceeds 150%, I intend on loading a more detailed map showing territories within those regions.
Is it feasible to implement this with echarts?
While attempting to listen to mouse scroll events, I faced some challenges: My access to the event is restricted to scrolling within the echarts component and not directly on the map itself. Whenever I do scroll on the map, the zoom action occurs but no mouse scroll event is registered.
Could someone suggest a workaround to help me achieve this objective? Thank you!