Skip to content

Commit 4accb23

Browse files
committed
2 parents bdbaff1 + 1fce77d commit 4accb23

File tree

118 files changed

+1711
-1721
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1711
-1721
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![SonarCloud Gate](https://sonarcloud.io/api/badges/gate?key=com.supermap%3Aiclient-javascript9)](https://sonarcloud.io/dashboard?id=com.supermap%3Aiclient-javascript9)
44
[![SonarCloud Coverage](https://sonarcloud.io/api/badges/measure?key=com.supermap%3Aiclient-javascript9&metric=coverage)](https://sonarcloud.io/dashboard?id=com.supermap%3Aiclient-javascript9)
55
[![npm version](https://img.shields.io/npm/v/@supermap/iclient-common.svg)](https://www.npmjs.com/~supermap)
6+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FSuperMap%2FiClient-JavaScript.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FSuperMap%2FiClient-JavaScript?ref=badge_shield)
67

78
SuperMap iClient for JavaScript 是一套由 JavaScript 语言编写的 GIS 客户端应用开发包, 支持多源数据地图,支持多终端,跨浏览器, 通过本产品可快速实现浏览器上美观、流畅的地图呈现。
89

@@ -15,3 +16,7 @@ SuperMap iClient for JavaScript 是一套由 JavaScript 语言编写的 GIS 客
1516

1617
## 许可
1718
[ Apache License 2.0 ](./LICENSE)
19+
20+
21+
## License
22+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FSuperMap%2FiClient-JavaScript.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FSuperMap%2FiClient-JavaScript?ref=badge_large)
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
var olapi = "https://openlayers.org/en/latest/apidoc/";
2+
var lfapi = "http://leafletjs.com/reference-1.3.0.html";
23
var typeLinks = {
34
"ol.Map": olapi + "ol.Map.html",
4-
"ol.View": olapi + "ol.View.html"
5+
"ol.View": olapi + "ol.View.html",
6+
"ol.extent": olapi + "ol.extent.html",
7+
"ol.feature": olapi + "ol.feature.html",
8+
"ol.geom.Polygon": olapi + "ol.geom.Polygon.html",
9+
"ol.geom.Point": olapi + "ol.geom.Point.html",
10+
"ol.format.GeoJSON": olapi + "ol.format.GeoJSON.html",
11+
"L.bounds": lfapi + "#bounds",
12+
"L.Polygon": lfapi + "#polygon",
13+
"L.Point": lfapi + "#point",
14+
"L.LatLng": lfapi + "#latlng",
15+
"L.GeoJSON": lfapi + "#geojson"
516
}
617
exports.typeLinks = typeLinks;

src/common/iServer/AddressMatchService.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {GeoDecodingParameter} from './GeoDecodingParameter';
66

77
/**
88
* @class SuperMap.AddressMatchService
9-
* @category iServer AddressMatch
9+
* @category iServer AddressMatch
1010
* @classdesc 地址匹配服务,包括正向匹配和反向匹配。
11-
* @param options - {Object} 参数
12-
* @param url {string} 地址匹配服务地址
11+
* @param {string} url - 地址匹配服务地址
12+
* @param {Object} options - 参数
1313
*/
1414
export class AddressMatchService extends CommonServiceBase {
1515

@@ -28,8 +28,8 @@ export class AddressMatchService extends CommonServiceBase {
2828

2929
/**
3030
* @function SuperMap.AddressMatchService.prototype.code
31-
* @param url {string} 正向地址匹配服务地址
32-
* @param params {SuperMap.GeoCodingParameter} 正向地址匹配服务参数
31+
* @param {string} url - 正向地址匹配服务地址
32+
* @param {SuperMap.GeoCodingParameter} params - 正向地址匹配服务参数
3333
*/
3434
code(url, params) {
3535
if (!(params instanceof GeoCodingParameter)) {
@@ -40,8 +40,8 @@ export class AddressMatchService extends CommonServiceBase {
4040

4141
/**
4242
* @function SuperMap.AddressMatchService.prototype.decode
43-
* @param url {string} 反向地址匹配服务地址
44-
* @param params {SuperMap.GeoDecodingParameter} 反向地址匹配服务参数
43+
* @param {string} url - 反向地址匹配服务地址
44+
* @param {SuperMap.GeoDecodingParameter} params - 反向地址匹配服务参数
4545
*/
4646
decode(url, params) {
4747
if (!(params instanceof GeoDecodingParameter)) {
@@ -53,8 +53,8 @@ export class AddressMatchService extends CommonServiceBase {
5353
/**
5454
* @function SuperMap.AddressMatchService.prototype.processAsync
5555
* @description 负责将客户端的动态分段服务参数传递到服务端。
56-
* @param url - {string} 服务地址
57-
* @param params - {Object} 参数
56+
* @param {string} url - 服务地址
57+
* @param {Object} params - 参数。
5858
*/
5959

6060
processAsync(url, params) {
@@ -74,7 +74,7 @@ export class AddressMatchService extends CommonServiceBase {
7474

7575
/**
7676
* @function SuperMap.AddressMatchService.prototype.serviceProcessCompleted
77-
* @param result - {Object} 服务器返回的结果对象。
77+
* @param {Object} result - 服务器返回的结果对象。
7878
* @description 服务流程是否完成
7979
*/
8080
serviceProcessCompleted(result) {
@@ -83,7 +83,7 @@ export class AddressMatchService extends CommonServiceBase {
8383

8484
/**
8585
* @function SuperMap.AddressMatchService.prototype.serviceProcessCompleted
86-
* @param result - {Object} 服务器返回的结果对象。
86+
* @param {Object} result - 服务器返回的结果对象。
8787
* @description 服务流程是否失败
8888
*/
8989
serviceProcessFailed(result) {

src/common/iServer/AggQueryBuilderParameter.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ import {SuperMap} from "../SuperMap";
22
import {Util} from '../commontypes/Util';
33

44
/**
5-
* @class SuperMap.AggQueryBuilderParameter
6-
* @classdesc 聚合查询QueryBuilder参数基类,该参数仅支持数据来源Elasticsearch服务的数据服务
7-
* @category iServer Data FeatureResults
8-
* @param {object} option 初始化参数 <br>
9-
* @param {String} name 查询结果名称 <br>
10-
* @param {String} queryType 查询类型 <br>
5+
* @class SuperMap.AggQueryBuilderParameter
6+
* @classdesc 聚合查询QueryBuilder参数基类,该参数仅支持数据来源Elasticsearch服务的数据服务
7+
* @category iServer Data FeatureResults
8+
* @param {Object} option - 初始化参数 <br>
9+
* @param {string} option.name - 查询结果名称 <br>
10+
* @param {SuperMap.AggregationQueryBuilderType} option.queryType - 查询类型 <br>
1111
*/
1212
export class AggQueryBuilderParameter {
1313
constructor(option) {
1414

1515
/**
16-
* @member SuperMap.AggQueryBuilderParameter.prototype.name -{String}
16+
* @member {string} SuperMap.AggQueryBuilderParameter.prototype.name
1717
* @description 查询结果名称
1818
*/
1919
this.name = null;
2020
/**
21-
* @member SuperMap.AggQueryBuilderParameter.prototype.queryType -{String}
21+
* @member {SuperMap.AggregationQueryBuilderType} SuperMap.AggQueryBuilderParameter.prototype.queryType
2222
* @description 查询类型
2323
*/
2424
this.queryType = null;

src/common/iServer/AggregationParameter.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ import {SuperMap} from '../SuperMap';
22
import {Util} from '../commontypes/Util';
33

44
/**
5-
* @class SuperMap.AggregationParameter
6-
* @classdesc 聚合查询参数设置,该参数仅支持数据来源Elasticsearch服务的数据服务
7-
* @category iServer Data FeatureResults
8-
* @param {object} options 初始化参数 <br>
9-
* @param {String} aggName 聚合名称 <br>
10-
* @param {String} aggType 聚合类型设置 <br>
11-
* @param {String} aggFieldName 聚合字段 <br>
12-
* @param {object} subAgg 子聚合类 </br>
5+
* @class SuperMap.AggregationParameter
6+
* @classdesc 聚合查询参数设置,该参数仅支持数据来源Elasticsearch服务的数据服务
7+
* @category iServer Data FeatureResults
8+
* @param {Object} options - 初始化参数 <br>
9+
* @param {string} options.aggName - 聚合名称 <br>
10+
* @param {SuperMap.AggregationType} options.aggType - 聚合类型设置 <br>
11+
* @param {string} options.aggFieldName - 聚合字段 <br>
12+
* @param {SuperMap.AggregationParameter} options.subAgg - 子聚合类 </br>
1313
*
1414
*/
1515
export class AggregationParameter {
1616
constructor(options) {
1717
/**
18-
* @member SuperMap.AggregationParameter.prototype.aggName - {String}
18+
* @member {string} SuperMap.AggregationParameter.prototype.aggName
1919
* @description 聚合名称
2020
*/
2121
this.aggName = null;
2222
/**
23-
* @member SuperMap.AggregationParameter.prototype.aggType - {String}
23+
* @member {SuperMap.AggregationType} SuperMap.AggregationParameter.prototype.aggType
2424
* @description 聚合类型设置类
2525
*/
2626
this.aggType = null;
2727
/**
28-
* @member SuperMap.AggregationParameter.prototype.aggFieldName - {String}
28+
* @member {string} SuperMap.AggregationParameter.prototype.aggFieldName
2929
* @description 聚合字段
3030
*/
3131
this.aggFieldName = null;
3232
/**
33-
* @member SuperMap.AggregationParameter.prototype.subAgg - {object}
33+
* @member {SuperMap.AggregationParameter} SuperMap.AggregationParameter.prototype.subAgg
3434
* @description 子聚合
3535
*/
3636
this.subAgg = null;

0 commit comments

Comments
 (0)