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.

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * @Author: Caven
  3. * @Date: 2021-03-12 16:45:45
  4. */
  5. import * as turf from '@turf/turf'
  6. import { initMixin, initUse } from '@dc-modules/global-api'
  7. import { CesiumViewer, GroundSkyBox, BaseLayerPicker } from '@dc-modules/exts'
  8. const Cesium = require('@cesium/engine')
  9. Cesium['Viewer'] = CesiumViewer
  10. Cesium['GroundSkyBox'] = GroundSkyBox
  11. Cesium['BaseLayerPicker'] = BaseLayerPicker
  12. let DC = {
  13. version: __VERSION__,
  14. accessToken: '',
  15. baseUrl: './libs/dc-sdk/resources/',
  16. author: __AUTHOR__,
  17. home_page: __HOME_PAGE__,
  18. Namespace: { Cesium, turf },
  19. Initialized: false
  20. }
  21. // init global api
  22. initMixin(DC)
  23. initUse(DC)
  24. DC.init = callback => {
  25. callback && callback()
  26. }
  27. export default DC