| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,7 +33,7 @@ export class DatasetService extends CommonServiceBase { | |||
| 33 | 33 | ||
| 34 | 34 | /** | |
| 35 | 35 | * @function SuperMap.REST.DatasetService.prototype.getDatasets | |
| 36 | - * @description 数据集集合查询服务。 | ||
| 36 | + * @description 根据数据源名称查询该数据源下所有数据集的信息。 | ||
| 37 | 37 | * @example | |
| 38 | 38 | * new SuperMap.REST.DatasetService(url).getDatasets(datasourceName,function(result){ | |
| 39 | 39 | * //doSomething | |
@@ -51,7 +51,7 @@ export class DatasetService extends CommonServiceBase { | |||
| 51 | 51 | ||
| 52 | 52 | /** | |
| 53 | 53 | * @function SuperMap.REST.DatasetService.prototype.getDataset | |
| 54 | - * @description 数据集信息查询服务。 | ||
| 54 | + * @description 根据数据源名称、数据集名称查询该数据集的信息。 | ||
| 55 | 55 | * @example | |
| 56 | 56 | * new SuperMap.REST.DatasetService(url).getDataset(datasourceName, datasetName, function(result){ | |
| 57 | 57 | * //doSomething | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,7 +33,7 @@ export class DatasourceService extends CommonServiceBase { | |||
| 33 | 33 | ||
| 34 | 34 | /** | |
| 35 | 35 | * @function SuperMap.REST.DatasourceService.prototype.getDatasources | |
| 36 | - * @description 数据源集合查询服务。 | ||
| 36 | + * @description 获取当前服务下所有数据源信息。 | ||
| 37 | 37 | * @example | |
| 38 | 38 | * new SuperMap.REST.DatasourceService(url).getDatasources(function(result){ | |
| 39 | 39 | * //doSomething | |
@@ -47,7 +47,7 @@ export class DatasourceService extends CommonServiceBase { | |||
| 47 | 47 | ||
| 48 | 48 | /** | |
| 49 | 49 | * @function SuperMap.REST.DatasourceService.prototype.getDatasource | |
| 50 | - * @description 数据源信息查询服务。 | ||
| 50 | + * @description 根据数据源名称获取指定数据源的信息。 | ||
| 51 | 51 | * @example | |
| 52 | 52 | * new SuperMap.REST.DatasourceService(url).getDatasource(datasourceName,function(result){ | |
| 53 | 53 | * //doSomething | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,8 +16,8 @@ import {SecurityManager} from '../security/SecurityManager'; | |||
| 16 | 16 | * @param {Object} options - 参数。 | |
| 17 | 17 | * @param {function} options.style - 设置数据加载样式。 | |
| 18 | 18 | * @param {function} [options.onEachFeature] - 设置每个数据加载 popup 等。 | |
| 19 | - * @param {GeoJSONObject} [options.geometry] - 指定几何范围,只有在该范围内的要素才能被订阅。 | ||
| 20 | - * @param {Object} [options.excludeField] - 排除字段。 | ||
| 19 | + * @param {GeoJSONObject} [options.geometry] - 空间范围,只有在该范围内的要素才能被接收。 | ||
| 20 | + * @param {Object} [options.excludeField] - 过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。 | ||
| 21 | 21 | * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。 | |
| 22 | 22 | * @param {Object} [options.headers] - 请求头。 | |
| 23 | 23 | * @usage | |
@@ -37,7 +37,7 @@ export class DataFlowService extends CommonServiceBase { | |||
| 37 | 37 | ||
| 38 | 38 | /** | |
| 39 | 39 | * @member {GeoJSONObject} DataFlowService.prototype.geometry | |
| 40 | - * @description 指定几何范围,只有在该范围内的要素才能被订阅。 | ||
| 40 | + * @description 空间范围,只有在该范围内的要素才能被接收。 | ||
| 41 | 41 | */ | |
| 42 | 42 | this.geometry = null; | |
| 43 | 43 | ||
@@ -49,7 +49,7 @@ export class DataFlowService extends CommonServiceBase { | |||
| 49 | 49 | ||
| 50 | 50 | /** | |
| 51 | 51 | * @member {Object} DataFlowService.prototype.excludeField | |
| 52 | - * @description 排除字段。 | ||
| 52 | + * @description 过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。 | ||
| 53 | 53 | */ | |
| 54 | 54 | this.excludeField = null; | |
| 55 | 55 | ||
@@ -129,8 +129,8 @@ export class DataFlowService extends CommonServiceBase { | |||
| 129 | 129 | ||
| 130 | 130 | /** | |
| 131 | 131 | * @function DataFlowService.prototype.setExcludeField | |
| 132 | - * @description 设置排除字段。 | ||
| 133 | - * @param {Object} excludeField - 排除字段。 | ||
| 132 | + * @description 设置过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。 | ||
| 133 | + * @param {Object} excludeField - 过滤字段。 | ||
| 134 | 134 | * @returns {DataFlowService} DataFlowService 的实例对象。 | |
| 135 | 135 | */ | |
| 136 | 136 | setExcludeField(excludeField) { | |
@@ -141,8 +141,8 @@ export class DataFlowService extends CommonServiceBase { | |||
| 141 | 141 | ||
| 142 | 142 | /** | |
| 143 | 143 | * @function DataFlowService.prototype.setGeometry | |
| 144 | - * @description 设置添加的几何要素数据。 | ||
| 145 | - * @param {GeoJSONObject} geometry - 指定几何范围,只有在该范围内的要素才能被订阅。 | ||
| 144 | + * @description 设置空间范围,只有在该范围内的要素才能被接收。 | ||
| 145 | + * @param {GeoJSONObject} geometry - 空间范围。 | ||
| 146 | 146 | * @returns {DataFlowService} DataFlowService 的实例对象。 | |
| 147 | 147 | */ | |
| 148 | 148 | setGeometry(geometry) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,6 @@ import {Collection} from '../commontypes/geometry/Collection'; | |||
| 19 | 19 | * @param {number} options.length - 路由对象的长度。单位与数据集的单位相同。 | |
| 20 | 20 | * @param {number} [options.maxM] - 最大线性度量值,即所有结点到起始点的量算距离中最大值。 | |
| 21 | 21 | * @param {number} [options.minM] - 最小线性度量值,即所有结点到起始点的量算距离中最小值。 | |
| 22 | - * @param {string} [options.type] - 数据类型,如:"LINEM"。 | ||
| 23 | 22 | * @extends GeometryCollection | |
| 24 | 23 | * @usage | |
| 25 | 24 | */ | |
@@ -95,7 +94,7 @@ export class Route extends Collection { | |||
| 95 | 94 | * @member {string} Route.prototype.type | |
| 96 | 95 | * @description 服务端几何对象类型。 | |
| 97 | 96 | */ | |
| 98 | - this.type = null; | ||
| 97 | + this.type = "LINEM"; | ||
| 99 | 98 | ||
| 100 | 99 | /** | |
| 101 | 100 | * @member {Array.<string>} [Route.prototype.componentTypes=LineString] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,7 @@ import Attributions from '../core/Attributions'; | |||
| 37 | 37 | * @param {(number|L.Point)} [options.tileSize=256] - 瓦片大小。 | |
| 38 | 38 | * @param {(NDVIParameter|HillshadeParameter)} [options.rasterfunction] - 栅格分析参数。 | |
| 39 | 39 | * @param {string} [options.attribution='Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>'] - 版权描述信息。 | |
| 40 | - * @param {Array.<number>} [options.subdomains] - 子域名数组。 | ||
| 40 | + * @param {Array.<number>|Array.<string>} [options.subdomains] - 子域名数组。 | ||
| 41 | 41 | * @param {ChartSettingS57|ChartSettingS100} [options.chartSetting] - 海图显示参数设置类,用于管理海图显示环境,包括海图的显示模式、显示类型名称、颜色模式、安全水深线等各种显示风格。 | |
| 42 | 42 | * @param {number} [options.overflowTiles = 0] - 绘制超出图层范围的瓦片圈数。常用于位于地图边缘的要素符号显示不全的场景。默认值为0,表示不绘制超出图层范围的瓦片。当 options.noWrap 为 true 时,overflowTiles有效。 | |
| 43 | 43 | * @fires TiledMapLayer#tilesetsinfoloaded | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,15 +23,15 @@ import { | |||
| 23 | 23 | * @param {Object} options - 参数。 | |
| 24 | 24 | * @param {Object} [options.render='normal'] - 绘制方式。可选值为 'normal','mapv'。 | |
| 25 | 25 | 'normal' 表示以 {( {@link L.LatLng}|{@link L.Polyline}|{@link L.Polygon}|{@link L.Marker} )} 方式绘制数据流。'mapv' 表示以 {@link MapVLayer} 方式绘制实时数据。 | |
| 26 | - * @param {GeoJSONObject} [options.geometry] - 指定几何范围,只有在该范围内的要素才能被订阅。 | ||
| 26 | + * @param {GeoJSONObject} [options.geometry] - 空间范围,只有在该范围内的要素才能被接收。 | ||
| 27 | 27 | * @param {Object} [options.prjCoordSys] - 投影坐标对象。 | |
| 28 | - * @param {string} [options.excludeField] - 排除字段。 | ||
| 28 | + * @param {string} [options.excludeField] - 过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。 | ||
| 29 | 29 | * @param {string} [options.idField='id'] - 要素属性中表示唯一标识的字段。 | |
| 30 | - * @param {function} [options.pointToLayer] - 定义点要素如何绘制在地图上。 | ||
| 30 | + * @param {function} [options.pointToLayer] - 定义点要素如何绘制在地图上的函数。当接收到数据时,内部会调用此函数,并传递 GeoJSON 点要素及其经纬度坐标。 | ||
| 31 | 31 | `function(geoJsonPoint, latlng) { | |
| 32 | 32 | return L.marker(latlng); | |
| 33 | 33 | }` | |
| 34 | - * @param {function} [options.style] - 定义点、线、面要素样式。参数为{@link L.Path-option}。</br> | ||
| 34 | + * @param {function} [options.style] - 定义点、线、面要素样式的函数。返回参数为{@link L.Path-option}。当接收到数据时,内部会调用此函数,并传递 GeoJSON 要素</br> | ||
| 35 | 35 | `function (feature) { | |
| 36 | 36 | return { | |
| 37 | 37 | fillColor: "red", | |
@@ -121,8 +121,8 @@ export var DataFlowLayer = L.LayerGroup.extend({ | |||
| 121 | 121 | }, | |
| 122 | 122 | /** | |
| 123 | 123 | * @function DataFlowLayer.prototype.setExcludeField | |
| 124 | - * @description 设置唯一字段。 | ||
| 125 | - * @param {string} excludeField - 唯一字段。 | ||
| 124 | + * @description 设置过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。 | ||
| 125 | + * @param {string} excludeField - 过滤字段。 | ||
| 126 | 126 | */ | |
| 127 | 127 | setExcludeField: function (excludeField) { | |
| 128 | 128 | this.dataService.setExcludeField(excludeField); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,11 +24,8 @@ | |||
| 24 | 24 | * @param {boolean} [options.isOverLay=true] - 是否进行压盖处理,如果设为 true,图表绘制过程中将隐藏对已在图层中绘制的图表产生压盖的图表。 | |
| 25 | 25 | * @param {string} options.themeFields - 指定创建专题图字段。 | |
| 26 | 26 | * @param {boolean} [options.alwaysMapCRS=false] - 要素坐标是否和地图坐标系一致,要素默认是经纬度坐标。 | |
| 27 | - * @param {Object} [options.cache] - 缓存。 | ||
| 28 | - * @param {Object} [options.charts] - 图表。 | ||
| 29 | 27 | * @param {string} [options.id] - 专题图层 ID。默认使用 CommonUtil.createUniqueID("themeLayer_") 创建专题图层 ID。 | |
| 30 | 28 | * @param {number} [options.opacity=1] - 图层不透明度。 | |
| 31 | - * @param {Array} [options.TFEvents] - 专题要素事件临时存储。 | ||
| 32 | 29 | * @param {Object} options.chartsSetting - 各类型图表的 chartsSetting 对象可设属性请参考具体图表模型类的注释中对 chartsSetting 对象可设属性的描述。chartsSetting 对象通常都具有以下可设的基础属性:</br> | |
| 33 | 30 | * @param {number} options.chartsSetting.width - 专题要素(图表)宽度,单位为像素。 | |
| 34 | 31 | * @param {number} options.chartsSetting.height - 专题要素(图表)高度,单位为像素。 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,6 @@ | |||
| 24 | 24 | * @param {boolean} [options.alwaysMapCRS=false] - 要素坐标是否和地图坐标系一致,要素默认是经纬度坐标。 | |
| 25 | 25 | * @param {boolean} [options.isOverLay=true] - 是否进行压盖处理,如果设为 true,图表绘制过程中将隐藏对已在图层中绘制的图表产生压盖的图表。 | |
| 26 | 26 | * @param {number} [options.opacity=1] - 图层不透明度。 | |
| 27 | - * @param {Array} [options.TFEvents] - 专题要素事件临时存储。 | ||
| 28 | 27 | * @param {number} [options.nodesClipPixel=2] - 节点抽稀像素距离。 | |
| 29 | 28 | * @param {boolean} [options.isHoverAble=false] - 图形是否在 hover 时高亮。 | |
| 30 | 29 | * @param {boolean} [options.isMultiHover=false] - 是否多图形同时高亮,用于高亮同一个数据对应的所有图形(如:多面)。 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,6 @@ import { Util as CommonUtil } from '@supermapgis/iclient-common/commontypes/Util | |||
| 19 | 19 | * @param {number} [options.opacity=1] - 图层不透明度。 | |
| 20 | 20 | * @param {boolean} [options.alwaysMapCRS=false] - 要素坐标是否和地图坐标系一致,要素默认是经纬度坐标。 | |
| 21 | 21 | * @param {string} [options.attribution='Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>'] - 版权描述信息。 | |
| 22 | - * @param {Array} [options.TFEvents] - 专题要素事件临时存储。 | ||
| 23 | 22 | * @param {number} [options.nodesClipPixel=2] - 节点抽稀像素距离。 | |
| 24 | 23 | * @param {boolean} [options.isHoverAble=false] - 图形是否在 hover 时高亮。 | |
| 25 | 24 | * @param {boolean} [options.isMultiHover=false] - 是否多图形同时高亮,用于高亮同一个数据对应的所有图形(如:多面)。 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,6 @@ import { | |||
| 25 | 25 | * @param {boolean} [options.alwaysMapCRS=false] - 要素坐标是否和地图坐标系一致,要素默认是经纬度坐标。 | |
| 26 | 26 | * @param {string} [options.id] - 专题图层 ID。默认使用 CommonUtil.createUniqueID("themeLayer_") 创建专题图层 ID。 | |
| 27 | 27 | * @param {number} [options.opacity=1] - 图层不透明度。 | |
| 28 | - * @param {Array} [options.TFEvents] - 专题要素事件临时存储。 | ||
| 29 | 28 | * @param {string} [options.attribution='Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>'] - 版权描述信息。 | |
| 30 | 29 | * @usage | |
| 31 | 30 | */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments