egovamap 0.29.0 → 0.29.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 +10 -0
- package/egovamap/egovamap.js +20 -1
- package/package.json +1 -1
|
@@ -2723,6 +2723,16 @@ 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
|
+
|
|
2726
2736
|
that.init();
|
|
2727
2737
|
};
|
|
2728
2738
|
|
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,25 @@ 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
|
+
|
|
5187
5206
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
5188
5207
|
|
|
5189
5208
|
// EGovaBI(globeMap).bind(this)();
|