@@ -1162,7 +1162,7 @@ _SuperMap.SuperMap.Util.getTextBounds = function (style, text, element) {
1162
1162
Object . defineProperty ( exports , "__esModule" , {
1163
1163
value : true
1164
1164
} ) ;
1165
- exports . TopologyValidatorRule = exports . SummaryType = exports . StatisticAnalystMode = exports . AnalystSizeUnit = exports . AnalystAreaUnit = exports . ClipAnalystMode = exports . ChartType = exports . ClientType = exports . Exponent = exports . VariogramMode = exports . InterpolationAlgorithmType = exports . SearchMode = exports . PixelFormat = exports . StatisticMode = exports . UGCLayerType = exports . LayerType = exports . ColorSpaceType = exports . GridType = exports . TransferPreference = exports . TransferTactic = exports . EditType = exports . DataReturnMode = exports . SurfaceAnalystMethod = exports . SmoothMethod = exports . OutputType = exports . OverlayOperationType = exports . BufferEndType = exports . TurnType = exports . SupplyCenterType = exports . SideType = exports . DirectionType = exports . LabelOverLengthMode = exports . LabelBackShape = exports . AlongLineDirection = exports . FillGradientMode = exports . TextAlignment = exports . ColorGradientType = exports . ThemeType = exports . RangeMode = exports . GraduatedMode = exports . GraphAxesTextDisplayMode = exports . ThemeGraphType = exports . ThemeGraphTextFormat = exports . EngineType = exports . BufferRadiusUnit = exports . Unit = exports . MeasureMode = exports . SpatialRelationType = exports . SpatialQueryMode = exports . JoinType = exports . QueryOption = exports . GeometryType = exports . ServerType = exports . DataFormat = undefined ;
1165
+ exports . AggregationQueryBuilderType = exports . AggregationType = exports . TopologyValidatorRule = exports . SummaryType = exports . StatisticAnalystMode = exports . AnalystSizeUnit = exports . AnalystAreaUnit = exports . ClipAnalystMode = exports . ChartType = exports . ClientType = exports . Exponent = exports . VariogramMode = exports . InterpolationAlgorithmType = exports . SearchMode = exports . PixelFormat = exports . StatisticMode = exports . UGCLayerType = exports . LayerType = exports . ColorSpaceType = exports . GridType = exports . TransferPreference = exports . TransferTactic = exports . EditType = exports . DataReturnMode = exports . SurfaceAnalystMethod = exports . SmoothMethod = exports . OutputType = exports . OverlayOperationType = exports . BufferEndType = exports . TurnType = exports . SupplyCenterType = exports . SideType = exports . DirectionType = exports . LabelOverLengthMode = exports . LabelBackShape = exports . AlongLineDirection = exports . FillGradientMode = exports . TextAlignment = exports . ColorGradientType = exports . ThemeType = exports . RangeMode = exports . GraduatedMode = exports . GraphAxesTextDisplayMode = exports . ThemeGraphType = exports . ThemeGraphTextFormat = exports . EngineType = exports . BufferRadiusUnit = exports . Unit = exports . MeasureMode = exports . SpatialRelationType = exports . SpatialQueryMode = exports . JoinType = exports . QueryOption = exports . GeometryType = exports . ServerType = exports . DataFormat = undefined ;
1166
1166
1167
1167
var _SuperMap = __webpack_require__ ( 0 ) ;
1168
1168
@@ -2246,6 +2246,30 @@ var TopologyValidatorRule = exports.TopologyValidatorRule = _SuperMap.SuperMap.T
2246
2246
POINTNOIDENTICAL : "POINTNOIDENTICAL"
2247
2247
} ;
2248
2248
2249
+ /**
2250
+ * @name AggregationType
2251
+ * @memberOf SuperMap
2252
+ * @description 聚合查询枚举类,该类定义了Es数据服务中聚合查询模式常量
2253
+ *
2254
+ * @property {string } GEOHASH_GRID geohash_grid
2255
+ * @property {string } FILTER filter
2256
+ */
2257
+ var AggregationType = exports . AggregationType = _SuperMap . SuperMap . AggregationType = {
2258
+ GEOHASH_GRID : "geohash_grid" ,
2259
+ FILTER : "filter"
2260
+ } ;
2261
+
2262
+ /**
2263
+ * @name AggregationType
2264
+ * @memberOf SuperMap
2265
+ * @description 聚合查询中filter查询枚举类
2266
+ *
2267
+ * @property {string } GEO_BOUNDING_BOX geo_bounding_box
2268
+ */
2269
+ var AggregationQueryBuilderType = exports . AggregationQueryBuilderType = _SuperMap . SuperMap . AggregationQueryBuilderType = {
2270
+ GEO_BOUNDING_BOX : "geo_bounding_box"
2271
+ } ;
2272
+
2249
2273
/***/ } ) ,
2250
2274
/* 3 */
2251
2275
/***/ ( function ( module , exports , __webpack_require__ ) {
@@ -2573,13 +2597,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
2573
2597
2574
2598
/**
2575
2599
* @class SuperMap.CommonServiceBase
2576
- * @category iServer
2600
+ * @category iServer
2577
2601
* @classdesc 对接iServer各种服务的Service的基类。
2578
2602
* @param url - {string} 服务地址。
2579
2603
* @param options - {Object} 可选参数。如:<br>
2580
2604
* eventListeners - {Object} 事件监听器对象。有processCompleted属性可传入处理完成后的回调函数。processFailed属性传入处理失败后的回调函数。<br>
2581
2605
* proxy - {string} 服务代理地址<br>
2582
2606
* serverType - {SuperMap.ServerType} 服务器类型,iServer|iPortal|Online。<br>
2607
+ * withCredentials - {boolean} 请求是否携带cookie,默认为true。<br>
2583
2608
* format -{SuperMap.DataFormat} 查询结果返回格式,目前支持iServerJSON 和GeoJSON两种格式。参数格式为"ISERVER","GEOJSON"。
2584
2609
*/
2585
2610
var CommonServiceBase = exports . CommonServiceBase = function ( ) {
@@ -2618,6 +2643,8 @@ var CommonServiceBase = exports.CommonServiceBase = function () {
2618
2643
2619
2644
this . isInTheSameDomain = null ;
2620
2645
2646
+ this . withCredentials = true ;
2647
+
2621
2648
if ( _Util . Util . isArray ( url ) ) {
2622
2649
me . urls = url ;
2623
2650
me . length = url . length ;
@@ -2700,6 +2727,7 @@ var CommonServiceBase = exports.CommonServiceBase = function () {
2700
2727
* failure - {function} 请求失败后的回调函数。<br>
2701
2728
* scope - {Object} 如果回调函数是对象的一个公共方法,设定该对象的范围。<br>
2702
2729
* isInTheSameDomain - {boolean} 请求是否在当前域中。<br>
2730
+ * withCredentials - {boolean} 请求是否携带cookie。<br>
2703
2731
*/
2704
2732
2705
2733
} , {
@@ -2708,6 +2736,7 @@ var CommonServiceBase = exports.CommonServiceBase = function () {
2708
2736
var me = this ;
2709
2737
options . url = options . url || me . url ;
2710
2738
options . proxy = options . proxy || me . proxy ;
2739
+ options . withCredentials = options . withCredentials != undefined ? options . withCredentials : me . withCredentials ;
2711
2740
options . isInTheSameDomain = me . isInTheSameDomain ;
2712
2741
//为url添加安全认证信息片段
2713
2742
var credential = this . getCredential ( options . url ) ;
0 commit comments