FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix:解决查询第三方数据源图层数据信息失败问题 · MapGIS/WebClient-JavaScript@2e5e1ae · GitHub

Commit 2e5e1ae

Browse files
committed
fix:解决查询第三方数据源图层数据信息失败问题
1 parent a016abe commit 2e5e1ae

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL