Skip to content

Commit ad46396

Browse files
gyj12killer1992
authored andcommitted
fix:解决查询第三方数据源图层数据信息失败问题
1 parent 199b7a6 commit ad46396

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/service/Igserver/MRCS/CatalogVectorLayer.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,13 @@ class VectorLayer extends GDBInfo {
620620
*/
621621
getLayerInfo(gdbpUrl, onSuccess, onError, encryptPassword) {
622622
var me = this;
623-
me.partUrl = 'layerinfo?gdbpUrl=' + gdbpUrl + '&f=json' + '&encryptPassword=' + encryptPassword + '&proj=' + this.proj;
623+
me.partUrl = 'layerinfo?gdbpUrl=' + gdbpUrl + '&f=json';
624+
if (encryptPassword) {
625+
me.partUrl += '&encryptPassword=' + encryptPassword;
626+
}
627+
if (this.proj) {
628+
me.partUrl += '&proj=' + this.proj;
629+
}
624630
var url = me.getFullUrl();
625631
var service = new IgsServiceBase(url, {
626632
eventListeners: {

0 commit comments

Comments
 (0)