egovamap 0.35.45 → 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.
@@ -610,36 +610,42 @@ var EGovaGISMap = function (
610
610
  );
611
611
  };
612
612
  /* 在地图上标注 */
613
- that.pointSelect = function (symbolType, zoomFalg, callback) {
614
- if (scene == null) return;
613
+ that.pointSelect = function (
614
+ symbolType,
615
+ zoomFalg,
616
+ callback,
617
+ pointSelectMethod
618
+ ) {
619
+ if (scene == null) return;
615
620
 
616
- // 移除监听
617
- scene.remove(msgPrefix + ":pointSelectCallback", parentScene, false);
621
+ // 移除监听
622
+ scene.remove(msgPrefix + ":pointSelectCallback", parentScene, false);
618
623
 
619
- if (zoomFalg == undefined) zoomFalg = true;
620
- if (callback) {
621
- // 定义回调
622
- scene.on(
623
- msgPrefix + ":pointSelectCallback",
624
- function (evt) {
625
- // 移除监听
626
- scene.remove(
627
- msgPrefix + ":pointSelectCallback",
628
- parentScene,
629
- false
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
- scene.fire(
638
- msgPrefix + ":pointSelect",
639
- { args: [symbolType, zoomFalg] },
640
- parentScene,
641
- false
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.35.45",
3
+ "version": "0.35.46",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {