Skip to content

Commit 90a1adf

Browse files
author
潘卓然Y7000P
committed
补充PopupLayer的必要注释以及修正MapvOptions参数
1 parent 8608200 commit 90a1adf

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

src/cesiumjs/overlay/MapvLayer.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ var idIndex = 0;
1414
* @class module:客户端可视化.MapVLayer
1515
* @classdesc CesiumZondy.Overlayer.MapVLayer 基于新建立的Html Element嵌入mapv
1616
* @param map - {Object} 传入的cesium的地图对象Viewer
17-
* @param dataset - {MapvDataSet} 传入的mapv的属性。 <br>
18-
* @param mapVOptions - {MapvOption} 可选参数。<br>
17+
* @param dataset - {MapvDataSet} 传入的mapv的属性
18+
* @param mapVOptions - {MapvOption} 可选参数。https://github.com/huiyan-fe/mapv/blob/master/API.md
1919
* @param {Boolean} [mapVOptions.postRender=false] 是否实时渲染
20-
* @param container - {Element} 外部传入的div;外接的方式使用mapv<br>
20+
* @param container - {Element} 外部传入的div;外接的方式使用mapv
2121
*/
2222
export class MapvLayer {
2323
constructor(map, dataSet, mapVOptions, container) {
@@ -131,6 +131,7 @@ export class MapvLayer {
131131
*
132132
* @param data - {Array} 数据.
133133
* @param options - {Object} 只做额外增加的字段作用
134+
* @see https://github.com/huiyan-fe/mapv/blob/master/API.md
134135
*/
135136
addData(data, options) {
136137
if (this.mapvBaseLayer == undefined) return;
@@ -143,6 +144,7 @@ export class MapvLayer {
143144
*
144145
* @param data - {Array} 数据.
145146
* @param options - {Object} 只做额外增加的字段作用
147+
* @see https://github.com/huiyan-fe/mapv/blob/master/API.md
146148
*/
147149
updateData(data, options) {
148150
if (this.mapvBaseLayer == undefined) return;
@@ -155,6 +157,7 @@ export class MapvLayer {
155157
*
156158
* @param data - {Array} 数据.
157159
* @param options - {Object} 只做额外增加的字段作用
160+
* @see https://github.com/huiyan-fe/mapv/blob/master/API.md
158161
*/
159162
getData() {
160163
if (this.mapvBaseLayer) {

src/cesiumjs/overlay/mapv/MapvBaseLayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var BaseLayer = baiduMapLayer ? baiduMapLayer.__proto__ : Function;
1515
* @param layer -{Object} 图层
1616
* @param dataSet -{Object} 数据集
1717
* @param options -{Object} 交互时所需可选参数。
18+
* @see https://github.com/huiyan-fe/mapv/blob/master/API.md
1819
* @extends BaseLayer
1920
*
2021
*/

src/cesiumjs/overlay/popup/popup.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import Cesium from '../../../../node_modules/cesium/Source/Cesium';
22

3+
/**
4+
* @description 用来调整相机视角的时候设置对应的
5+
* @param {Viewer} viewer Cesium的viewer对象
6+
* @param {Cartesian3} cartesian Cesium.cartesian3对象
7+
* @param {String} popupId 整个popup渲染外包div的id
8+
* @param {String} popupContentId 整个popup渲染内容的id
9+
* @param {Object} [options.longitude] 传入的经度,内部换算笛卡尔积
10+
* @param {Object} [options.latitude] 传入的纬度,内部换算笛卡尔积
11+
*/
312
export function updataPopupPosition(viewer, cartesian, popupId, popupContentId, options) {
413
if(!cartesian) return ;
514
let scene = viewer.scene;

src/cesiumjs/ui/interact/CesiumSelectionIndicator.js

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
// import i18next from "i18next";
2-
/*global require*/
3-
/* var Cartesian2 = require("terriajs-cesium/Source/Core/Cartesian2").default;
4-
var defined = require("terriajs-cesium/Source/Core/defined").default;
5-
var DeveloperError = require("terriajs-cesium/Source/Core/DeveloperError")
6-
.default;
7-
var EasingFunction = require("terriajs-cesium/Source/Core/EasingFunction")
8-
.default;
9-
var knockout = require("terriajs-cesium/Source/ThirdParty/knockout").default;
10-
var SceneTransforms = require("terriajs-cesium/Source/Scene/SceneTransforms")
11-
.default;
12-
const selectionIndicatorUrl = require("../../wwwroot/images/NM-LocationTarget.svg");
13-
*/
141
import {CesiumZondy} from '../../core/Base';
152
import Cesium from '../../../../node_modules/cesium/Source/Cesium';
163
var Cartesian2 = Cesium.Cartesian2;
@@ -24,20 +11,20 @@ import selectionIndicatorUrl from '../../assets/svg/NM-LocationTarget.svg';
2411
import getTimestamp from '../../../../node_modules/cesium/Source/Core/getTimestamp';
2512
import Matrix4 from '../../../../node_modules/cesium/Source/Core/Matrix4';
2613
import JulianDate from "../../../../node_modules/cesium/Source/Core/JulianDate";
27-
import { select } from 'd3';
28-
29-
/* import Store from '@mapgis/webclient-store';
30-
const { ViewState } = Store.Map;
31-
const { IgsDocLayer, IgsLayerType } = Store.Layer; */
3214

33-
var screenSpacePos = new Cartesian2();
3415
var offScreen = "-1000px";
3516

3617
const SelectionIndicatorMode = {
3718
Map : 'Map',
3819
Query: 'Query'
3920
}
4021

22+
/**
23+
* @description Cesium的点击查询效果,针对点击事件实现了2种不同的点击方式针对geojson查询内部回主动区别不同的查询方法
24+
* @function animateAppear 点击一下后光标短暂散开
25+
* @function animateDepart 点击一下后光标等待旋转
26+
* @param Cesium的webGlobe对象
27+
*/
4128
export class CesiumSelectionIndicator {
4229
constructor(webGlobe) {
4330
//>>includeStart('debug', pragmas.debug);

0 commit comments

Comments
 (0)