Skip to content

Commit ec6a676

Browse files
committed
[fix]调整地图服务图例资源查询参数说明
1 parent 2026ac3 commit ec6a676

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/common/iServer/GetLayersLegendInfoParameters.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import {Util} from '../commontypes/Util';
1010
* @classdesc 图例参数类。该类用于设置图例的尺寸、背景透明、可见范围等参数。
1111
* @version 11.1.1
1212
* @param {Object} options - 参数。
13-
* @param {string} options.bbox - 查询与此矩形框有交集的图层的图例当 layers 参数未设置时,bbox 是必填参数。格式:bbox=xmin,ymin,xmax,ymax。
13+
* @param {string} options.bbox - 查询与此矩形框有交集的图层的图例;当 returnVisibleOnly=true 时,表示在 bbox 里有要素的图层的图例。当 layers 参数未设置时,bbox 是必填参数。格式:bbox=xmin,ymin,xmax,ymax。
1414
* @param {string} options.layers - 图层过滤,当 bbox 参数未设置时,layers 是必填参数。语法:[show|hide]:layerName1,layerName2。show 表示只返回指定图层的图例,hide 表示指定图层图例不返回,其他查询出来的图层图例都返回。例如:show:country@World@@World,表示只返回 country@World@@World 图层的图例。
1515
* @param {boolean} [options.transparent=true] - 图例图片是否背景透明。true 代表背景透明。
16-
* @param {number} [options.mapScale] - 地图比例尺。当 returnVisibleOnly 为 true 时,mapScale 是必填参数
17-
* @param {boolean} [options.returnVisibleOnly=false] - 是否只返回当前地图范围内可见要素的图例。
16+
* @param {number} [options.mapScale] - 地图比例尺。当 returnVisibleOnly 为 true 时,返回在可见比例尺范围的图层的图例
17+
* @param {boolean} [options.returnVisibleOnly=false] - 是否只返回当前地图范围内可见要素的图例。<br>如果只传 returnVisibleOnly=true,则仅返回可见图层的图例; <br>如果传了 returnVisibleOnly=true 并且 mapScale 也设置了值,则返回可见图层,指定的比例尺在可见比例尺范围里的图层的图例; <br>如果传了 returnVisibleOnly=true, mapScale= *, bbox= *,则返回可见图层,指定的比例尺在可见比例尺范围里,且在 bbox 范围内有要素的图层的图例。
1818
* @param {number} [options.width=16] - 返回图例的宽度。单位为像素。
1919
* @param {number} [options.height=16] - 返回图例的高度。单位为像素。
2020
@@ -26,7 +26,7 @@ export class GetLayersLegendInfoParameters {
2626
constructor(options) {
2727
/**
2828
* @member {string} GetLayersLegendInfoParameters.prototype.bbox
29-
* @description 查询与此矩形框有交集的图层的图例当layers 参数未设置时,bbox 是必填参数。格式:bbox=xmin,ymin,xmax,ymax。
29+
* @description 查询与此矩形框有交集的图层的图例;当 returnVisibleOnly=true 时,表示在 bbox 里有要素的图层的图例。当layers 参数未设置时,bbox 是必填参数。格式:bbox=xmin,ymin,xmax,ymax。
3030
*/
3131
this.bbox = null;
3232

@@ -44,13 +44,14 @@ export class GetLayersLegendInfoParameters {
4444

4545
/**
4646
* @member {number} GetLayersLegendInfoParameters.prototype.mapScale
47-
* @description 地图比例尺。当 returnVisibleOnly 为 true 时,mapScale 是必填参数
47+
* @description 地图比例尺。当 returnVisibleOnly 为 true 时,返回在可见比例尺范围的图层的图例
4848
*/
4949
this.mapScale = null;
5050

5151
/**
5252
* @member {boolean} [GetLayersLegendInfoParameters.prototype.returnVisibleOnly=false]
53-
* @description 是否只返回当前地图范围内可见要素的图例。
53+
* @description 是否只返回当前地图范围内可见要素的图例。<br>如果只传 returnVisibleOnly=true,则仅返回可见图层的图例; <br>如果传了 returnVisibleOnly=true 并且 mapScale 也设置了值,则返回可见图层,指定的比例尺在可见比例尺范围里的图层的图例; <br>如果传了 returnVisibleOnly=true, mapScale= *, bbox= *,则返回可见图层,指定的比例尺在可见比例尺范围里,且在 bbox 范围内有要素的图层的图例。
54+
5455
*/
5556
this.returnVisibleOnly = null;
5657

0 commit comments

Comments
 (0)