瀏覽代碼

'设置添加图标获取图例库大小'

zhangyu 4 年之前
父節點
當前提交
dd78c2d6ab
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/mapClass/EditScence.ts

+ 2 - 2
src/components/mapClass/EditScence.ts

@@ -452,8 +452,8 @@ export class EditScence extends SGraphScene {
                 IconUrl: '/serve/topology-wanda/Picture/query/' + this._legend.Url,
                 Url: '/serve/topology-wanda/Picture/query/' + this._legend.Url,
                 Num: 1, // 此num与信息工程化得num无关
-                sWidth: 32,  //icon 的宽
-                sHeight: 32,   //icon 的高
+                sWidth: this._legend.Size?this._legend.Size.Width?this._legend.Size.Width:32:32,  //icon 的宽
+                sHeight: this._legend.Size?this._legend.Size.Height?this._legend.Size.Height:32:32,   //icon 的高
                 font: 16,    //font
                 color: "#1F2429",  //字体颜色
                 FrameColor: this._legend.FrameColor,