Parcourir la source

修改说明文档

tags/1.9.2
Caven Chen il y a 5 ans
Parent
révision
171560eac2

+ 7
- 0
CHANGE.md Voir le fichier

# 更新 # 更新


## 1.9.2

### 2020-8-15

> 1. 完善控制台输出说明
> 2. 修改说明文档

## 1.9.1 ## 1.9.1


### 2020-8-11 ### 2020-8-11

+ 11
- 11
README.md Voir le fichier



> The SDK is a secondary development based on the open source project Cesium, which optimizes some operations of Cesium and enables developers to quickly develop 3D applications through the framework. > The SDK is a secondary development based on the open source project Cesium, which optimizes some operations of Cesium and enables developers to quickly develop 3D applications through the framework.


> [home](http://dc.dvgis.cn)
> [Home Page](http://dc.dvgis.cn)


```warning
```warningH
Tips:This SDK is JS+GIS framework package. Developers need to have some front-end technology and GIS related technology Tips:This SDK is JS+GIS framework package. Developers need to have some front-end technology and GIS related technology
``` ```




## Documentation ## Documentation


[Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/)
[DC Api](https://resource.dvgis.cn/dc-api)


[DC-SDK Api](http://resource.dvgis.cn/dc-api)
[Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/)


## Demo ## Demo


| ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/info/start.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/info/coord.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/baselayer/tencent.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/baselayer/tdt.png) |
| :---------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------: |
| ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/baselayer/amap.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/baselayer/baidu.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/vector.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/cluster.png) |
| ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/geojson.png) | <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/tileset.png" alt="开始" width="200px" height="150px"/> | <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/html.png" alt="开始" width="200px" height="150px"/> | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/point_icon.png) |
| ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/point_base.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/circle.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/polyline_material.png) | ![picture](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/polygon_height.png) |
| ![picture](http://dc.dvgis.cn/examples/images/info/start.png) | ![picture](http://dc.dvgis.cn/examples/images/info/coord.png) | ![picture](http://dc.dvgis.cn/examples/images/baselayer/tencent.png) | ![picture](http://dc.dvgis.cn/examples/images/baselayer/tdt.png) |
| :-----------------------------------------------------------: | :-----------------------------------------------------------: | :------------------------------------------------------------------: | :--------------------------------------------------------------: |
| ![picture](http://dc.dvgis.cn/examples/images/baselayer/amap.png) | ![picture](http://dc.dvgis.cn/examples/images/baselayer/baidu.png) | ![picture](http://dc.dvgis.cn/examples/images/layer/vector.png) | ![picture](http://dc.dvgis.cn/examples/images/layer/cluster.png) |
| ![picture](http://dc.dvgis.cn/examples/images/layer/geojson.png) | ![picture](http://dc.dvgis.cn/examples/images/layer/tileset.png) | ![picture](http://dc.dvgis.cn/examples/images/layer/html.png) | ![picture](http://dc.dvgis.cn/examples/images/overlay/point_icon.png) |
| ![picture](http://dc.dvgis.cn/examples/images/overlay/point_base.png) | ![picture](http://dc.dvgis.cn/examples/images/overlay/circle.png) | ![picture](http://dc.dvgis.cn/examples/images/overlay/polyline_material.png) | ![picture](http://dc.dvgis.cn/examples/images/overlay/polygon_height.png) |


[More>>](http://dc.dvgis.cn/#/examples) [More>>](http://dc.dvgis.cn/#/examples)




<p> <p>


<img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/base/q1.png" style="width:60px;height:60px" title="Cesium*融合"/>
<img src="http://dc.dvgis.cn/examples/images/base/q1.png" style="width:60px;height:60px" title="Cesium*融合"/>


<img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/base/q2.png" style="width:60px;height:60px" title="Cesium开心农场"/>
<img src="http://dc.dvgis.cn/examples/images/base/q2.png" style="width:60px;height:60px" title="Cesium开心农场"/>


</p> </p>



+ 11
- 8
README_zh.md Voir le fichier



## 文档 ## 文档


[DC Api](https://resource.dvgis.cn/dc-api)

[Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/) [Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/)


[DC-SDK Api](http://resource.dvgis.cn/dc-api)


## 示例 ## 示例


| ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/info/start.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/info/coord.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/baselayer/tencent.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/baselayer/tdt.png) |
| :------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------: |
| ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/baselayer/amap.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/baselayer/baidu.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/vector.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/cluster.png) |
| ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/geojson.png) | <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/tileset.png" alt="开始" width="200px" height="150px"/> | <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/html.png" alt="开始" width="200px" height="150px"/> | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/point_icon.png) |
| ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/point_base.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/circle.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/polyline_material.png) | ![图片](https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/overlay/polygon_height.png) |
| ![图片](http://dc.dvgis.cn/examples/images/info/start.png) | ![图片](http://dc.dvgis.cn/examples/images/info/coord.png) | ![图片](http://dc.dvgis.cn/examples/images/baselayer/tencent.png) | ![图片](http://dc.dvgis.cn/examples/images/baselayer/tdt.png) |
| :-----------------------------------------------------------: | :-----------------------------------------------------------: | :------------------------------------------------------------------: | :--------------------------------------------------------------: |
| ![图片](http://dc.dvgis.cn/examples/images/baselayer/amap.png) | ![图片](http://dc.dvgis.cn/examples/images/baselayer/baidu.png) | ![图片](http://dc.dvgis.cn/examples/images/layer/vector.png) | ![图片](http://dc.dvgis.cn/examples/images/layer/cluster.png) |
| ![图片](http://dc.dvgis.cn/examples/images/layer/geojson.png) | ![图片](http://dc.dvgis.cn/examples/images/layer/tileset.png) | ![图片](http://dc.dvgis.cn/examples/images/layer/html.png) | ![图片](http://dc.dvgis.cn/examples/images/overlay/point_icon.png) |
| ![图片](http://dc.dvgis.cn/examples/images/overlay/point_base.png) | ![图片](http://dc.dvgis.cn/examples/images/overlay/circle.png) | ![图片](http://dc.dvgis.cn/examples/images/overlay/polyline_material.png) | ![图片](http://dc.dvgis.cn/examples/images/overlay/polygon_height.png) |


[更多>>](http://dc.dvgis.cn/#/examples) [更多>>](http://dc.dvgis.cn/#/examples)




<p> <p>


<img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/base/q1.png" style="width:60px;height:60px" title="Cesium*融合"/>
<img src="http://dc.dvgis.cn/examples/images/base/q1.png" style="width:60px;height:60px" title="Cesium*融合"/>


<img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/base/q2.png" style="width:60px;height:60px" title="Cesium开心农场"/>
<img src="http://dc.dvgis.cn/examples/images/base/q2.png" style="width:60px;height:60px" title="Cesium开心农场"/>


</p> </p>



## 感谢 ## 感谢

+ 2
- 2
dist/dc.base.min.js
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 1
- 1
dist/dc.core.min.js
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 1
- 1
package.json Voir le fichier

{ {
"name": "@dvgis/dc-sdk", "name": "@dvgis/dc-sdk",
"version": "1.9.1",
"version": "1.9.2",
"description": " The SDK is a secondary development based on the open source project Cesium, which optimizes some operations of Cesium and enables developers to quickly develop 3D applications through the framework.", "description": " The SDK is a secondary development based on the open source project Cesium, which optimizes some operations of Cesium and enables developers to quickly develop 3D applications through the framework.",
"main": "index.js", "main": "index.js",
"repository": "https://github.com/dvgis/dc-sdk.git", "repository": "https://github.com/dvgis/dc-sdk.git",

+ 1
- 1
src/base/index.js Voir le fichier



let DC = { let DC = {
Author: 'Caven Chen <cavencj@gmail.com>', Author: 'Caven Chen <cavencj@gmail.com>',
GitHub: 'https://github.com/dvgis',
GitHub: 'https://github.com/dvgis/dc-sdk',
Home: 'https://www.dvgis.cn', Home: 'https://www.dvgis.cn',
Version: build.version, Version: build.version,
Namespace: {}, Namespace: {},

+ 8
- 7
src/core/overlay/Overlay.js Voir le fichier

* @Author: Caven * @Author: Caven
* @Date: 2020-01-03 12:18:17 * @Date: 2020-01-03 12:18:17
*/ */

import { Util } from '../utils' import { Util } from '../utils'
import { OverlayEventType, OverlayEvent } from '../event' import { OverlayEventType, OverlayEvent } from '../event'
import State from '../state/State' import State from '../state/State'
return this._state return this._state
} }


/**
* The hook for mount layer
* Subclasses need to be overridden
* @private
*/
_mountedHook() {}

/** /**
* The hook for added * The hook for added
* @returns {boolean} * @returns {boolean}
this._delegate.overlayId = this._id this._delegate.overlayId = this._id
} }


/**
* The hook for mounted
* Subclasses need to be overridden
* @private
*/
_mountedHook() {}

/** /**
* The hook for removed * The hook for removed
* Subclasses need to be overridden * Subclasses need to be overridden

+ 1
- 1
src/core/overlay/OverlayType.js Voir le fichier

/** /**
* @Author: Caven * @Author: Caven
* @Date: 2020-05-10 08:24:57
* @Date: 2020-08-15 11:57:02
*/ */


let OverlayType = {} let OverlayType = {}

+ 1
- 1
src/core/overlay/model/Model.js Voir le fichier

/** /**
* @Author: Caven * @Author: Caven
* @Date: 2020-01-06 15:03:25
* @Date: 2020-01-06 20:03:25
*/ */


import { Util } from '../../utils' import { Util } from '../../utils'

+ 1
- 1
src/core/overlay/model/Tileset.js Voir le fichier

/** /**
* @Author: Caven * @Author: Caven
* @Date: 2020-01-07 08:51:56
* @Date: 2020-01-07 20:51:56
*/ */


import Parse from '../../parse/Parse' import Parse from '../../parse/Parse'

+ 12
- 3
webpack.config.js Voir le fichier

/** /**
* @Author: Caven * @Author: Caven
* @Date: 2020-01-18 18:22:23
* @Date: 2020-01-18 19:22:23
*/ */


const path = require('path') const path = require('path')


function getTime() { function getTime() {
let now = new Date() let now = new Date()
return `${now.getFullYear()}-${now.getMonth() +
1}-${now.getDate()} ${now.getHours()}:${now.getMinutes()}`
let m = now.getMonth() + 1
m = m < 10 ? '0' + m : m
let d = now.getDate()
d = d < 10 ? '0' + d : d
let h = now.getHours()
h = h < 10 ? '0' + h : h
let min = now.getMinutes()
min = min < 10 ? '0' + min : min
let s = now.getSeconds()
s = s < 10 ? '0' + s : s
return `${now.getFullYear()}-${m}-${d} ${h}:${min}:${s}`
} }


module.exports = env => { module.exports = env => {

Chargement…
Annuler
Enregistrer