@@ -3747,16 +3747,16 @@ var fetch_jsonp_default = /*#__PURE__*/__webpack_require__.n(fetch_jsonp);
3747
3747
const FetchRequest_fetch = window . fetch ;
3748
3748
/**
3749
3749
* @function SuperMap.setCORS
3750
- * @description 设置是否支持跨域 。
3751
- * @param {boolean } cors - 是否支持跨域 。
3750
+ * @description 设置是否允许跨域请求,全局配置,优先级低于 service 下的 crossOring 参数 。
3751
+ * @param {boolean } cors - 是否允许跨域请求 。
3752
3752
*/
3753
3753
var FetchRequest_setCORS = SuperMap . setCORS = function ( cors ) {
3754
3754
SuperMap . CORS = cors ;
3755
3755
}
3756
3756
/**
3757
3757
* @function SuperMap.isCORS
3758
- * @description 是否支持跨域 。
3759
- * @returns {boolean } 是否支持跨域 。
3758
+ * @description 是是否允许跨域请求 。
3759
+ * @returns {boolean } 是否允许跨域请求 。
3760
3760
*/
3761
3761
var FetchRequest_isCORS = SuperMap . isCORS = function ( ) {
3762
3762
if ( SuperMap . CORS != undefined ) {
@@ -3798,7 +3798,7 @@ var FetchRequest_FetchRequest = SuperMap.FetchRequest = {
3798
3798
} ,
3799
3799
supportDirectRequest : function ( url , options ) {
3800
3800
if ( Util_Util . isInTheSameDomain ( url ) ) {
3801
- return Util_Util . isInTheSameDomain ( url )
3801
+ return true ;
3802
3802
} if ( options . crossOrigin != undefined ) {
3803
3803
return options . crossOrigin ;
3804
3804
} else {
@@ -8450,7 +8450,7 @@ SuperMap.Format.JSON = JSON_JSONFormat;
8450
8450
* @param {string } [options.proxy] - 服务代理地址。
8451
8451
* @param {SuperMap.ServerType } [options.serverType=SuperMap.ServerType.ISERVER] - 服务器类型,iServer|iPortal|Online。
8452
8452
* @param {boolean } [options.withCredentials=false] - 请求是否携带 cookie。
8453
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
8453
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
8454
8454
*/
8455
8455
class CommonServiceBase_CommonServiceBase {
8456
8456
@@ -8568,7 +8568,7 @@ class CommonServiceBase_CommonServiceBase {
8568
8568
* @param {Object } [options.scope] - 如果回调函数是对象的一个公共方法,设定该对象的范围。
8569
8569
* @param {boolean } [options.isInTheSameDomain] - 请求是否在当前域中。
8570
8570
* @param {boolean } [options.withCredentials=false] - 请求是否携带 cookie。
8571
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
8571
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
8572
8572
*
8573
8573
*/
8574
8574
request ( options ) {
@@ -8829,7 +8829,7 @@ SuperMap.CommonServiceBase = CommonServiceBase_CommonServiceBase;
8829
8829
* @classdesc 地址匹配服务,包括正向匹配和反向匹配。
8830
8830
* @param {string } url - 地址匹配服务地址。
8831
8831
* @param {Object } options - 参数。
8832
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
8832
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
8833
8833
*/
8834
8834
class AddressMatchService_AddressMatchService extends CommonServiceBase_CommonServiceBase {
8835
8835
@@ -8928,7 +8928,7 @@ SuperMap.AddressMatchService = AddressMatchService_AddressMatchService;
8928
8928
* @extends {SuperMap.CommonServiceBase }
8929
8929
* @param {string } url - 服务地址。
8930
8930
* @param {Object } options - 参数。
8931
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
8931
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
8932
8932
*/
8933
8933
class services_AddressMatchService_AddressMatchService extends CommonServiceBase_CommonServiceBase {
8934
8934
@@ -9005,7 +9005,7 @@ SuperMap_SuperMap.REST.AddressMatchService = services_AddressMatchService_Addres
9005
9005
* @param {number } options.length - 服务访问地址数组长度。
9006
9006
* @param {SuperMap.ServerType } [options.serverType=SuperMap.ServerType.ISERVER] - 服务器类型,iServer|iPortal|Online。
9007
9007
* @param {Object } [options.eventListeners] - 事件监听器对象。有 processCompleted 属性可传入处理完成后的回调函数。processFailed 属性传入处理失败后的回调函数。
9008
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9008
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9009
9009
*/
9010
9010
class ProcessingServiceBase_ProcessingServiceBase extends CommonServiceBase_CommonServiceBase {
9011
9011
@@ -9166,7 +9166,7 @@ SuperMap.ProcessingServiceBase = ProcessingServiceBase_ProcessingServiceBase;
9166
9166
* @extends {SuperMap.ProcessingServiceBase }
9167
9167
* @param {string } url -核密度分析服务地址。
9168
9168
* @param {Object } options - 交互服务时所需可选参数。
9169
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9169
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9170
9170
*/
9171
9171
class KernelDensityJobsService_KernelDensityJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9172
9172
@@ -9229,7 +9229,7 @@ SuperMap.KernelDensityJobsService = KernelDensityJobsService_KernelDensityJobsSe
9229
9229
* @extends {SuperMap.ProcessingServiceBase }
9230
9230
* @param {string } url - 单对象空间查询分析服务地址。
9231
9231
* @param {Object } options - 参数。
9232
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9232
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9233
9233
*/
9234
9234
class SingleObjectQueryJobsService_SingleObjectQueryJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9235
9235
@@ -9295,7 +9295,7 @@ SuperMap.SingleObjectQueryJobsService = SingleObjectQueryJobsService_SingleObjec
9295
9295
* @param {Object } [options.eventListeners] - 事件监听器对象。有 processCompleted 属性可传入处理完成后的回调函数。processFailed 属性传入处理失败后的回调函数。
9296
9296
* @param {number } options.index - 服务访问地址在数组中的位置。<br>
9297
9297
* @param {number } options.length - 服务访问地址数组长度。
9298
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9298
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9299
9299
*/
9300
9300
class SummaryMeshJobsService_SummaryMeshJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9301
9301
@@ -9357,7 +9357,7 @@ SuperMap.SummaryMeshJobsService = SummaryMeshJobsService_SummaryMeshJobsService;
9357
9357
* @extends {SuperMap.ProcessingServiceBase }
9358
9358
* @param {string } url - 区域汇总分析服务地址。
9359
9359
* @param {Object } options - 参数。
9360
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9360
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9361
9361
*/
9362
9362
class SummaryRegionJobsService_SummaryRegionJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9363
9363
@@ -9536,7 +9536,7 @@ SuperMap.VectorClipJobsParameter = VectorClipJobsParameter_VectorClipJobsParamet
9536
9536
* @extends {SuperMap.ProcessingServiceBase }
9537
9537
* @param {string } url -矢量裁剪分析服务地址。
9538
9538
* @param {Object } options - 交互服务时所需可选参数。
9539
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9539
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9540
9540
*/
9541
9541
class VectorClipJobsService_VectorClipJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9542
9542
@@ -9602,7 +9602,7 @@ SuperMap.VectorClipJobsService = VectorClipJobsService_VectorClipJobsService;
9602
9602
* @param {Object } [options.eventListeners] - 事件监听器对象。有 processCompleted 属性可传入处理完成后的回调函数。processFailed 属性传入处理失败后的回调函数。
9603
9603
* @param {number } options.index - 服务访问地址在数组中的位置。
9604
9604
* @param {number } options.length - 服务访问地址数组长度。
9605
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9605
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9606
9606
*/
9607
9607
class OverlayGeoJobsService_OverlayGeoJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9608
9608
@@ -9663,7 +9663,7 @@ SuperMap.OverlayGeoJobsService = OverlayGeoJobsService_OverlayGeoJobsService;
9663
9663
* @extends {SuperMap.ProcessingServiceBase }
9664
9664
* @param {string } url - 服务地址。
9665
9665
* @param {Object } options - 参数。
9666
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9666
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9667
9667
*/
9668
9668
class BuffersAnalystJobsService_BuffersAnalystJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9669
9669
constructor ( url , options ) {
@@ -9723,7 +9723,7 @@ SuperMap.BuffersAnalystJobsService = BuffersAnalystJobsService_BuffersAnalystJob
9723
9723
* @extends {SuperMap.ProcessingServiceBase }
9724
9724
* @param {string } url - 拓扑检查分析服务地址。
9725
9725
* @param {Object } options - 参数。
9726
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9726
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9727
9727
*/
9728
9728
class TopologyValidatorJobsService_TopologyValidatorJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9729
9729
@@ -9785,7 +9785,7 @@ SuperMap.TopologyValidatorJobsService = TopologyValidatorJobsService_TopologyVal
9785
9785
* @extends {SuperMap.ProcessingServiceBase }
9786
9786
* @param {string } url - 汇总统计分析服务地址。
9787
9787
* @param {Object } options - 参数。
9788
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9788
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9789
9789
*/
9790
9790
class SummaryAttributesJobsService_SummaryAttributesJobsService extends ProcessingServiceBase_ProcessingServiceBase {
9791
9791
@@ -9862,7 +9862,7 @@ SuperMap.SummaryAttributesJobsService = SummaryAttributesJobsService_SummaryAttr
9862
9862
* })
9863
9863
* @param {string } url - 分布式分析服务地址。
9864
9864
* @param {Object } options - 可选参数。
9865
- * @param {boolean } [options.crossOrigin] - 请求是否跨域 。
9865
+ * @param {boolean } [options.crossOrigin] - 是否允许跨域请求 。
9866
9866
*/
9867
9867
class ProcessingService_ProcessingService extends CommonServiceBase_CommonServiceBase {
9868
9868
0 commit comments