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