egovamap 0.35.44 → 0.35.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/egovamap/egovagis.js +37 -31
- package/egovamap/egovagisviewer.js +4 -4
- package/package.json +1 -1
package/egovamap/egovagis.js
CHANGED
|
@@ -610,36 +610,42 @@ var EGovaGISMap = function (
|
|
|
610
610
|
);
|
|
611
611
|
};
|
|
612
612
|
/* 在地图上标注 */
|
|
613
|
-
that.pointSelect = function (
|
|
614
|
-
|
|
613
|
+
that.pointSelect = function (
|
|
614
|
+
symbolType,
|
|
615
|
+
zoomFalg,
|
|
616
|
+
callback,
|
|
617
|
+
pointSelectMethod
|
|
618
|
+
) {
|
|
619
|
+
if (scene == null) return;
|
|
615
620
|
|
|
616
|
-
|
|
617
|
-
|
|
621
|
+
// 移除监听
|
|
622
|
+
scene.remove(msgPrefix + ":pointSelectCallback", parentScene, false);
|
|
618
623
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
callback(evt.args);
|
|
632
|
-
},
|
|
633
|
-
parentScene,
|
|
634
|
-
false
|
|
624
|
+
if (zoomFalg == undefined) zoomFalg = true;
|
|
625
|
+
if (pointSelectMethod === undefined) pointSelectMethod = false;
|
|
626
|
+
if (callback) {
|
|
627
|
+
// 定义回调
|
|
628
|
+
scene.on(
|
|
629
|
+
msgPrefix + ":pointSelectCallback",
|
|
630
|
+
function (evt) {
|
|
631
|
+
// 移除监听
|
|
632
|
+
scene.remove(
|
|
633
|
+
msgPrefix + ":pointSelectCallback",
|
|
634
|
+
parentScene,
|
|
635
|
+
false
|
|
635
636
|
);
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
637
|
+
callback(evt.args);
|
|
638
|
+
},
|
|
639
|
+
parentScene,
|
|
640
|
+
false
|
|
641
|
+
);
|
|
642
|
+
}
|
|
643
|
+
scene.fire(
|
|
644
|
+
msgPrefix + ":pointSelect",
|
|
645
|
+
{ args: [symbolType, zoomFalg, callback, pointSelectMethod] },
|
|
646
|
+
parentScene,
|
|
647
|
+
false
|
|
648
|
+
);
|
|
643
649
|
};
|
|
644
650
|
/* 获取图形外部矩形 */
|
|
645
651
|
that.getFeaturesExtent = function (features, callback) {
|
|
@@ -1363,10 +1369,10 @@ var EGovaGISMap = function (
|
|
|
1363
1369
|
/**
|
|
1364
1370
|
*轨迹开始播放/暂停
|
|
1365
1371
|
**/
|
|
1366
|
-
that.playObjectTrace = function (speed, doNotChangeState) {
|
|
1372
|
+
that.playObjectTrace = function (speed, doNotChangeState, gradientTraceOptions) {
|
|
1367
1373
|
scene.fire(
|
|
1368
1374
|
msgPrefix + ":playObjectTrace",
|
|
1369
|
-
{ args: [speed, doNotChangeState] },
|
|
1375
|
+
{ args: [speed, doNotChangeState, gradientTraceOptions] },
|
|
1370
1376
|
parentScene
|
|
1371
1377
|
);
|
|
1372
1378
|
};
|
|
@@ -1374,8 +1380,8 @@ var EGovaGISMap = function (
|
|
|
1374
1380
|
/**
|
|
1375
1381
|
*轨迹停止
|
|
1376
1382
|
**/
|
|
1377
|
-
that.stopObjectTrace = function () {
|
|
1378
|
-
scene.fire(msgPrefix + ":stopObjectTrace", { args: [] }, parentScene);
|
|
1383
|
+
that.stopObjectTrace = function (gradientTraceOptions) {
|
|
1384
|
+
scene.fire(msgPrefix + ":stopObjectTrace", { args: [gradientTraceOptions] }, parentScene);
|
|
1379
1385
|
};
|
|
1380
1386
|
|
|
1381
1387
|
/**
|
|
@@ -1632,12 +1632,12 @@ var EGovaGISMap = function (
|
|
|
1632
1632
|
that.callMap("updatePositionByTime", time);
|
|
1633
1633
|
};
|
|
1634
1634
|
|
|
1635
|
-
that.playObjectTrace = function (speed, doNotChangeState) {
|
|
1636
|
-
that.callMap("playObjectTrace", speed, doNotChangeState);
|
|
1635
|
+
that.playObjectTrace = function (speed, doNotChangeState, gradientTraceOptions) {
|
|
1636
|
+
that.callMap("playObjectTrace", speed, doNotChangeState, gradientTraceOptions || {});
|
|
1637
1637
|
};
|
|
1638
1638
|
|
|
1639
|
-
that.stopObjectTrace = function () {
|
|
1640
|
-
that.callMap("stopObjectTrace");
|
|
1639
|
+
that.stopObjectTrace = function (gradientTraceOptions) {
|
|
1640
|
+
that.callMap("stopObjectTrace", gradientTraceOptions || {});
|
|
1641
1641
|
};
|
|
1642
1642
|
|
|
1643
1643
|
//by ysj,2020-06-02
|