Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. # DC-SDK
  2. <p>
  3. <img src="https://img.shields.io/github/workflow/status/dvgis/dc-sdk/build"/>
  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/dt/@dvgis/dc-sdk?logo=npm"/>
  7. </p>
  8. [**🇨🇳 中文**](./README_zh.md) | [**🇬🇧English**](./README.md)
  9. **_`DC-SDK`_** is based on the open source project **_`Cesium`_** for the second development of two three-dimensional **_`WebGis`_** application framework , the framework optimizes the use of **_`Cesium`_** and adds some additional features , designed for developers to quickly build **_`WebGis`_** application.
  10. ## Home
  11. > http://dc.dvgis.cn
  12. ```warning
  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. `NPM / YARN` **_`(Recommend)`_**
  17. Installing with NPM or YARN is recommended and it works seamlessly with webpack.
  18. ```shell
  19. yarn add @dvgis/dc-sdk
  20. -------------------------
  21. npm install @dvgis/dc-sdk
  22. ```
  23. ```js
  24. import DC from '@dvgis/dc-sdk/dist/dc.base.min'
  25. import DcCore from '@dvgis/dc-sdk/dist/dc.core.min'
  26. import DcChart from '@dvgis/dc-sdk/dist/dc.chart.min'
  27. import DcMapv from '@dvgis/dc-sdk/dist/dc.mapv.min'
  28. import '@dvgis/dc-sdk/dist/dc.core.min.css'
  29. ```
  30. `NPM / YARN` **_`(On-demand)`_**
  31. ```shell
  32. yarn add @dvgis/dc-base
  33. yarn add @dvgis/dc-core
  34. yarn add @dvgis/dc-chart
  35. yarn add @dvgis/dc-mapv
  36. -------------------------
  37. npm install @dvgis/dc-base
  38. npm install @dvgis/dc-core
  39. npm install @dvgis/dc-chart
  40. npm install @dvgis/dc-mapv
  41. ```
  42. ```js
  43. import DC from '@dvgis/dc-base'
  44. import DcCore from '@dvgis/dc-core'
  45. import DcChart from '@dvgis/dc-chart'
  46. import DcMapv from '@dvgis/dc-mapv'
  47. import '@dvgis/dc-core/dist/dc.core.min.css'
  48. ```
  49. `CDN`
  50. [Resources](https://github.com/dvgis/dc-sdk/releases)
  51. ```html
  52. <script src="https://cdn.jsdelivr.net/npm/@dvgis/dc-sdk/dist/dc.base.min.js"></script>
  53. <script src="https://cdn.jsdelivr.net/npm/@dvgis/dc-sdk/dist/dc.core.min.js"></script>
  54. <script src="https://cdn.jsdelivr.net/npm/@dvgis/dc-sdk/dist/dc.chart.min.js"></script>
  55. <script src="https://cdn.jsdelivr.net/npm/@dvgis/dc-sdk/dist/dc.mapv.min.js"></script>
  56. <link
  57. href="https://cdn.jsdelivr.net/npm/@dvgis/dc-sdk/dist/dc.core.min.css"
  58. rel="stylesheet"
  59. type="text/css"
  60. />
  61. ```
  62. ```
  63. Please put the resources in the project root directory libs/dc-sdk, if you put it in other directory, the framework will not run properly.
  64. ```
  65. ## Configuration
  66. > The configuration is mainly used in the `NPM / YARN` way
  67. Since the DC framework sets `CESIUM_BASE_URL` to `JSON.stringify('. /libs/dc-sdk/resources/')`, you need to copy `Cesium` static resource files: `Assets`, `Workers`, `ThirdParty` to the `libs/dc-sdk/resources` directory of the project to ensure that the 3D scene can be rendered properly.
  68. `Webpack`
  69. [Project Template](https://github.com/cavencj/dc-vue-app)
  70. ```js
  71. // webpack.config.js
  72. const path = require('path')
  73. const CopywebpackPlugin = require('copy-webpack-plugin')
  74. const dvgisDist = './node_modules/@dvgis'
  75. module.exports = {
  76. plugins: [
  77. new CopyWebpackPlugin([
  78. {
  79. from: path.join(dvgisDist, 'dc-sdk/dist/resources'),
  80. to: 'libs/dc-sdk/resources',
  81. },
  82. ]),
  83. ],
  84. }
  85. ```
  86. `Vue2.x`
  87. [Project Template](https://github.com/dvgis/dc-vue)
  88. ```js
  89. // vue.config.js
  90. const path = require('path')
  91. const CopywebpackPlugin = require('copy-webpack-plugin')
  92. const dvgisDist = './node_modules/@dvgis'
  93. module.exports = {
  94. chainWebpack: (config) => {
  95. config.plugin('copy').use(CopywebpackPlugin, [
  96. [
  97. {
  98. from: path.join(dvgisDist, 'dc-sdk/dist/resources'),
  99. to: 'libs/dc-sdk/resources',
  100. },
  101. ],
  102. ])
  103. },
  104. }
  105. ```
  106. `Vue3.x`
  107. [Project Template](https://github.com/dvgis/dc-vue-next)
  108. ```js
  109. // vue.config.js
  110. const path = require('path')
  111. const CopywebpackPlugin = require('copy-webpack-plugin')
  112. const dvgisDist = './node_modules/@dvgis'
  113. module.exports = {
  114. chainWebpack: (config) => {
  115. config.plugin('copy').use(CopywebpackPlugin, [
  116. {
  117. patterns: [
  118. {
  119. from: path.join(dvgisDist, 'dc-sdk/dist/resources'),
  120. to: path.join(__dirname, 'dist', 'libs/dc-sdk/resources'),
  121. },
  122. ],
  123. },
  124. ])
  125. },
  126. }
  127. ```
  128. ## Start
  129. ```js
  130. global.DC = DC
  131. DC.use(DcCore) // node
  132. DC.ready(() => {
  133. 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
  134. })
  135. ```
  136. ## Documentation
  137. [DC Sdk Api](https://resource.dvgis.cn/dc-docs/v2.x)
  138. [Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/)
  139. ## Demo
  140. | ![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) |
  141. | :-----------------------------------------------------------: | :-----------------------------------------------------------: | :------------------------------------------------------------------: | :--------------------------------------------------------------: |
  142. | ![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) |
  143. | ![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) |
  144. [More>>](http://dc.dvgis.cn/#/examples)
  145. ## Ecosystem
  146. | Module | Status | Description |
  147. | :------ | :------: | :------ |
  148. | [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 |
  149. | [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 |
  150. | [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 |
  151. | dc-ui-next | <img src="https://img.shields.io/npm/v/@dvgis/dc-ui-next?logo=npm" /> | dc components for Vue3.x |
  152. ## Copyright
  153. ```warning
  154. 1. The framework is a basic platform, completely open source, which can be modified and reconstructed by any individual or institution without our authorization.
  155. 2. We are not responsible for any problems arising from the modification of the framework by individuals and organizations.
  156. 3. Some industrial plug-ins and tools will be added in the later stage, and the code will be open source appropriately.
  157. 4. The package released by us may be used permanently and free of charge by any person or organization subject to:
  158. 1) complete package reference;
  159. 2) reserve this copyright information in the console output
  160. We reserve the right of final interpretation of this copyright information.
  161. ```
  162. ## Support
  163. > if dc-sdk can bring benefits to you, please support it ~
  164. <p>
  165. <a href="https://www.paypal.com/paypalme/cavencj" target="_blank">
  166. <img src="https://www.paypalobjects.com/images/shared/paypal-logo-129x32.svg" style="margin-top:10px" />
  167. </a>
  168. </p>
  169. ## Thanks