@@ -3877,7 +3877,7 @@ var FetchRequest = SuperMap.FetchRequest = {
38773877 url : url += "&_method=PUT" ,
38783878 data : params
38793879 } ;
3880- return SuperMap . Util . RequestJSONPPromise . DELETE ( config ) ;
3880+ return SuperMap . Util . RequestJSONPPromise . PUT ( config ) ;
38813881
38823882 }
38833883 return this . _fetch ( url , params , options , 'PUT' ) ;
@@ -4572,6 +4572,12 @@ var GeometryType = SuperMap.GeometryType = {
45724572 POINT : "POINT" ,
45734573 /** REGION */
45744574 REGION : "REGION" ,
4575+ /** POINTEPS */
4576+ POINTEPS : "POINTEPS" ,
4577+ /** LINEEPS */
4578+ LINEEPS : "LINEEPS" ,
4579+ /** REGIONEPS */
4580+ REGIONEPS : "REGIONEPS" ,
45754581 /** ELLIPSE */
45764582 ELLIPSE : "ELLIPSE" ,
45774583 /** CIRCLE */
@@ -8070,10 +8076,6 @@ class Format_Format {
80708076 this . keepData = false ;
80718077
80728078 Util . extend ( this , options ) ;
8073- /**
8074- * @member {Object} SuperMap.Format.prototype.options
8075- * @description 可选参数。
8076- */
80778079 this . options = options ;
80788080
80798081 this . CLASS_NAME = "SuperMap.Format" ;
@@ -8120,32 +8122,39 @@ SuperMap.Format = Format_Format;
81208122 * @class SuperMap.Format.JSON
81218123 * @classdesc 安全的读写 JSON 的解析类。使用 {@link SuperMap.Format.JSON} 构造函数创建新实例。
81228124 * @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] - 需要被注册的监听器对象。
81238132 * @extends {SuperMap.Format }
81248133 */
81258134class JSON_JSONFormat extends Format_Format {
81268135
81278136 constructor ( options ) {
81288137 super ( options ) ;
81298138 /**
8130- * @member {string} SuperMap.Format.JSON.prototype.indent
8139+ * @member {string} [ SuperMap.Format.JSON.prototype.indent=" "]
81318140 * @description 用于格式化输出,indent 字符串会在每次缩进的时候使用一次。
81328141 */
81338142 this . indent = " " ;
81348143
81358144 /**
8136- * @member {string} SuperMap.Format.JSON.prototype.space
8145+ * @member {string} [ SuperMap.Format.JSON.prototype.space=" "]
81378146 * @description 用于格式化输出,space 字符串会在名值对的 ":" 后边添加。
81388147 */
81398148 this . space = " " ;
81408149
81418150 /**
8142- * @member {string} SuperMap.Format.JSON.prototype.newline
8151+ * @member {string} [ SuperMap.Format.JSON.prototype.newline="\n"]
81438152 * @description 用于格式化输出, newline 字符串会用在每一个名值对或数组项末尾。
81448153 */
81458154 this . newline = "\n" ;
81468155
81478156 /**
8148- * @member {integer} SuperMap.Format.JSON.prototype.level
8157+ * @member {integer} [ SuperMap.Format.JSON.prototype.level=0]
81498158 * @description 用于格式化输出, 表示的是缩进级别。
81508159 */
81518160 this . level = 0 ;
@@ -8372,6 +8381,7 @@ class JSON_JSONFormat extends Format_Format {
83728381 /**
83738382 * @function SuperMap.Format.JSON.prototype.writeIndent
83748383 * @description 根据缩进级别输出一个缩进字符串。
8384+ * @private
83758385 * @returns {string } 一个适当的缩进字符串。
83768386 */
83778387 writeIndent ( ) {
@@ -8387,6 +8397,7 @@ class JSON_JSONFormat extends Format_Format {
83878397 /**
83888398 * @function SuperMap.Format.JSON.prototype.writeNewline
83898399 * @description 在格式化输出模式情况下输出代表新一行的字符串。
8400+ * @private
83908401 * @returns {string } 代表新的一行的字符串。
83918402 */
83928403 writeNewline ( ) {
@@ -8395,6 +8406,7 @@ class JSON_JSONFormat extends Format_Format {
83958406
83968407 /**
83978408 * @function SuperMap.Format.JSON.prototype.writeSpace
8409+ * @private
83988410 * @description 在格式化输出模式情况下输出一个代表空格的字符串。
83998411 * @returns {string } 一个空格。
84008412 */
@@ -8538,7 +8550,7 @@ class CommonServiceBase_CommonServiceBase {
85388550 * @param {string } [options.method='GET'] - 请求方式,包括 "GET","POST","PUT","DELETE"。
85398551 * @param {string } [options.url] - 发送请求的地址。
85408552 * @param {Object } [options.params] - 作为查询字符串添加到 URL 中的一组键值对,此参数只适用于 GET 方式发送的请求。
8541- * @param {String } [options.data] - 发送到服务器的数据。
8553+ * @param {string } [options.data] - 发送到服务器的数据。
85428554 * @param {function } options.success - 请求成功后的回调函数。
85438555 * @param {function } options.failure - 请求失败后的回调函数。
85448556 * @param {Object } [options.scope] - 如果回调函数是对象的一个公共方法,设定该对象的范围。
0 commit comments