egovamap 0.17.16 → 0.17.19
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/egovaBI.js
CHANGED
|
@@ -441,7 +441,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
441
441
|
var dataList = features.map((function (feature) {
|
|
442
442
|
return Object.assign({}, { x: feature.geometry.x, y: feature.geometry.y }, {
|
|
443
443
|
attributes: feature.attributes,
|
|
444
|
-
label:self.getLabel(feature.attributes),
|
|
444
|
+
// label:self.getLabel(feature.attributes), //去除内部弹框的可能性
|
|
445
445
|
symbolType: -1,
|
|
446
446
|
symbolUrl: symbolUrl,
|
|
447
447
|
scale: 0.5
|
|
@@ -573,13 +573,14 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
573
573
|
* @author: Hetianhong
|
|
574
574
|
* @date: 2021-10-19 17:27:02
|
|
575
575
|
*/
|
|
576
|
-
this.regionOperation = function (options, data) {
|
|
576
|
+
this.regionOperation = function (options, data, callback) {
|
|
577
577
|
|
|
578
578
|
function execOperation(data) {
|
|
579
579
|
if (globeMap) {
|
|
580
580
|
globeMap.regionOperation(options, data);
|
|
581
|
+
callback && callback();
|
|
581
582
|
} else if (gisMap) {
|
|
582
|
-
gridPolygon2dOperation(options, data);
|
|
583
|
+
gridPolygon2dOperation(options, data, callback);
|
|
583
584
|
}
|
|
584
585
|
}
|
|
585
586
|
|
|
@@ -783,7 +784,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
783
784
|
}
|
|
784
785
|
}
|
|
785
786
|
|
|
786
|
-
function gridPolygon2dOperation(options, data) {
|
|
787
|
+
function gridPolygon2dOperation(options, data, callback) {
|
|
787
788
|
var storeName = `usage2D_${options.idbSetting.usageID}`;
|
|
788
789
|
function showGrid(realData) {
|
|
789
790
|
// 转换一下
|
|
@@ -820,7 +821,8 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
820
821
|
{
|
|
821
822
|
minZoom: options.visiblitySetting.beginLevel,
|
|
822
823
|
maxZoom: options.visiblitySetting.endLevel,
|
|
823
|
-
layerId: options.layerName
|
|
824
|
+
layerId: options.layerName,
|
|
825
|
+
comCallbak: callback
|
|
824
826
|
// hLabelStyle: options.hLabelStyle, // 选中文字时效果,没用
|
|
825
827
|
},
|
|
826
828
|
options.layerName, // layerTag
|
|
@@ -841,6 +843,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
841
843
|
{
|
|
842
844
|
minZoom: options.visiblitySetting.beginLevel,
|
|
843
845
|
maxZoom: options.visiblitySetting.endLevel,
|
|
846
|
+
layerId: options.layerName
|
|
844
847
|
// hLabelStyle: options.hLabelStyle, // 选中文字时效果,没用
|
|
845
848
|
},
|
|
846
849
|
options.layerName, // layerTag
|
|
@@ -1783,7 +1783,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1783
1783
|
callback(data);
|
|
1784
1784
|
}
|
|
1785
1785
|
};
|
|
1786
|
-
that.callMap('getCenterPoint', polygon, cb);
|
|
1786
|
+
return that.callMap('getCenterPoint', polygon, cb);
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
1789
1789
|
/*设置图层显示与隐藏*/
|