瀏覽代碼

添加场景缩放类别

tags/1.13.3
Caven Chen 4 年之前
父節點
當前提交
4a215cfe1f
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/core/widget/ZoomController.js

+ 5
- 0
src/core/widget/ZoomController.js 查看文件

@@ -6,6 +6,7 @@
import Widget from './Widget'
import { DomUtil } from '../utils'
import Icon from '../icon'
import State from '@/core/state/State'

const { Cesium } = DC.Namespace

@@ -16,6 +17,8 @@ class ZoomController extends Widget {
this._zoomInEl = undefined
this._zoomOutEl = undefined
this._refreshEl = undefined
this.type = Widget.getWidgetType('zoom_controller')
this._state = State.INITIALIZED
}

/**
@@ -181,4 +184,6 @@ class ZoomController extends Widget {
}
}

Widget.registerType('zoom_controller')

export default ZoomController

Loading…
取消
儲存