You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ComponentView.js 495B

123456789101112131415161718192021
  1. /**
  2. * @Author: Caven
  3. * @Date: 2020-02-02 16:34:40
  4. */
  5. export default echarts.extendComponentView({
  6. type: 'GLMap',
  7. init: function(ecModel, api) {
  8. this.api = api
  9. echarts.viewer.scene.postRender.addEventListener(this.moveHandler, this)
  10. },
  11. moveHandler: function(t, e) {
  12. this.api.dispatchAction({
  13. type: 'GLMapRoam'
  14. })
  15. },
  16. render: function(t, e, i) {},
  17. dispose: function(t) {
  18. echarts.viewer.scene.postRender.removeEventListener(this.moveHandler, this)
  19. }
  20. })