egovamap 0.29.0 → 0.29.2
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 +15 -0
- package/egovamap/egovamap.js +29 -1
- package/package.json +1 -1
|
@@ -2723,6 +2723,21 @@ var EGovaGISMap = function (
|
|
|
2723
2723
|
that.callMap("nextView");
|
|
2724
2724
|
}
|
|
2725
2725
|
|
|
2726
|
+
// XY定位
|
|
2727
|
+
that.locateXY = function (params, callback) {
|
|
2728
|
+
that.callMap("locateXY", params, callback);
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
// 外部图层目录树的I查
|
|
2732
|
+
that.identifyTreeLayer = function (options, callback) {
|
|
2733
|
+
that.callMap("identifyTreeLayer", options, callback)
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
// 关闭点选拾取
|
|
2737
|
+
that.closePointSelect = function () {
|
|
2738
|
+
that.callMap("closePointSelect");
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2726
2741
|
that.init();
|
|
2727
2742
|
};
|
|
2728
2743
|
|
package/egovamap/egovamap.js
CHANGED
|
@@ -5160,7 +5160,7 @@ var EGovaMap = function (
|
|
|
5160
5160
|
return;
|
|
5161
5161
|
}
|
|
5162
5162
|
if (gisMap != null) {
|
|
5163
|
-
gisMap.
|
|
5163
|
+
gisMap.snapScreen();
|
|
5164
5164
|
}
|
|
5165
5165
|
}
|
|
5166
5166
|
|
|
@@ -5184,6 +5184,34 @@ var EGovaMap = function (
|
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
5186
|
|
|
5187
|
+
// 定位
|
|
5188
|
+
that.locateXY = function (params, callback) {
|
|
5189
|
+
if (scene == null) {
|
|
5190
|
+
return;
|
|
5191
|
+
}
|
|
5192
|
+
if (gisMap != null) {
|
|
5193
|
+
gisMap.locateXY(params, callback);
|
|
5194
|
+
}
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
that.identifyTreeLayer = function (options, callback) {
|
|
5198
|
+
if (scene == null) {
|
|
5199
|
+
return;
|
|
5200
|
+
}
|
|
5201
|
+
if (gisMap != null) {
|
|
5202
|
+
gisMap.identifyTreeLayer(options, callback);
|
|
5203
|
+
}
|
|
5204
|
+
}
|
|
5205
|
+
|
|
5206
|
+
that.closePointSelect = function () {
|
|
5207
|
+
if (scene == null) {
|
|
5208
|
+
return;
|
|
5209
|
+
}
|
|
5210
|
+
if (gisMap != null) {
|
|
5211
|
+
gisMap.closePointSelect();
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
|
|
5187
5215
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
5188
5216
|
|
|
5189
5217
|
// EGovaBI(globeMap).bind(this)();
|