You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Zeng-Fan-Yi (via GitHub)" <gi...@apache.org> on 2023/09/28 01:13:37 UTC

[GitHub] [echarts] Zeng-Fan-Yi opened a new issue, #19162: [Bug] When using Baidu map extension, once I call map.clearOverlays method, drag map again, bmap.js file will report error, it seems that some overlays that are not defined by me have been cleared by mistake. And I am in Baidu map superimposed on the thermal map will also be clearOverlays method clearance, what is the solution?

Zeng-Fan-Yi opened a new issue, #19162:
URL: https://github.com/apache/echarts/issues/19162

   ### Version
   
   *
   
   ### Link to Minimal Reproduction
   
   When using Baidu map extension, once I call map.clearOverlays method, drag map again, bmap.js file will report error, it seems that some overlays that are not defined by me have been cleared by mistake. And I am in Baidu map superimposed on the thermal map will also be clearOverlays method clearance, what is the solution?
   
   ### Steps to Reproduce
   
   When using Baidu map extension, once I call map.clearOverlays method, drag map again, bmap.js file will report error, it seems that some overlays that are not defined by me have been cleared by mistake. And I am in Baidu map superimposed on the thermal map will also be clearOverlays method clearance, what is the solution?
   
   ### Current Behavior
   
   When using Baidu map extension, once I call map.clearOverlays method, drag map again, bmap.js file will report error, it seems that some overlays that are not defined by me have been cleared by mistake. And I am in Baidu map superimposed on the thermal map will also be clearOverlays method clearance, what is the solution?
   
   ### Expected Behavior
   
   When using Baidu map extension, once I call map.clearOverlays method, drag map again, bmap.js file will report error, it seems that some overlays that are not defined by me have been cleared by mistake. And I am in Baidu map superimposed on the thermal map will also be clearOverlays method clearance, what is the solution?
   
   ### Environment
   
   ```markdown
   When using Baidu map extension, once I call map.clearOverlays method, drag map again, bmap.js file will report error, it seems that some overlays that are not defined by me have been cleared by mistake. And I am in Baidu map superimposed on the thermal map will also be clearOverlays method clearance, what is the solution?
   ```
   
   
   ### Any additional comments?
   
   When using Baidu map extension, once I call map.clearOverlays method, drag map again, bmap.js file will report error, it seems that some overlays that are not defined by me have been cleared by mistake. And I am in Baidu map superimposed on the thermal map will also be clearOverlays method clearance, what is the solution?


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


Re: [I] [Bug] Baidu Map extension throws error after calling `map.clearOverlays` [echarts]

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart closed issue #19162: [Bug] Baidu Map extension throws error after calling `map.clearOverlays`
URL: https://github.com/apache/echarts/issues/19162


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


[GitHub] [echarts] plainheart commented on issue #19162: [Bug] When using Baidu map extension, once I call map.clearOverlays method, drag map again, bmap.js file will report error, it seems that some overlays that are not defined by me have been cleared by mistake. And I am in Baidu map superimposed on the thermal map will also be clearOverlays method clearance, what is the solution?

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #19162:
URL: https://github.com/apache/echarts/issues/19162#issuecomment-1738908272

   百度地图的 clearOverlays 会把包括 ECharts 图层在内的所有覆盖物都清除,因为 ECharts 也是借助百度地图的自定义 Overlay 来实现的。建议不要使用 `clearOverlays` API 来清除内容,而是在添加覆盖物之后自行保存,并使用 `removeOverlay` API 删除不需要的。


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