egovamap 0.33.39 → 0.34.1
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/egovagisviewer.js +8 -2
- package/egovamap/egovamap.js +13 -4
- package/package.json +1 -1
|
@@ -1463,7 +1463,8 @@ var EGovaGISMap = function (
|
|
|
1463
1463
|
infoCallback,
|
|
1464
1464
|
updatePositionCallback,
|
|
1465
1465
|
closeCallback,
|
|
1466
|
-
traceDigCallback
|
|
1466
|
+
traceDigCallback,
|
|
1467
|
+
panelStyle
|
|
1467
1468
|
) {
|
|
1468
1469
|
if (scene == null) return;
|
|
1469
1470
|
var cb = function (type, data) {
|
|
@@ -1494,7 +1495,8 @@ var EGovaGISMap = function (
|
|
|
1494
1495
|
hideControlPanel,
|
|
1495
1496
|
symbolPic,
|
|
1496
1497
|
optimizeParams,
|
|
1497
|
-
cb
|
|
1498
|
+
cb,
|
|
1499
|
+
panelStyle
|
|
1498
1500
|
);
|
|
1499
1501
|
};
|
|
1500
1502
|
|
|
@@ -2822,6 +2824,10 @@ var EGovaGISMap = function (
|
|
|
2822
2824
|
return that.callMap("buffer", type, geometry, radius, callback);
|
|
2823
2825
|
}
|
|
2824
2826
|
|
|
2827
|
+
that.addPopupLayer = function (id, option) {
|
|
2828
|
+
return that.callMap("addPopupLayer", id, option);
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2825
2831
|
that.init();
|
|
2826
2832
|
};
|
|
2827
2833
|
|
package/egovamap/egovamap.js
CHANGED
|
@@ -2353,9 +2353,9 @@ var EGovaMap = function (
|
|
|
2353
2353
|
that.buffer = function (type, geometry, radius, callback) {
|
|
2354
2354
|
if (scene == null) return;
|
|
2355
2355
|
if (gisMap != null) {
|
|
2356
|
-
|
|
2356
|
+
return gisMap.buffer.apply(this, arguments);
|
|
2357
2357
|
}
|
|
2358
|
-
}
|
|
2358
|
+
};
|
|
2359
2359
|
|
|
2360
2360
|
/**
|
|
2361
2361
|
* @param {*} points 点位坐标list,[[x,y],...]
|
|
@@ -2515,7 +2515,8 @@ var EGovaMap = function (
|
|
|
2515
2515
|
infoCallback,
|
|
2516
2516
|
updatePositionCallback,
|
|
2517
2517
|
closeCallback,
|
|
2518
|
-
traceDigCallback
|
|
2518
|
+
traceDigCallback,
|
|
2519
|
+
panelStyle
|
|
2519
2520
|
) {
|
|
2520
2521
|
if (scene == null) return;
|
|
2521
2522
|
if (gisMap != null && gisMap.gisVisible) {
|
|
@@ -3959,6 +3960,7 @@ var EGovaMap = function (
|
|
|
3959
3960
|
endLevel: endLevel,
|
|
3960
3961
|
};
|
|
3961
3962
|
}
|
|
3963
|
+
option.cb = options.cb;
|
|
3962
3964
|
if (globeMap != null) {
|
|
3963
3965
|
globeMap.configServiceLayer(infoJson, option, layerName);
|
|
3964
3966
|
}
|
|
@@ -5526,7 +5528,7 @@ var EGovaMap = function (
|
|
|
5526
5528
|
gisMap.addMaskLayerV22(params);
|
|
5527
5529
|
}
|
|
5528
5530
|
};
|
|
5529
|
-
|
|
5531
|
+
|
|
5530
5532
|
that.destroyMap = function () {
|
|
5531
5533
|
if (scene == null) return;
|
|
5532
5534
|
if (gisMap != null) {
|
|
@@ -5534,6 +5536,13 @@ var EGovaMap = function (
|
|
|
5534
5536
|
}
|
|
5535
5537
|
};
|
|
5536
5538
|
|
|
5539
|
+
that.addPopupLayer = function (id, option) {
|
|
5540
|
+
if (scene == null) return;
|
|
5541
|
+
if (gisMap != null) {
|
|
5542
|
+
gisMap.addPopupLayer(id, option);
|
|
5543
|
+
}
|
|
5544
|
+
};
|
|
5545
|
+
|
|
5537
5546
|
that.initMap(containerID, callback, mapType, mapConfig, mapParam);
|
|
5538
5547
|
|
|
5539
5548
|
// EGovaBI(globeMap).bind(this)();
|