egovamap 0.15.29 → 0.16.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/egovaBI.js +5 -1
- package/egovamap/egovagis.js +7 -0
- package/egovamap/egovagisviewer.js +4 -0
- package/egovamap/egovaglobe.js +20 -0
- package/egovamap/egovamap.js +47 -0
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -349,6 +349,10 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
349
349
|
var subUniqueCode = options.subUniqueCode;
|
|
350
350
|
let queryCallback = function (featureInfos) {
|
|
351
351
|
var features = featureInfos[queryParam.phyLayerIDs];
|
|
352
|
+
if (features.length == 0) {
|
|
353
|
+
callback && callback([]);
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
352
356
|
if (!features || !features.length) return;
|
|
353
357
|
var symbolUrl = "";
|
|
354
358
|
if (subUniqueCode.indexOf("http") > -1) {
|
|
@@ -361,7 +365,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
361
365
|
var dataList = features.map((function (feature) {
|
|
362
366
|
return Object.assign({}, { x: feature.geometry.x, y: feature.geometry.y }, {
|
|
363
367
|
attributes: feature.attributes,
|
|
364
|
-
|
|
368
|
+
label:self.getLabel(feature.attributes),
|
|
365
369
|
symbolType: -1,
|
|
366
370
|
symbolUrl: symbolUrl,
|
|
367
371
|
});
|
package/egovamap/egovagis.js
CHANGED
|
@@ -298,6 +298,13 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
298
298
|
scene.fire(msgPrefix + ":showWMSLayer", { args : [ layerUsageID, IDs, keyField, geometry, where ] }, parentScene, false);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
/*清除WMS服务图层*/
|
|
302
|
+
that.removeWMSLayer = function(serviceID) {
|
|
303
|
+
if (scene == null)
|
|
304
|
+
return;
|
|
305
|
+
scene.fire(msgPrefix + ":removeWMSLayer", { args : [ serviceID ] }, parentScene, false);
|
|
306
|
+
}
|
|
307
|
+
|
|
301
308
|
|
|
302
309
|
/*根据要素坐标定位显示要素*/
|
|
303
310
|
that.locateFeatureByCoords=function(geometries, type, ID, style, hStyle, zoom, keyFiled, labelField, labelStyle, randomColor, renderCanvas, singleSelected, options, layerTag){
|
|
@@ -1819,6 +1819,10 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1819
1819
|
that.clearLayerSelectStyle = function (id, options) {
|
|
1820
1820
|
that.callMap('clearLayerSelectStyle', id, options);
|
|
1821
1821
|
}
|
|
1822
|
+
|
|
1823
|
+
that.getLayersByLayerGroup = function (layerGroupName, callback) {
|
|
1824
|
+
that.callMap('getLayersByLayerGroup', layerGroupName, callback);
|
|
1825
|
+
}
|
|
1822
1826
|
|
|
1823
1827
|
that.init();
|
|
1824
1828
|
}
|
package/egovamap/egovaglobe.js
CHANGED
|
@@ -2160,6 +2160,26 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
|
|
|
2160
2160
|
if (scene == null)
|
|
2161
2161
|
return;
|
|
2162
2162
|
scene.fire((msgPrefix + ":hidePbrPanel"), { args: [] }, parentScene, false);
|
|
2163
|
+
};
|
|
2164
|
+
that.showPop = function(property, keyPropety, position) {
|
|
2165
|
+
if (scene == null)
|
|
2166
|
+
return;
|
|
2167
|
+
scene.fire((msgPrefix + ":showPop"), { args: [property, keyPropety, position] }, parentScene, false);
|
|
2168
|
+
};
|
|
2169
|
+
that.union = function() {
|
|
2170
|
+
if (scene == null)
|
|
2171
|
+
return;
|
|
2172
|
+
scene.fire((msgPrefix + ":union"), { args: [] }, parentScene, false);
|
|
2173
|
+
};
|
|
2174
|
+
that.difference = function() {
|
|
2175
|
+
if (scene == null)
|
|
2176
|
+
return;
|
|
2177
|
+
scene.fire((msgPrefix + ":difference"), { args: [] }, parentScene, false);
|
|
2178
|
+
};
|
|
2179
|
+
that.splitComparison = function(bool) {
|
|
2180
|
+
if (scene == null)
|
|
2181
|
+
return;
|
|
2182
|
+
scene.fire((msgPrefix + ":splitComparison"), { args: [bool] }, parentScene, false);
|
|
2163
2183
|
};
|
|
2164
2184
|
that.init();
|
|
2165
2185
|
};
|
package/egovamap/egovamap.js
CHANGED
|
@@ -560,6 +560,16 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
+
|
|
564
|
+
/*清除WMS服务图层*/
|
|
565
|
+
that.removeWMSLayer = function (serviceID) {
|
|
566
|
+
if (scene == null)
|
|
567
|
+
return;
|
|
568
|
+
if (gisMap != null) {
|
|
569
|
+
gisMap.removeWMSLayer.apply(this, arguments);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
563
573
|
/* 清除指定图形 */
|
|
564
574
|
that.clearGraphic = function (id, tag) {
|
|
565
575
|
if (scene == null)
|
|
@@ -3754,6 +3764,15 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
3754
3764
|
gisMap.clearLayerSelectStyle.apply(this, arguments);
|
|
3755
3765
|
}
|
|
3756
3766
|
}
|
|
3767
|
+
|
|
3768
|
+
that.getLayersByLayerGroup = function (layerGroupName, callback) {
|
|
3769
|
+
if (scene == null)
|
|
3770
|
+
return;
|
|
3771
|
+
if (gisMap != null) {
|
|
3772
|
+
gisMap.getLayersByLayerGroup.apply(this, arguments);
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3757
3776
|
//添加影像wms、wmts等
|
|
3758
3777
|
that.addCIMMap = function(options) {
|
|
3759
3778
|
if (scene == null)
|
|
@@ -4152,6 +4171,34 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
4152
4171
|
if (globeMap != null) {
|
|
4153
4172
|
globeMap.hidePbrPanel();
|
|
4154
4173
|
}
|
|
4174
|
+
};
|
|
4175
|
+
that.showPop = function(property, keyPropety, position) {
|
|
4176
|
+
if (scene == null)
|
|
4177
|
+
return;
|
|
4178
|
+
if (globeMap != null) {
|
|
4179
|
+
globeMap.showPop(property, keyPropety, position);
|
|
4180
|
+
}
|
|
4181
|
+
};
|
|
4182
|
+
that.union = function() {
|
|
4183
|
+
if (scene == null)
|
|
4184
|
+
return;
|
|
4185
|
+
if (globeMap != null) {
|
|
4186
|
+
globeMap.union();
|
|
4187
|
+
}
|
|
4188
|
+
};
|
|
4189
|
+
that.difference = function() {
|
|
4190
|
+
if (scene == null)
|
|
4191
|
+
return;
|
|
4192
|
+
if (globeMap != null) {
|
|
4193
|
+
globeMap.difference();
|
|
4194
|
+
}
|
|
4195
|
+
};
|
|
4196
|
+
that.splitComparison = function(bool) {
|
|
4197
|
+
if (scene == null)
|
|
4198
|
+
return;
|
|
4199
|
+
if (globeMap != null) {
|
|
4200
|
+
globeMap.splitComparison(bool);
|
|
4201
|
+
}
|
|
4155
4202
|
};
|
|
4156
4203
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
4157
4204
|
|