egovamap 0.28.9 → 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 +20 -0
- package/egovamap/egovamap.js +49 -0
- package/package.json +1 -1
|
@@ -2713,6 +2713,26 @@ var EGovaGISMap = function (
|
|
|
2713
2713
|
return that.callMap("stopMeasure");
|
|
2714
2714
|
};
|
|
2715
2715
|
|
|
2716
|
+
// 上视图
|
|
2717
|
+
that.previousView = function () {
|
|
2718
|
+
that.callMap("previousView");
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
// 上视图
|
|
2722
|
+
that.nextView = function () {
|
|
2723
|
+
that.callMap("nextView");
|
|
2724
|
+
}
|
|
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
|
+
|
|
2716
2736
|
that.init();
|
|
2717
2737
|
};
|
|
2718
2738
|
|
package/egovamap/egovamap.js
CHANGED
|
@@ -5154,6 +5154,55 @@ var EGovaMap = function (
|
|
|
5154
5154
|
}
|
|
5155
5155
|
};
|
|
5156
5156
|
|
|
5157
|
+
// 截屏
|
|
5158
|
+
that.snapScreen = function () {
|
|
5159
|
+
if (scene == null) {
|
|
5160
|
+
return;
|
|
5161
|
+
}
|
|
5162
|
+
if (gisMap != null) {
|
|
5163
|
+
gisMap.snapScreen();
|
|
5164
|
+
}
|
|
5165
|
+
}
|
|
5166
|
+
|
|
5167
|
+
// 上视图
|
|
5168
|
+
that.previousView = function () {
|
|
5169
|
+
if (scene == null) {
|
|
5170
|
+
return;
|
|
5171
|
+
}
|
|
5172
|
+
if (gisMap != null) {
|
|
5173
|
+
gisMap.previousView();
|
|
5174
|
+
}
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5177
|
+
// 上视图
|
|
5178
|
+
that.nextView = function () {
|
|
5179
|
+
if (scene == null) {
|
|
5180
|
+
return;
|
|
5181
|
+
}
|
|
5182
|
+
if (gisMap != null) {
|
|
5183
|
+
gisMap.nextView();
|
|
5184
|
+
}
|
|
5185
|
+
}
|
|
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
|
+
|
|
5157
5206
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
5158
5207
|
|
|
5159
5208
|
// EGovaBI(globeMap).bind(this)();
|