egovamap 0.31.6 → 0.31.8
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 +7 -2
- package/egovamap/egovamap.js +13 -2
- package/package.json +1 -1
|
@@ -1101,7 +1101,8 @@ var EGovaGISMap = function (
|
|
|
1101
1101
|
colors,
|
|
1102
1102
|
layerName,
|
|
1103
1103
|
clickCallback,
|
|
1104
|
-
sizeScale
|
|
1104
|
+
sizeScale,
|
|
1105
|
+
options
|
|
1105
1106
|
) {
|
|
1106
1107
|
if (scene == null || infoJson.length == 0) return;
|
|
1107
1108
|
var cb = function (type, data) {
|
|
@@ -1115,7 +1116,8 @@ var EGovaGISMap = function (
|
|
|
1115
1116
|
colors,
|
|
1116
1117
|
layerName,
|
|
1117
1118
|
cb,
|
|
1118
|
-
sizeScale
|
|
1119
|
+
sizeScale,
|
|
1120
|
+
options
|
|
1119
1121
|
);
|
|
1120
1122
|
};
|
|
1121
1123
|
/* 显示实时案件分布 */
|
|
@@ -2742,6 +2744,9 @@ var EGovaGISMap = function (
|
|
|
2742
2744
|
that.callMap("coordConvert", type, x, y, callback);
|
|
2743
2745
|
}
|
|
2744
2746
|
|
|
2747
|
+
that.searchRegionInfo = function (params, callback) {
|
|
2748
|
+
that.callMap("searchRegionInfo", params, callback);
|
|
2749
|
+
};
|
|
2745
2750
|
that.init();
|
|
2746
2751
|
};
|
|
2747
2752
|
|
package/egovamap/egovamap.js
CHANGED
|
@@ -4580,7 +4580,8 @@ var EGovaMap = function (
|
|
|
4580
4580
|
colors,
|
|
4581
4581
|
layerName,
|
|
4582
4582
|
clickCallback,
|
|
4583
|
-
sizeScale
|
|
4583
|
+
sizeScale,
|
|
4584
|
+
options
|
|
4584
4585
|
) {
|
|
4585
4586
|
if (scene == null) return;
|
|
4586
4587
|
if (gisMap != null) {
|
|
@@ -4589,7 +4590,8 @@ var EGovaMap = function (
|
|
|
4589
4590
|
colors,
|
|
4590
4591
|
layerName,
|
|
4591
4592
|
clickCallback,
|
|
4592
|
-
sizeScale
|
|
4593
|
+
sizeScale,
|
|
4594
|
+
options
|
|
4593
4595
|
);
|
|
4594
4596
|
}
|
|
4595
4597
|
};
|
|
@@ -5231,6 +5233,15 @@ var EGovaMap = function (
|
|
|
5231
5233
|
gisMap.pointInPolygon(point, polygon);
|
|
5232
5234
|
}
|
|
5233
5235
|
}
|
|
5236
|
+
|
|
5237
|
+
/* 要素查询 */
|
|
5238
|
+
that.searchRegionInfo = function (params, callback) {
|
|
5239
|
+
// 移除监听
|
|
5240
|
+
if (scene == null) return;
|
|
5241
|
+
if (gisMap != null) {
|
|
5242
|
+
gisMap.searchRegionInfo(params, callback);
|
|
5243
|
+
}
|
|
5244
|
+
};
|
|
5234
5245
|
|
|
5235
5246
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
5236
5247
|
|