| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-01-06 15:03:25 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-03-22 01:17:58 | |||
| * @Last Modified time: 2020-03-23 20:03:46 | |||
| */ | |||
| import Overlay from '../Overlay' | |||
| @@ -97,10 +97,10 @@ DC.Polyline = class extends Overlay { | |||
| static fromEntity(entity) { | |||
| let polyline = undefined | |||
| if (entity.polyline) { | |||
| let positions = GS.T.transformCartesianArrayToWSG84Array( | |||
| let positions = DC.T.transformCartesianArrayToWSG84Array( | |||
| entity.polyline.positions.getValue(Cesium.JulianDate.now()) | |||
| ) | |||
| polyline = new GS.Polyline(positions) | |||
| polyline = new DC.Polyline(positions) | |||
| polyline.attr = { | |||
| ...entity.properties.getValue(Cesium.JulianDate.now()) | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-03-19 13:11:12 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-03-19 14:17:36 | |||
| * @Last Modified time: 2020-03-23 20:04:13 | |||
| */ | |||
| import Cesium from '@/namespace' | |||
| import Widget from './Widget' | |||
| @@ -62,7 +62,7 @@ class Compass extends Widget { | |||
| DC.DomUtil.create('div', 'gyro-bg', this._wrapper) | |||
| this._gyro = DC.DomUtil.create('div', 'gyro', this._wrapper) | |||
| DC.DomUtil.createSvg(svg_width, svg_height, svg_gyro, this._gyro) | |||
| this._rotation_marker = GS.DomUtil.create( | |||
| this._rotation_marker = DC.DomUtil.create( | |||
| 'div', | |||
| 'rotation_marker', | |||
| this._wrapper | |||
| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-01-15 19:17:52 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-03-21 12:08:18 | |||
| * @Last Modified time: 2020-03-23 20:04:11 | |||
| */ | |||
| import Cesium from '@/namespace' | |||
| @@ -2,16 +2,18 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-01-14 18:22:10 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-02-24 13:29:05 | |||
| * @Last Modified time: 2020-03-23 13:57:51 | |||
| */ | |||
| ;(function() { | |||
| let initialized = false | |||
| if (!DC) { | |||
| console.error('missing dc sdk') | |||
| } | |||
| let namespace = DC.getNamespace() | |||
| namespace['mapv'] = window.mapv || undefined | |||
| delete window.mapv | |||
| DC.init(() => { | |||
| !initialized && require('./DC.Pulgins.Loader') | |||
| initialized = true | |||