@@ -3877,7 +3877,7 @@ var FetchRequest = SuperMap.FetchRequest = {
3877
3877
url : url += "&_method=PUT" ,
3878
3878
data : params
3879
3879
} ;
3880
- return SuperMap . Util . RequestJSONPPromise . DELETE ( config ) ;
3880
+ return SuperMap . Util . RequestJSONPPromise . PUT ( config ) ;
3881
3881
3882
3882
}
3883
3883
return this . _fetch ( url , params , options , 'PUT' ) ;
@@ -4572,6 +4572,12 @@ var GeometryType = SuperMap.GeometryType = {
4572
4572
POINT : "POINT" ,
4573
4573
/** REGION */
4574
4574
REGION : "REGION" ,
4575
+ /** POINTEPS */
4576
+ POINTEPS : "POINTEPS" ,
4577
+ /** LINEEPS */
4578
+ LINEEPS : "LINEEPS" ,
4579
+ /** REGIONEPS */
4580
+ REGIONEPS : "REGIONEPS" ,
4575
4581
/** ELLIPSE */
4576
4582
ELLIPSE : "ELLIPSE" ,
4577
4583
/** CIRCLE */
@@ -8070,10 +8076,6 @@ class Format_Format {
8070
8076
this . keepData = false ;
8071
8077
8072
8078
Util . extend ( this , options ) ;
8073
- /**
8074
- * @member {Object} SuperMap.Format.prototype.options
8075
- * @description 可选参数。
8076
- */
8077
8079
this . options = options ;
8078
8080
8079
8081
this . CLASS_NAME = "SuperMap.Format" ;
@@ -8120,32 +8122,39 @@ SuperMap.Format = Format_Format;
8120
8122
* @class SuperMap.Format.JSON
8121
8123
* @classdesc 安全的读写 JSON 的解析类。使用 {@link SuperMap.Format.JSON} 构造函数创建新实例。
8122
8124
* @category BaseTypes Format
8125
+ * @param {Object } [options] - 参数。
8126
+ * @param {string } [options.indent=" "] - 用于格式化输出,indent 字符串会在每次缩进的时候使用一次。
8127
+ * @param {string } [options.space=" "] - 用于格式化输出,space 字符串会在名值对的 ":" 后边添加。
8128
+ * @param {string } [options.newline="\n"] - 用于格式化输出, newline 字符串会用在每一个名值对或数组项末尾。
8129
+ * @param {number } [options.level=0] - 用于格式化输出, 表示的是缩进级别。
8130
+ * @param {boolean } [options.pretty=false] - 是否在序列化的时候使用额外的空格控制结构。在 write 方法中使用。
8131
+ * @param {boolean } [options.nativeJSON] - 需要被注册的监听器对象。
8123
8132
* @extends {SuperMap.Format }
8124
8133
*/
8125
8134
class JSON_JSONFormat extends Format_Format {
8126
8135
8127
8136
constructor ( options ) {
8128
8137
super ( options ) ;
8129
8138
/**
8130
- * @member {string} SuperMap.Format.JSON.prototype.indent
8139
+ * @member {string} [ SuperMap.Format.JSON.prototype.indent=" "]
8131
8140
* @description 用于格式化输出,indent 字符串会在每次缩进的时候使用一次。
8132
8141
*/
8133
8142
this . indent = " " ;
8134
8143
8135
8144
/**
8136
- * @member {string} SuperMap.Format.JSON.prototype.space
8145
+ * @member {string} [ SuperMap.Format.JSON.prototype.space=" "]
8137
8146
* @description 用于格式化输出,space 字符串会在名值对的 ":" 后边添加。
8138
8147
*/
8139
8148
this . space = " " ;
8140
8149
8141
8150
/**
8142
- * @member {string} SuperMap.Format.JSON.prototype.newline
8151
+ * @member {string} [ SuperMap.Format.JSON.prototype.newline="\n"]
8143
8152
* @description 用于格式化输出, newline 字符串会用在每一个名值对或数组项末尾。
8144
8153
*/
8145
8154
this . newline = "\n" ;
8146
8155
8147
8156
/**
8148
- * @member {integer} SuperMap.Format.JSON.prototype.level
8157
+ * @member {integer} [ SuperMap.Format.JSON.prototype.level=0]
8149
8158
* @description 用于格式化输出, 表示的是缩进级别。
8150
8159
*/
8151
8160
this . level = 0 ;
@@ -8372,6 +8381,7 @@ class JSON_JSONFormat extends Format_Format {
8372
8381
/**
8373
8382
* @function SuperMap.Format.JSON.prototype.writeIndent
8374
8383
* @description 根据缩进级别输出一个缩进字符串。
8384
+ * @private
8375
8385
* @returns {string } 一个适当的缩进字符串。
8376
8386
*/
8377
8387
writeIndent ( ) {
@@ -8387,6 +8397,7 @@ class JSON_JSONFormat extends Format_Format {
8387
8397
/**
8388
8398
* @function SuperMap.Format.JSON.prototype.writeNewline
8389
8399
* @description 在格式化输出模式情况下输出代表新一行的字符串。
8400
+ * @private
8390
8401
* @returns {string } 代表新的一行的字符串。
8391
8402
*/
8392
8403
writeNewline ( ) {
@@ -8395,6 +8406,7 @@ class JSON_JSONFormat extends Format_Format {
8395
8406
8396
8407
/**
8397
8408
* @function SuperMap.Format.JSON.prototype.writeSpace
8409
+ * @private
8398
8410
* @description 在格式化输出模式情况下输出一个代表空格的字符串。
8399
8411
* @returns {string } 一个空格。
8400
8412
*/
@@ -8538,7 +8550,7 @@ class CommonServiceBase_CommonServiceBase {
8538
8550
* @param {string } [options.method='GET'] - 请求方式,包括 "GET","POST","PUT","DELETE"。
8539
8551
* @param {string } [options.url] - 发送请求的地址。
8540
8552
* @param {Object } [options.params] - 作为查询字符串添加到 URL 中的一组键值对,此参数只适用于 GET 方式发送的请求。
8541
- * @param {String } [options.data] - 发送到服务器的数据。
8553
+ * @param {string } [options.data] - 发送到服务器的数据。
8542
8554
* @param {function } options.success - 请求成功后的回调函数。
8543
8555
* @param {function } options.failure - 请求失败后的回调函数。
8544
8556
* @param {Object } [options.scope] - 如果回调函数是对象的一个公共方法,设定该对象的范围。
0 commit comments