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.

README.md 7.0KB

5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
4 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
4 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
4 yıl önce
4 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
4 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
4 yıl önce
4 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
5 yıl önce
4 yıl önce
5 yıl önce
5 yıl önce
4 yıl önce
5 yıl önce
5 yıl önce
4 yıl önce
5 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. # DC-SDK
  2. <p>
  3. <img src="https://img.shields.io/github/workflow/status/dvgis/dc-sdk/publish"/>
  4. <img src="https://img.shields.io/badge/license-Apache%202-blue"/>
  5. <img src="https://img.shields.io/npm/v/@dvgis/dc-sdk?color=orange&logo=npm" />
  6. <img src="https://img.shields.io/npm/dm/@dvgis/dc-sdk?logo=npm"/>
  7. </p>
  8. [**🇨🇳 中文**](./README_zh.md) | [**🇬🇧English**](./README.md)
  9. > DC-SDK is a 2D and 3D integrated WebGis application framework based on the secondary development of Cesium. This framework optimizes the usage mode of Cesium and adds some additional functions, aiming to build WebGis applications for developers quickly.
  10. > [Home Page](http://dc.dvgis.cn)
  11. ```warningH
  12. Tips:This SDK is JS+GIS framework package. Developers need to have some front-end technology and GIS related technology
  13. ```
  14. ## Installation
  15. `CDN`
  16. ```html
  17. <!--Basic Package-->
  18. <script src="libs/dc-sdk/dc.base.min.js"></script>
  19. <!--Core Package-->
  20. <script src="libs/dc-sdk/dc.core.min.js"></script>
  21. <!--Main Style Sheet -->
  22. <link href="libs/dc-sdk/dc.core.min.css" rel="stylesheet" type="text/css" />
  23. ```
  24. `NPM / YARN`
  25. ```shell
  26. yarn add @dvgis/dc-sdk
  27. npm install @dvgis/dc-sdk
  28. ```
  29. ```js
  30. import DC from 'dvgis/dc-sdk/dist/dc.base.min' //Basic Package
  31. import DcCore from 'dvgis/dc-sdk/dist/dc.core.min' //Core Package
  32. import 'dvgis/dc-sdk/dist/dc.core.min.css' // Main Style Sheet
  33. ```
  34. ## Setting
  35. `Webpack`
  36. ```js
  37. // webpack.config.js
  38. const path = require('path')
  39. const CopywebpackPlugin = require('copy-webpack-plugin')
  40. const dvgisDist = './node_modules/@dvgis'
  41. module.exports = {
  42. // other settings
  43. resolve: {
  44. alias: {
  45. dvgis: path.resolve(__dirname, dvgisDist)
  46. }
  47. },
  48. plugins:[
  49. new CopyWebpackPlugin([
  50. {
  51. from: path.join(dvgisDist, 'dc-sdk/dist/resources'),
  52. to: 'libs/dc-sdk/resources'
  53. }
  54. ])
  55. ]
  56. }
  57. ```
  58. `Vue2.x`
  59. ```js
  60. // vue.config.js
  61. const path = require('path')
  62. const CopywebpackPlugin = require('copy-webpack-plugin')
  63. const dvgisDist = './node_modules/@dvgis'
  64. module.exports = {
  65. // other settings
  66. chainWebpack: config => {
  67. config.resolve.alias.set('dvgis', path.resolve(__dirname, dvgisDist))
  68. config.plugin('copy').use(CopywebpackPlugin, [
  69. [
  70. {
  71. from: path.join(dvgisDist, 'dc-sdk/dist/resources'),
  72. to: 'libs/dc-sdk/resources'
  73. }
  74. ]
  75. ])
  76. }
  77. }
  78. ```
  79. `Vue3.x`
  80. ```js
  81. // vue.config.js
  82. const path = require('path')
  83. const CopywebpackPlugin = require('copy-webpack-plugin')
  84. const dvgisDist = './node_modules/@dvgis'
  85. module.exports = {
  86. // other settings
  87. chainWebpack: config => {
  88. config.resolve.alias.set('dvgis', path.resolve(__dirname, dvgisDist))
  89. config.plugin('copy').use(CopywebpackPlugin, [
  90. {
  91. patterns: [
  92. {
  93. from: path.join(dvgisDist, 'dc-sdk/dist/resources'),
  94. to: path.join(__dirname, 'dist', 'libs/dc-sdk/resources'),
  95. },
  96. ],
  97. }
  98. ])
  99. }
  100. }
  101. ```
  102. ## Start
  103. ```js
  104. global.DC = DC
  105. DC.use(DcCore)
  106. DC.ready(() => {
  107. let viewer = new DC.Viewer(divId) // divId is the Id attribute value of a div node. If it is not passed in, the 3D scene cannot be initialized
  108. })
  109. ```
  110. ## Documentation
  111. [DC Api](https://resource.dvgis.cn/dc-api)
  112. [Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/)
  113. ## Demo
  114. | ![picture](http://dc.dvgis.cn/examples/images/baselayer/google.png) | ![picture](http://dc.dvgis.cn/examples/images/baselayer/baidu.png?v=1) | ![picture](http://dc.dvgis.cn/examples/images/baselayer/tdt.png?v=1) | ![picture](http://dc.dvgis.cn/examples/images/baselayer/arcgis.png) |
  115. | :-----------------------------------------------------------: | :-----------------------------------------------------------: | :------------------------------------------------------------------: | :--------------------------------------------------------------: |
  116. | ![picture](http://dc.dvgis.cn/examples/images/scene/globe_rotate.gif) | ![picture](http://dc.dvgis.cn/examples/images/mini-scene/factory.gif) | ![picture](http://dc.dvgis.cn/examples/images/layer/cluster_circle.gif) | ![picture](http://dc.dvgis.cn/examples/images/model/shp_custom_shader.gif) |
  117. | ![picture](http://dc.dvgis.cn/examples/images/overlay/polyline_image_trail.gif) | ![picture](http://dc.dvgis.cn/examples/images/overlay/wall_trail.gif) | ![picture](http://dc.dvgis.cn/examples/images/overlay/water.gif) | ![picture](http://dc.dvgis.cn/examples/images/overlay/plot-overlay.png) |
  118. [More>>](http://dc.dvgis.cn/#/examples)
  119. ## Ecosystem
  120. | Module | Status | Description |
  121. | :------ | :------: | :------ |
  122. | [dc-plugins](https://github.com/dvgis/dc-plugins) | <img src="https://img.shields.io/npm/v/@dvgis/dc-plugins?logo=npm" /> | dc plug-in module, including scene animation, roaming, and some additional materials |
  123. | [dc-overlay](https://github.com/dvgis/dc-overlay) | <img src="https://img.shields.io/npm/v/@dvgis/dc-overlay?logo=npm" /> | dc overlay module, including ellipsoid, cylinder, corridor, water surface, etc |
  124. | [dc-plot](https://github.com/dvgis/dc-plot) | <img src="https://img.shields.io/npm/v/@dvgis/dc-plot?logo=npm" /> | dc plotting module for plotting and editing overlay |
  125. | [dc-chart](https://github.com/dvgis/dc-chart) | <img src="https://img.shields.io/npm/v/@dvgis/dc-chart?logo=npm" /> | dc chart module for adding ECharts functionality in 3d scenes |
  126. | [dc-mapv](https://github.com/dvgis/dc-mapv) | <img src="https://img.shields.io/npm/v/@dvgis/dc-mapv?logo=npm" /> | dc big-data module for adding MAPV functions in 3d scenes |
  127. | [dc-ui](https://github.com/dvgis/dc-ui) | <img src="https://img.shields.io/npm/v/@dvgis/dc-ui?logo=npm" /> | dc components for Vue2.x |
  128. | dc-analysis | <img src="https://img.shields.io/npm/v/@dvgis/dc-analysis?logo=npm" /> | dc analysis module, including camera-video, position-editor, measure, etc |
  129. | dc-ui-next | <img src="https://img.shields.io/npm/v/@dvgis/dc-ui-next?logo=npm" /> | dc components for Vue3.x |
  130. ## QQ Group
  131. <p>
  132. <img src="http://dc.dvgis.cn/examples/images/base/q1.png?v=2" style="width:60px;height:60px" title="数字视觉"/>
  133. <img src="http://dc.dvgis.cn/examples/images/base/q2.png?v=4" style="width:60px;height:60px" title="Cesium开心农场"/>
  134. </p>
  135. ## Support
  136. > if dc-sdk can bring benefits to you, please support it ~
  137. <p>
  138. <img src="http://dc.dvgis.cn/examples/images/base/sponsor.jpg?v=2" style="width:60px;height:60px" title="数字视觉"/>
  139. </p>
  140. ## Copyright
  141. ```warning
  142. 1. The framework is a basic platform, completely open source, which can be modified and reconstructed by any individual or institution without our authorization.
  143. 2. We are not responsible for any problems arising from the modification of the framework by individuals and organizations.
  144. 3. Some industrial plug-ins and tools will be added in the later stage, and the code will be open source appropriately.
  145. 4. The package released by us may be used permanently and free of charge by any person or organization subject to:
  146. 1) complete package reference;
  147. 2) reserve this copyright information in the console output
  148. We reserve the right of final interpretation of this copyright information.
  149. ```
  150. ## Thanks