| @@ -1,5 +1,11 @@ | |||
| # 更新 | |||
| ## 1.6.2 | |||
| ### 2020-5-25 | |||
| > 1. 修改无法获取图的问题 | |||
| ## 1.6.1 | |||
| ### 2020-5-19 | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-sdk", | |||
| "version": "1.6.1", | |||
| "version": "1.6.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/Digital-Visual/dc-sdk.git", | |||
| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-04-22 09:44:30 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-19 22:02:26 | |||
| * @Last Modified time: 2020-05-25 09:20:03 | |||
| */ | |||
| import { initMixin, initUse } from './global-api' | |||
| @@ -11,7 +11,7 @@ let DC = { | |||
| Author: 'Caven Chen', | |||
| GitHub: 'https://github.com/Digital-Visual', | |||
| Home: 'https://www.dvgis.cn', | |||
| Version: '1.6.1', | |||
| Version: '1.6.2', | |||
| Namespace: {}, | |||
| Initialized: false | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2019-12-27 17:13:24 | |||
| * @Last Modified by: Caven | |||
| * @Last Modified time: 2020-05-18 13:12:54 | |||
| * @Last Modified time: 2020-05-25 08:55:28 | |||
| */ | |||
| import { | |||
| @@ -407,7 +407,7 @@ class Viewer { | |||
| * | |||
| */ | |||
| getLayer(id) { | |||
| let filters = this.getLayers().filter(item.id === id) | |||
| let filters = this.getLayers().filter(item => item.id === id) | |||
| return filters && filters.length ? filters[0] : undefined | |||
| } | |||