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.

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