egovamap 0.16.1 → 0.16.4
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/egovaBI.js +2 -1
- package/egovamap/egovagis.js +1 -1
- package/egovamap/egovagisviewer.js +11 -1
- package/egovamap/egovamap.js +19 -0
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -336,7 +336,8 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
336
336
|
if (globeMap) {
|
|
337
337
|
globeMap.showMultiObjectCurrentPosition(...param);
|
|
338
338
|
} else if (gisMap) {
|
|
339
|
-
|
|
339
|
+
param[5] = true;//三维采用高性能渲染
|
|
340
|
+
gisMap.showMultiObjectCurrentPosition(...param );
|
|
340
341
|
}
|
|
341
342
|
}
|
|
342
343
|
|
package/egovamap/egovagis.js
CHANGED
|
@@ -1098,7 +1098,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
1098
1098
|
that.queryFeature = function(params, callback) {
|
|
1099
1099
|
if (scene == null)
|
|
1100
1100
|
return;
|
|
1101
|
-
scene.fire(msgPrefix + ":queryFeature", {args: [params.layerID, params.where || null, params.geometry || null, params.outFields, params.outGeometry, params.pointTolorence||0,params.startIndex,params.maxFeatures,null,callback||null,params.sortBy, params.filterNullGeometry, params.options]}, parentScene);
|
|
1101
|
+
scene.fire(msgPrefix + ":queryFeature", {args: [params.layerID, params.where || null, params.geometry || null, params.outFields, params.outGeometry, params.pointTolorence||0,params.startIndex,params.maxFeatures,null,callback||null,params.sortBy, params.filterNullGeometry, params.options, params.featureIds]}, parentScene);
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
1104
1104
|
/* 显示图层
|
|
@@ -522,6 +522,11 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
522
522
|
that.callMap('zoomToFullExtent');
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
+
/* 根据regionId缩放 */
|
|
526
|
+
that.zoomByRegionId = function (regionId, options, callback) {
|
|
527
|
+
that.callMap('zoomByRegionId', regionId, options, callback);
|
|
528
|
+
}
|
|
529
|
+
|
|
525
530
|
/* 切换到截图工具 */
|
|
526
531
|
that.snapScreen = function () {
|
|
527
532
|
if (scene == null)
|
|
@@ -1516,7 +1521,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1516
1521
|
that.queryFeature = function (params, callback) {
|
|
1517
1522
|
if (scene == null)
|
|
1518
1523
|
return;
|
|
1519
|
-
that.callMap('queryFeature', params.layerID, params.where || null, params.geometry || null, params.outFields, params.outGeometry, params.pointTolorence || 0, params.startIndex, params.maxFeatures, params.queryID, callback || null, params.sortBy, params.filterNullGeometry, params.options);
|
|
1524
|
+
that.callMap('queryFeature', params.layerID, params.where || null, params.geometry || null, params.outFields, params.outGeometry, params.pointTolorence || 0, params.startIndex, params.maxFeatures, params.queryID, callback || null, params.sortBy, params.filterNullGeometry, params.options, params.featureIds);
|
|
1520
1525
|
}
|
|
1521
1526
|
|
|
1522
1527
|
/* locateFeatureBYID用到的要素查询 */
|
|
@@ -1819,6 +1824,11 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1819
1824
|
that.clearLayerSelectStyle = function (id, options) {
|
|
1820
1825
|
that.callMap('clearLayerSelectStyle', id, options);
|
|
1821
1826
|
}
|
|
1827
|
+
|
|
1828
|
+
that.getLayersByLayerGroup = function (layerGroupName, callback) {
|
|
1829
|
+
that.callMap('getLayersByLayerGroup', layerGroupName, callback);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1822
1832
|
|
|
1823
1833
|
that.init();
|
|
1824
1834
|
}
|
package/egovamap/egovamap.js
CHANGED
|
@@ -425,6 +425,16 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
+
/* 根据regionId缩放 */
|
|
429
|
+
that.zoomByRegionId = function (regionId, options, callback) {
|
|
430
|
+
if(gisMap){
|
|
431
|
+
gisMap.zoomByRegionId(regionId, options, callback);
|
|
432
|
+
}
|
|
433
|
+
if(globeMap){
|
|
434
|
+
//globeMap.zoomByRegionId(regionId, options, callback);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
428
438
|
that.flyToPoint = function (x, y, height) {
|
|
429
439
|
if (scene == null)
|
|
430
440
|
return;
|
|
@@ -3764,6 +3774,15 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
3764
3774
|
gisMap.clearLayerSelectStyle.apply(this, arguments);
|
|
3765
3775
|
}
|
|
3766
3776
|
}
|
|
3777
|
+
|
|
3778
|
+
that.getLayersByLayerGroup = function (layerGroupName, callback) {
|
|
3779
|
+
if (scene == null)
|
|
3780
|
+
return;
|
|
3781
|
+
if (gisMap != null) {
|
|
3782
|
+
gisMap.getLayersByLayerGroup.apply(this, arguments);
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3767
3786
|
//添加影像wms、wmts等
|
|
3768
3787
|
that.addCIMMap = function(options) {
|
|
3769
3788
|
if (scene == null)
|