| @@ -53,7 +53,7 @@ import 'dvgis/dc.core.min.css' // Main Style Sheet | |||
| const path = require('path') | |||
| const CopywebpackPlugin = require('copy-webpack-plugin') | |||
| const dvgisDist = './node_modules/@dvgis/dc-sdk/dist/dc-sdk' | |||
| const dvgisDist = './node_modules/@dvgis/dc-sdk/dist' | |||
| module.exports = { | |||
| // other settings | |||
| @@ -53,7 +53,7 @@ import 'dvgis/dc.core.min.css' // 主要样式 | |||
| const path = require('path') | |||
| const CopywebpackPlugin = require('copy-webpack-plugin') | |||
| const dvgisDist = './node_modules/@dvgis/dc-sdk/dist/dc-sdk' | |||
| const dvgisDist = './node_modules/@dvgis/dc-sdk/dist' | |||
| module.exports = { | |||
| // 其他配置 | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-sdk", | |||
| "version": "1.4.2", | |||
| "version": "1.5.0", | |||
| "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/Digital-Visual/dc-sdk.git", | |||
| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-01-13 10:13:53 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-12 09:27:31 | |||
| * @Last Modified time: 2020-05-12 10:42:21 | |||
| */ | |||
| import { Layer, VectorLayer } from './index' | |||
| @@ -2,12 +2,12 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-02-12 21:43:33 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-11 22:37:07 | |||
| * @Last Modified time: 2020-05-12 10:44:26 | |||
| */ | |||
| import { DomUtil } from '../utils' | |||
| import State from '../state/State' | |||
| import Layer from './Layer' | |||
| import State from '../state/State' | |||
| import Transform from '../transform/Transform' | |||
| const { Cesium } = DC.Namespace | |||
| @@ -2,12 +2,12 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-03-30 17:14:00 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-11 22:37:12 | |||
| * @Last Modified time: 2020-05-12 10:42:03 | |||
| */ | |||
| import { Label } from '../overlay' | |||
| import State from '../state/State' | |||
| import Layer from './Layer' | |||
| import { Label } from '../overlay' | |||
| const { Cesium } = DC.Namespace | |||
| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-05-10 08:21:19 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-10 08:40:14 | |||
| * @Last Modified time: 2020-05-12 10:42:00 | |||
| */ | |||
| let LayerType = {} | |||
| @@ -2,11 +2,12 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-01-09 09:16:27 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-11 22:37:12 | |||
| * @Last Modified time: 2020-05-12 10:41:58 | |||
| */ | |||
| import State from '../state/State' | |||
| import Layer from './Layer' | |||
| const { Cesium } = DC.Namespace | |||
| /** | |||
| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-03-22 01:12:39 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-11 22:10:53 | |||
| * @Last Modified time: 2020-05-12 10:41:54 | |||
| */ | |||
| import GeoJsonLayer from './GeoJsonLayer' | |||
| @@ -2,12 +2,14 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-01-02 16:42:03 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-11 22:06:23 | |||
| * @Last Modified time: 2020-05-12 10:44:45 | |||
| */ | |||
| import State from '../state/State' | |||
| import Layer from './Layer' | |||
| const { Cesium } = DC.Namespace | |||
| /** | |||
| * The vector layer is used to add various enitity, which is essentially a CustomDataSource | |||
| * that is used to place entities of the same class or business attribute into the same layer | |||
| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2019-12-31 17:58:01 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-12 09:53:43 | |||
| * @Last Modified time: 2020-05-12 10:49:58 | |||
| */ | |||
| const CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split( | |||
| @@ -99,9 +99,9 @@ class Util { | |||
| static checkPosition(position) { | |||
| return ( | |||
| position && | |||
| position.hasOwnProperty('lng') && | |||
| position.hasOwnProperty('lat') && | |||
| position.hasOwnProperty('alt') | |||
| position.hasOwnProperty('_lng') && | |||
| position.hasOwnProperty('_lat') && | |||
| position.hasOwnProperty('_alt') | |||
| ) | |||
| } | |||