Browse Source

修改说明文档

tags/1.9.2
Caven Chen 5 years ago
parent
commit
171560eac2

+ 7
- 0
CHANGE.md View File

@@ -1,5 +1,12 @@
# 更新

## 1.9.2

### 2020-8-15

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

## 1.9.1

### 2020-8-11

+ 11
- 11
README.md View File

@@ -10,9 +10,9 @@

> 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
```

@@ -79,17 +79,17 @@ DC.ready(() => {

## 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

| ![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)

@@ -108,9 +108,9 @@ We reserve the right of final interpretation of this copyright information.

<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>


+ 11
- 8
README_zh.md View File

@@ -79,17 +79,19 @@ DC.ready(() => {

## 文档

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

[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)

@@ -107,10 +109,11 @@ DC.ready(() => {

<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>


## 感谢

+ 2
- 2
dist/dc.base.min.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/dc.core.min.js
File diff suppressed because it is too large
View File


+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
{
"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.",
"main": "index.js",
"repository": "https://github.com/dvgis/dc-sdk.git",

+ 1
- 1
src/base/index.js View File

@@ -9,7 +9,7 @@ delete window.DC

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

+ 8
- 7
src/core/overlay/Overlay.js View File

@@ -2,6 +2,7 @@
* @Author: Caven
* @Date: 2020-01-03 12:18:17
*/

import { Util } from '../utils'
import { OverlayEventType, OverlayEvent } from '../event'
import State from '../state/State'
@@ -67,6 +68,13 @@ class Overlay {
return this._state
}

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

/**
* The hook for added
* @returns {boolean}
@@ -80,13 +88,6 @@ class Overlay {
this._delegate.overlayId = this._id
}

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

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

+ 1
- 1
src/core/overlay/OverlayType.js View File

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

let OverlayType = {}

+ 1
- 1
src/core/overlay/model/Model.js View File

@@ -1,6 +1,6 @@
/**
* @Author: Caven
* @Date: 2020-01-06 15:03:25
* @Date: 2020-01-06 20:03:25
*/

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

+ 1
- 1
src/core/overlay/model/Tileset.js View File

@@ -1,6 +1,6 @@
/**
* @Author: Caven
* @Date: 2020-01-07 08:51:56
* @Date: 2020-01-07 20:51:56
*/

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

+ 12
- 3
webpack.config.js View File

@@ -1,6 +1,6 @@
/**
* @Author: Caven
* @Date: 2020-01-18 18:22:23
* @Date: 2020-01-18 19:22:23
*/

const path = require('path')
@@ -31,8 +31,17 @@ function resolve(dir) {

function getTime() {
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 => {

Loading…
Cancel
Save