egovamap 0.15.28 → 0.16.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/egovaBI.js +5 -1
- package/egovamap/egovagis.js +7 -0
- package/egovamap/egovagisviewer.js +1 -1
- package/egovamap/egovaglobe.js +20 -0
- package/egovamap/egovamap.js +38 -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){
|
|
@@ -93,7 +93,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
that.id = msgPrefix ? msgPrefix + "_emap" : 'emap';
|
|
96
|
-
that.gisDebug = getLocalStorageItem('gisDebug');
|
|
96
|
+
that.gisDebug = (getLocalStorageItem('gisDebug')=='true');
|
|
97
97
|
//that.gisMapContainer = $container.getElementsByClassName(id)[0];
|
|
98
98
|
//that.gisMapContainer = $container.find("#" + that.id)[0];
|
|
99
99
|
that.gisMapContainer = document.getElementById(that.id);
|
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)
|
|
@@ -4152,6 +4162,34 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
4152
4162
|
if (globeMap != null) {
|
|
4153
4163
|
globeMap.hidePbrPanel();
|
|
4154
4164
|
}
|
|
4165
|
+
};
|
|
4166
|
+
that.showPop = function(property, keyPropety, position) {
|
|
4167
|
+
if (scene == null)
|
|
4168
|
+
return;
|
|
4169
|
+
if (globeMap != null) {
|
|
4170
|
+
globeMap.showPop(property, keyPropety, position);
|
|
4171
|
+
}
|
|
4172
|
+
};
|
|
4173
|
+
that.union = function() {
|
|
4174
|
+
if (scene == null)
|
|
4175
|
+
return;
|
|
4176
|
+
if (globeMap != null) {
|
|
4177
|
+
globeMap.union();
|
|
4178
|
+
}
|
|
4179
|
+
};
|
|
4180
|
+
that.difference = function() {
|
|
4181
|
+
if (scene == null)
|
|
4182
|
+
return;
|
|
4183
|
+
if (globeMap != null) {
|
|
4184
|
+
globeMap.difference();
|
|
4185
|
+
}
|
|
4186
|
+
};
|
|
4187
|
+
that.splitComparison = function(bool) {
|
|
4188
|
+
if (scene == null)
|
|
4189
|
+
return;
|
|
4190
|
+
if (globeMap != null) {
|
|
4191
|
+
globeMap.splitComparison(bool);
|
|
4192
|
+
}
|
|
4155
4193
|
};
|
|
4156
4194
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
4157
4195
|
|