egovamap 0.18.10 → 0.18.13
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/.vscode/launch.json +15 -0
- package/egovamap/egovaBI.js +19 -11
- package/egovamap/egovagis.js +6 -1
- package/egovamap/egovamap.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
// 使用 IntelliSense 了解相关属性。
|
|
3
|
+
// 悬停以查看现有属性的描述。
|
|
4
|
+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"type": "pwa-chrome",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"name": "Launch Chrome against localhost",
|
|
11
|
+
"url": "http://localhost:8080",
|
|
12
|
+
"webRoot": "${workspaceFolder}"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
package/egovamap/egovaBI.js
CHANGED
|
@@ -502,17 +502,25 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
502
502
|
symbolUrl = "".concat(subUniqueCode, ".png");
|
|
503
503
|
if(globeMap) symbolUrl = queryParam.gisServerURL ? `${queryParam.gisServerURL}/symbol/${symbolUrl}` : symbolUrl;
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
505
|
+
var map = globeMap || gisMap;
|
|
506
|
+
//验证图标是否可查询
|
|
507
|
+
map.getMapConfig("serverURL", function(key,data){
|
|
508
|
+
var symbolServiceURL = `${data}/symbol`;
|
|
509
|
+
var picUrl = (symbolUrl.indexOf("http") > -1 || symbolUrl.indexOf("https") > -1) ? symbolUrl:`${symbolServiceURL}/${symbolUrl}`;
|
|
510
|
+
getImgSize(picUrl).then(size => {
|
|
511
|
+
var dataList = features.map((function (feature) {
|
|
512
|
+
return Object.assign({}, { x: feature.geometry.x, y: feature.geometry.y }, {
|
|
513
|
+
attributes: feature.attributes,
|
|
514
|
+
// label:self.getLabel(feature.attributes), //去除内部弹框的可能性
|
|
515
|
+
symbolType: -1,
|
|
516
|
+
symbolUrl: (size.width || size.height) ? picUrl: (globeMap ?`${symbolServiceURL}/20100.png` : `20100.png`),
|
|
517
|
+
scale: 0.5
|
|
518
|
+
});
|
|
519
|
+
}));
|
|
520
|
+
callback && callback(dataList);
|
|
521
|
+
showParts(dataList);
|
|
522
|
+
})
|
|
523
|
+
})
|
|
516
524
|
};
|
|
517
525
|
if (gisMap) {
|
|
518
526
|
gisMap.queryPhylayerFeatures(queryParam, queryCallback);
|
package/egovamap/egovagis.js
CHANGED
|
@@ -244,7 +244,12 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
244
244
|
return;
|
|
245
245
|
scene.remove(msgPrefix + ":" + msgId, parentScene, stopOnTop);
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
/* 设置图层显示顺序 */
|
|
248
|
+
that.reorderLayer = function(id, order, options) {
|
|
249
|
+
if (scene == null)
|
|
250
|
+
return;
|
|
251
|
+
scene.fire((msgPrefix + ":reorderLayer"), {args: [id, order, options]}, parentScene);
|
|
252
|
+
}
|
|
248
253
|
/* 切换到平移工具 */
|
|
249
254
|
that.panMap = function() {
|
|
250
255
|
if (scene == null)
|
package/egovamap/egovamap.js
CHANGED
|
@@ -1350,7 +1350,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
1350
1350
|
var filterNullGeometry = options.filterNullGeometry;//by cp,2020-08-12,空geometry的过滤
|
|
1351
1351
|
var queryWhere = where;
|
|
1352
1352
|
if(keyvalueWhere != ''){
|
|
1353
|
-
queryWhere = where + " AND " + keyvalueWhere
|
|
1353
|
+
queryWhere = where + " AND " + keyvalueWhere;
|
|
1354
1354
|
}
|
|
1355
1355
|
var queryParam = {
|
|
1356
1356
|
layerID: layerID,
|