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.

index.js 641B

1234567891011121314151617181920212223242526272829303132
  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 } from '@dc-modules/exts'
  8. const Cesium = require('@cesium/engine')
  9. Cesium['Viewer'] = CesiumViewer
  10. Cesium['GroundSkyBox'] = GroundSkyBox
  11. let DC = {
  12. version: __VERSION__,
  13. accessToken: '',
  14. baseUrl: './libs/dc-sdk/resources/',
  15. author: __AUTHOR__,
  16. home_page: __HOME_PAGE__,
  17. Namespace: { Cesium, turf },
  18. Initialized: false
  19. }
  20. // init global api
  21. initMixin(DC)
  22. initUse(DC)
  23. DC.init = callback => {
  24. callback && callback()
  25. }
  26. export default DC