@mapgis/webclient-common 17.2.0 → 17.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/dist/es5/webclient-common.min.js +5 -5
- package/dist/webclient-common-es6.min.js +6 -6
- package/documention/AddressServer.html +12 -12
- package/documention/ArcGISFeatureServer.html +10 -10
- package/documention/ArcGISGeometryServer.html +10 -10
- package/documention/ArcGISMapImageLayer.html +10 -10
- package/documention/ArcGISMapServer.html +10 -10
- package/documention/ArcGISTileLayer.html +5 -5
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseScene.html +7577 -0
- package/documention/BaseServer.html +10 -10
- package/documention/BaseView.html +1 -1
- package/documention/Basemap.html +3 -3
- package/documention/Cesium3DTilesCacheLayer.html +38 -112
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +7 -7
- package/documention/ClassBreakRenderer.html +18 -18
- package/documention/ClusterRenderer.html +2 -2
- package/documention/Collection.html +198 -4
- package/documention/Config.html +4 -4
- package/documention/Extent.html +15 -15
- package/documention/ExtrudeSymbol3DLayer.html +2 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol3DLayer.html +2 -2
- package/documention/Font.html +1 -1
- package/documention/GeoJSONLayer.html +26 -26
- package/documention/Geometry.html +7 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +31 -31
- package/documention/GroupLayer.html +2 -2
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +47 -49
- package/documention/IGSMapImageSubLayer.html +3 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSTileLayer.html +10 -11
- package/documention/IGSVectorTileLayer.html +33 -63
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/ISScene.html +1336 -0
- package/documention/ISSceneLayer.html +2028 -0
- package/documention/ISSceneServer.html +2234 -0
- package/documention/ISSceneSubLayer.html +3356 -0
- package/documention/IconSymbol3DLayer.html +4 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +3 -3
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/LineString.html +10 -10
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +2 -2
- package/documention/M3DModelCacheLayer.html +12 -12
- package/documention/M3DServer.html +11 -11
- package/documention/Map.html +4 -4
- package/documention/MapGISTextSymbol.html +3 -3
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +1 -1
- package/documention/MultiLineString.html +13 -13
- package/documention/MultiPoint.html +10 -10
- package/documention/MultiPolygon.html +9 -9
- package/documention/ObjectSymbol3DLayer.html +4 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/PathSymbol3DLayer.html +2 -2
- package/documention/PictureFillSymbol.html +1 -1
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +11 -11
- package/documention/Point.html +12 -12
- package/documention/PointSymbol3D.html +3 -3
- package/documention/Polygon.html +14 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +8 -8
- package/documention/RandomRenderer.html +1 -1
- package/documention/RankRenderer.html +2 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +11 -11
- package/documention/S3MTilesCacheLayer.html +7726 -0
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +1 -1
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +3 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +9 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchEditor.html +1 -1
- package/documention/SpatialReference.html +1 -1
- package/documention/Symbol.html +1 -1
- package/documention/TerrainCacheLayer.html +1 -1
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +4 -4
- package/documention/TextSymbol3DLayer.html +2 -2
- package/documention/ThemeServer.html +12 -12
- package/documention/TileServer.html +11 -11
- package/documention/UniqueValueRenderer.html +18 -18
- package/documention/VectorTileLayer.html +1 -1
- package/documention/VectorTileServer.html +11 -11
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +24 -24
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +15 -15
- package/documention/WMSServer.html +11 -11
- package/documention/WMTSLayer.html +10 -10
- package/documention/WMTSServer.html +11 -11
- package/documention/WPSServer.html +10 -10
- package/documention/WebTileLayer.html +5 -5
- package/documention/WorkFlowServer.html +12 -12
- package/documention/WorkFlowServer600227.html +12 -12
- package/documention/WorkFlowServer600228.html +13 -13
- package/documention/WorkFlowServer600229.html +12 -12
- package/documention/WorkFlowServer600230.html +12 -12
- package/documention/WorkFlowServer600231.html +12 -12
- package/documention/WorkFlowServer600232.html +13 -13
- package/documention/WorkFlowServer600233.html +14 -14
- package/documention/WorkFlowServer600235.html +12 -12
- package/documention/WorkFlowServer600237.html +13 -13
- package/documention/WorkFlowServer600238.html +15 -15
- package/documention/WorkFlowServer600239.html +16 -16
- package/documention/WorkFlowServer600307.html +14 -14
- package/documention/WorkFlowServer600308.html +2 -2
- package/documention/WorkFlowServer600309.html +12 -12
- package/documention/WorkFlowServer600314.html +12 -12
- package/documention/WorkFlowServer600334.html +12 -12
- package/documention/WorkFlowServer600336.html +12 -12
- package/documention/WorkFlowServer600340.html +12 -12
- package/documention/WorkFlowServer600354.html +12 -12
- package/documention/WorkFlowServer600368.html +12 -12
- package/documention/WorkFlowServer600369.html +12 -12
- package/documention/WorkFlowServer600370.html +12 -12
- package/documention/global.html +344 -1644
- package/documention/index.html +40 -37
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAllOtherDataItemInfoSource.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAnnInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartLabelFormat.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeRepresentInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartType.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CDotDensityTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CFourColorTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CGraduatedSymbolTheme.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CLinInfo.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CMultiClassTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CPntInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRandomTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRegInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CSimpleTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CThemeInfo.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ExpInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfoAttribute.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ItemValue.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ThemesInfo.html +2 -2
- package/package.json +2 -1
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
|
|
209
209
|
<pre class="prettyprint"><code>//初始化AddressServer服务对象
|
|
210
210
|
// ES5引入方式
|
|
211
|
-
const { AddressServer } =
|
|
211
|
+
const { AddressServer } = zondy.service
|
|
212
212
|
// ES6引入方式
|
|
213
213
|
import { AddressServer } from "@mapgis/webclient-common"
|
|
214
214
|
const addressServer= new AddressServer({
|
|
@@ -613,7 +613,7 @@ const addressServer= new AddressServer({
|
|
|
613
613
|
|
|
614
614
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
615
615
|
// ES5引入方式
|
|
616
|
-
const { BaseServer } =
|
|
616
|
+
const { BaseServer } = zondy.service
|
|
617
617
|
// ES6引入方式
|
|
618
618
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
619
619
|
let BaseServer = new BaseServer({
|
|
@@ -714,7 +714,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
714
714
|
|
|
715
715
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
716
716
|
// ES5引入方式
|
|
717
|
-
const { BaseServer } =
|
|
717
|
+
const { BaseServer } = zondy.service
|
|
718
718
|
// ES6引入方式
|
|
719
719
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
720
720
|
let BaseServer = new BaseServer({
|
|
@@ -816,7 +816,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
816
816
|
|
|
817
817
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
818
818
|
// ES5引入方式
|
|
819
|
-
const { BaseServer,RequestInterceptor } =
|
|
819
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
820
820
|
// ES6引入方式
|
|
821
821
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
822
822
|
let BaseServer = new BaseServer({
|
|
@@ -925,7 +925,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
925
925
|
<pre class="prettyprint"><code>//设置超时时间
|
|
926
926
|
//初始化AddressServer服务对象
|
|
927
927
|
// ES5引入方式
|
|
928
|
-
const { BaseServer } =
|
|
928
|
+
const { BaseServer } = zondy.service
|
|
929
929
|
// ES6引入方式
|
|
930
930
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
931
931
|
let BaseServer = new BaseServer({
|
|
@@ -1022,7 +1022,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1022
1022
|
|
|
1023
1023
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1024
1024
|
// ES5引入方式
|
|
1025
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1025
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1026
1026
|
// ES6引入方式
|
|
1027
1027
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1028
1028
|
let BaseServer = new BaseServer({
|
|
@@ -1132,8 +1132,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1132
1132
|
|
|
1133
1133
|
<pre class="prettyprint"><code>//设置token值
|
|
1134
1134
|
// ES5引入方式
|
|
1135
|
-
const { BaseServer } =
|
|
1136
|
-
const { TokenAttachType } =
|
|
1135
|
+
const { BaseServer } = zondy.service
|
|
1136
|
+
const { TokenAttachType } = zondy.enum
|
|
1137
1137
|
// ES6引入方式
|
|
1138
1138
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1139
1139
|
let BaseServer = new BaseServer({
|
|
@@ -1234,7 +1234,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1234
1234
|
|
|
1235
1235
|
<pre class="prettyprint"><code>//设置token名
|
|
1236
1236
|
// ES5引入方式
|
|
1237
|
-
const { BaseServer } =
|
|
1237
|
+
const { BaseServer } = zondy.service
|
|
1238
1238
|
// ES6引入方式
|
|
1239
1239
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1240
1240
|
let BaseServer = new BaseServer({
|
|
@@ -1331,7 +1331,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1331
1331
|
|
|
1332
1332
|
<pre class="prettyprint"><code>//设置token值
|
|
1333
1333
|
// ES5引入方式
|
|
1334
|
-
const { BaseServer } =
|
|
1334
|
+
const { BaseServer } = zondy.service
|
|
1335
1335
|
// ES6引入方式
|
|
1336
1336
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1337
1337
|
let BaseServer = new BaseServer({
|
|
@@ -1428,7 +1428,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1428
1428
|
|
|
1429
1429
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1430
1430
|
// ES5引入方式
|
|
1431
|
-
const { BaseServer } =
|
|
1431
|
+
const { BaseServer } = zondy.service
|
|
1432
1432
|
// ES6引入方式
|
|
1433
1433
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1434
1434
|
let BaseServer = new BaseServer({
|
|
@@ -2161,7 +2161,7 @@ BaseServer.url = '新URL';</code></pre>
|
|
|
2161
2161
|
|
|
2162
2162
|
<pre class="prettyprint"><code>//回调方式
|
|
2163
2163
|
// ES5引入方式
|
|
2164
|
-
const { Extent } =
|
|
2164
|
+
const { Extent } = zondy.geometry
|
|
2165
2165
|
// ES6引入方式
|
|
2166
2166
|
import { Extent } from "@mapgis/webclient-common"
|
|
2167
2167
|
addressServer.getGeoCode({
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
|
|
599
599
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
600
600
|
// ES5引入方式
|
|
601
|
-
const { BaseServer } =
|
|
601
|
+
const { BaseServer } = zondy.service
|
|
602
602
|
// ES6引入方式
|
|
603
603
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
604
604
|
let BaseServer = new BaseServer({
|
|
@@ -699,7 +699,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
699
699
|
|
|
700
700
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
701
701
|
// ES5引入方式
|
|
702
|
-
const { BaseServer } =
|
|
702
|
+
const { BaseServer } = zondy.service
|
|
703
703
|
// ES6引入方式
|
|
704
704
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
705
705
|
let BaseServer = new BaseServer({
|
|
@@ -801,7 +801,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
801
801
|
|
|
802
802
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
803
803
|
// ES5引入方式
|
|
804
|
-
const { BaseServer,RequestInterceptor } =
|
|
804
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
805
805
|
// ES6引入方式
|
|
806
806
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
807
807
|
let BaseServer = new BaseServer({
|
|
@@ -910,7 +910,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
910
910
|
<pre class="prettyprint"><code>//设置超时时间
|
|
911
911
|
//初始化AddressServer服务对象
|
|
912
912
|
// ES5引入方式
|
|
913
|
-
const { BaseServer } =
|
|
913
|
+
const { BaseServer } = zondy.service
|
|
914
914
|
// ES6引入方式
|
|
915
915
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
916
916
|
let BaseServer = new BaseServer({
|
|
@@ -1007,7 +1007,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1007
1007
|
|
|
1008
1008
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1009
1009
|
// ES5引入方式
|
|
1010
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1010
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1011
1011
|
// ES6引入方式
|
|
1012
1012
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1013
1013
|
let BaseServer = new BaseServer({
|
|
@@ -1117,8 +1117,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1117
1117
|
|
|
1118
1118
|
<pre class="prettyprint"><code>//设置token值
|
|
1119
1119
|
// ES5引入方式
|
|
1120
|
-
const { BaseServer } =
|
|
1121
|
-
const { TokenAttachType } =
|
|
1120
|
+
const { BaseServer } = zondy.service
|
|
1121
|
+
const { TokenAttachType } = zondy.enum
|
|
1122
1122
|
// ES6引入方式
|
|
1123
1123
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1124
1124
|
let BaseServer = new BaseServer({
|
|
@@ -1219,7 +1219,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1219
1219
|
|
|
1220
1220
|
<pre class="prettyprint"><code>//设置token名
|
|
1221
1221
|
// ES5引入方式
|
|
1222
|
-
const { BaseServer } =
|
|
1222
|
+
const { BaseServer } = zondy.service
|
|
1223
1223
|
// ES6引入方式
|
|
1224
1224
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1225
1225
|
let BaseServer = new BaseServer({
|
|
@@ -1316,7 +1316,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1316
1316
|
|
|
1317
1317
|
<pre class="prettyprint"><code>//设置token值
|
|
1318
1318
|
// ES5引入方式
|
|
1319
|
-
const { BaseServer } =
|
|
1319
|
+
const { BaseServer } = zondy.service
|
|
1320
1320
|
// ES6引入方式
|
|
1321
1321
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1322
1322
|
let BaseServer = new BaseServer({
|
|
@@ -1413,7 +1413,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1413
1413
|
|
|
1414
1414
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1415
1415
|
// ES5引入方式
|
|
1416
|
-
const { BaseServer } =
|
|
1416
|
+
const { BaseServer } = zondy.service
|
|
1417
1417
|
// ES6引入方式
|
|
1418
1418
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1419
1419
|
let BaseServer = new BaseServer({
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
|
|
599
599
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
600
600
|
// ES5引入方式
|
|
601
|
-
const { BaseServer } =
|
|
601
|
+
const { BaseServer } = zondy.service
|
|
602
602
|
// ES6引入方式
|
|
603
603
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
604
604
|
let BaseServer = new BaseServer({
|
|
@@ -699,7 +699,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
699
699
|
|
|
700
700
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
701
701
|
// ES5引入方式
|
|
702
|
-
const { BaseServer } =
|
|
702
|
+
const { BaseServer } = zondy.service
|
|
703
703
|
// ES6引入方式
|
|
704
704
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
705
705
|
let BaseServer = new BaseServer({
|
|
@@ -801,7 +801,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
801
801
|
|
|
802
802
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
803
803
|
// ES5引入方式
|
|
804
|
-
const { BaseServer,RequestInterceptor } =
|
|
804
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
805
805
|
// ES6引入方式
|
|
806
806
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
807
807
|
let BaseServer = new BaseServer({
|
|
@@ -910,7 +910,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
910
910
|
<pre class="prettyprint"><code>//设置超时时间
|
|
911
911
|
//初始化AddressServer服务对象
|
|
912
912
|
// ES5引入方式
|
|
913
|
-
const { BaseServer } =
|
|
913
|
+
const { BaseServer } = zondy.service
|
|
914
914
|
// ES6引入方式
|
|
915
915
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
916
916
|
let BaseServer = new BaseServer({
|
|
@@ -1007,7 +1007,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1007
1007
|
|
|
1008
1008
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1009
1009
|
// ES5引入方式
|
|
1010
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1010
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1011
1011
|
// ES6引入方式
|
|
1012
1012
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1013
1013
|
let BaseServer = new BaseServer({
|
|
@@ -1117,8 +1117,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1117
1117
|
|
|
1118
1118
|
<pre class="prettyprint"><code>//设置token值
|
|
1119
1119
|
// ES5引入方式
|
|
1120
|
-
const { BaseServer } =
|
|
1121
|
-
const { TokenAttachType } =
|
|
1120
|
+
const { BaseServer } = zondy.service
|
|
1121
|
+
const { TokenAttachType } = zondy.enum
|
|
1122
1122
|
// ES6引入方式
|
|
1123
1123
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1124
1124
|
let BaseServer = new BaseServer({
|
|
@@ -1219,7 +1219,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1219
1219
|
|
|
1220
1220
|
<pre class="prettyprint"><code>//设置token名
|
|
1221
1221
|
// ES5引入方式
|
|
1222
|
-
const { BaseServer } =
|
|
1222
|
+
const { BaseServer } = zondy.service
|
|
1223
1223
|
// ES6引入方式
|
|
1224
1224
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1225
1225
|
let BaseServer = new BaseServer({
|
|
@@ -1316,7 +1316,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1316
1316
|
|
|
1317
1317
|
<pre class="prettyprint"><code>//设置token值
|
|
1318
1318
|
// ES5引入方式
|
|
1319
|
-
const { BaseServer } =
|
|
1319
|
+
const { BaseServer } = zondy.service
|
|
1320
1320
|
// ES6引入方式
|
|
1321
1321
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1322
1322
|
let BaseServer = new BaseServer({
|
|
@@ -1413,7 +1413,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1413
1413
|
|
|
1414
1414
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1415
1415
|
// ES5引入方式
|
|
1416
|
-
const { BaseServer } =
|
|
1416
|
+
const { BaseServer } = zondy.service
|
|
1417
1417
|
// ES6引入方式
|
|
1418
1418
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1419
1419
|
let BaseServer = new BaseServer({
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<p>ArcGIS地图图片图层,<br/>
|
|
39
39
|
目前二维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,三维上仅支持4326(包括4490,4214以及4610)以及3857坐标系,会自动读取元信息上的坐标系,不需要用户指定
|
|
40
40
|
<br><br>[ES5引入方式]:<br/>
|
|
41
|
-
|
|
41
|
+
zondy.layer.ArcGISMapImageLayer() <br/>
|
|
42
42
|
[ES6引入方式]:<br/>
|
|
43
43
|
import { ArcGISMapImageLayer } from "@mapgis/webclient-common" <br/>
|
|
44
44
|
<br/>
|
|
@@ -607,7 +607,7 @@ https://{ip}:{port}/arcgis/rest/services/{serviceName}/MapServer,参考示例
|
|
|
607
607
|
|
|
608
608
|
<pre class="prettyprint"><code>// 初始化图层管理容器
|
|
609
609
|
// ES5引入方式
|
|
610
|
-
const { ArcGISMapImageLayer } =
|
|
610
|
+
const { ArcGISMapImageLayer } = zondy.layer
|
|
611
611
|
// ES6引入方式
|
|
612
612
|
import { ArcGISMapImageLayer } from "@mapgis/webclient-common"
|
|
613
613
|
// 添加图层
|
|
@@ -621,8 +621,8 @@ const arcGISMapImageLayer = new ArcGISMapImageLayer({
|
|
|
621
621
|
|
|
622
622
|
|
|
623
623
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
624
|
-
const { ArcGISMapImageLayer } =
|
|
625
|
-
const { SpatialReference } =
|
|
624
|
+
const { ArcGISMapImageLayer } = zondy.layer
|
|
625
|
+
const { SpatialReference } = zondy
|
|
626
626
|
// ES6引入方式
|
|
627
627
|
import { ArcGISMapImageLayer,SpatialReference } from "@mapgis/webclient-common"
|
|
628
628
|
// 添加图层
|
|
@@ -641,7 +641,7 @@ const arcGISMapImageLayer = new ArcGISMapImageLayer({
|
|
|
641
641
|
|
|
642
642
|
|
|
643
643
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
644
|
-
const { ArcGISMapImageLayer } =
|
|
644
|
+
const { ArcGISMapImageLayer } = zondy.layer
|
|
645
645
|
// ES6引入方式
|
|
646
646
|
import { ArcGISMapImageLayer } from "@mapgis/webclient-common"
|
|
647
647
|
// 添加图层
|
|
@@ -659,7 +659,7 @@ const arcGISMapImageLayer = new ArcGISMapImageLayer({
|
|
|
659
659
|
|
|
660
660
|
|
|
661
661
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
662
|
-
const { ArcGISMapImageLayer } =
|
|
662
|
+
const { ArcGISMapImageLayer } = zondy.layer
|
|
663
663
|
// ES6引入方式
|
|
664
664
|
import { ArcGISMapImageLayer } from "@mapgis/webclient-common"
|
|
665
665
|
// 初始化时设置
|
|
@@ -682,7 +682,7 @@ arcGISMapImageLayer.on('layerview-created', function (result) {
|
|
|
682
682
|
|
|
683
683
|
|
|
684
684
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
685
|
-
const { ArcGISMapImageLayer } =
|
|
685
|
+
const { ArcGISMapImageLayer } = zondy.layer
|
|
686
686
|
// ES6引入方式
|
|
687
687
|
import { ArcGISMapImageLayer } from "@mapgis/webclient-common"
|
|
688
688
|
// 初始化时设置
|
|
@@ -2809,7 +2809,7 @@ map.reorder(arcGISMapImageLayer, '要移动到的index');</code></pre>
|
|
|
2809
2809
|
|
|
2810
2810
|
|
|
2811
2811
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
2812
|
-
const { ArcGISMapImageLayer } =
|
|
2812
|
+
const { ArcGISMapImageLayer } = zondy.layer
|
|
2813
2813
|
// ES6引入方式
|
|
2814
2814
|
import { ArcGISMapImageLayer } from "@mapgis/webclient-common"
|
|
2815
2815
|
const json = {
|
|
@@ -3324,7 +3324,7 @@ const arcGISMapImageLayer = new ArcGISMapImageLayer.fromJSON(json)</code></pre>
|
|
|
3324
3324
|
|
|
3325
3325
|
|
|
3326
3326
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
3327
|
-
const { Extent } =
|
|
3327
|
+
const { Extent } = zondy.geometry
|
|
3328
3328
|
// ES6引入方式
|
|
3329
3329
|
import { Extent } from "@mapgis/webclient-common"
|
|
3330
3330
|
arcGISMapImageLayer.fetchImage({
|
|
@@ -3770,7 +3770,7 @@ arcGISMapImageLayer.fetchImage({
|
|
|
3770
3770
|
|
|
3771
3771
|
|
|
3772
3772
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
3773
|
-
const { Extent } =
|
|
3773
|
+
const { Extent } = zondy.geometry
|
|
3774
3774
|
// ES6引入方式
|
|
3775
3775
|
import { Extent } from "@mapgis/webclient-common"
|
|
3776
3776
|
const url = arcGISMapImageLayer.getImageUrl({
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
|
|
599
599
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
600
600
|
// ES5引入方式
|
|
601
|
-
const { BaseServer } =
|
|
601
|
+
const { BaseServer } = zondy.service
|
|
602
602
|
// ES6引入方式
|
|
603
603
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
604
604
|
let BaseServer = new BaseServer({
|
|
@@ -699,7 +699,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
699
699
|
|
|
700
700
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
701
701
|
// ES5引入方式
|
|
702
|
-
const { BaseServer } =
|
|
702
|
+
const { BaseServer } = zondy.service
|
|
703
703
|
// ES6引入方式
|
|
704
704
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
705
705
|
let BaseServer = new BaseServer({
|
|
@@ -801,7 +801,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
801
801
|
|
|
802
802
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
803
803
|
// ES5引入方式
|
|
804
|
-
const { BaseServer,RequestInterceptor } =
|
|
804
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
805
805
|
// ES6引入方式
|
|
806
806
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
807
807
|
let BaseServer = new BaseServer({
|
|
@@ -910,7 +910,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
910
910
|
<pre class="prettyprint"><code>//设置超时时间
|
|
911
911
|
//初始化AddressServer服务对象
|
|
912
912
|
// ES5引入方式
|
|
913
|
-
const { BaseServer } =
|
|
913
|
+
const { BaseServer } = zondy.service
|
|
914
914
|
// ES6引入方式
|
|
915
915
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
916
916
|
let BaseServer = new BaseServer({
|
|
@@ -1007,7 +1007,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1007
1007
|
|
|
1008
1008
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1009
1009
|
// ES5引入方式
|
|
1010
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1010
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1011
1011
|
// ES6引入方式
|
|
1012
1012
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1013
1013
|
let BaseServer = new BaseServer({
|
|
@@ -1117,8 +1117,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1117
1117
|
|
|
1118
1118
|
<pre class="prettyprint"><code>//设置token值
|
|
1119
1119
|
// ES5引入方式
|
|
1120
|
-
const { BaseServer } =
|
|
1121
|
-
const { TokenAttachType } =
|
|
1120
|
+
const { BaseServer } = zondy.service
|
|
1121
|
+
const { TokenAttachType } = zondy.enum
|
|
1122
1122
|
// ES6引入方式
|
|
1123
1123
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1124
1124
|
let BaseServer = new BaseServer({
|
|
@@ -1219,7 +1219,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1219
1219
|
|
|
1220
1220
|
<pre class="prettyprint"><code>//设置token名
|
|
1221
1221
|
// ES5引入方式
|
|
1222
|
-
const { BaseServer } =
|
|
1222
|
+
const { BaseServer } = zondy.service
|
|
1223
1223
|
// ES6引入方式
|
|
1224
1224
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1225
1225
|
let BaseServer = new BaseServer({
|
|
@@ -1316,7 +1316,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1316
1316
|
|
|
1317
1317
|
<pre class="prettyprint"><code>//设置token值
|
|
1318
1318
|
// ES5引入方式
|
|
1319
|
-
const { BaseServer } =
|
|
1319
|
+
const { BaseServer } = zondy.service
|
|
1320
1320
|
// ES6引入方式
|
|
1321
1321
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1322
1322
|
let BaseServer = new BaseServer({
|
|
@@ -1413,7 +1413,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1413
1413
|
|
|
1414
1414
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1415
1415
|
// ES5引入方式
|
|
1416
|
-
const { BaseServer } =
|
|
1416
|
+
const { BaseServer } = zondy.service
|
|
1417
1417
|
// ES6引入方式
|
|
1418
1418
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1419
1419
|
let BaseServer = new BaseServer({
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<p>ArcGIS瓦片图层,<br>
|
|
39
39
|
目前二维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,三维上仅支持4326(包括4490,4214以及4610)以及3857坐标系,会自动读取元信息上的坐标系,不需要用户指定,
|
|
40
40
|
<br><br>[ES5引入方式]:<br/>
|
|
41
|
-
|
|
41
|
+
zondy.layer.ArcGISTileLayer() <br/>
|
|
42
42
|
[ES6引入方式]:<br/>
|
|
43
43
|
import { ArcGISTileLayer } from "@mapgis/webclient-common" <br/>
|
|
44
44
|
<br/>
|
|
@@ -502,7 +502,7 @@ if(layer.loadStatus === 'loaded') {<br/>
|
|
|
502
502
|
|
|
503
503
|
|
|
504
504
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
505
|
-
const { ArcGISTileLayer } =
|
|
505
|
+
const { ArcGISTileLayer } = zondy.layer
|
|
506
506
|
// ES6引入方式
|
|
507
507
|
import { ArcGISTileLayer } from "@mapgis/webclient-common"
|
|
508
508
|
const arcgisTileLayer = new ArcGISTileLayer({
|
|
@@ -515,7 +515,7 @@ const arcgisTileLayer = new ArcGISTileLayer({
|
|
|
515
515
|
|
|
516
516
|
|
|
517
517
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
518
|
-
const { ArcGISTileLayer } =
|
|
518
|
+
const { ArcGISTileLayer } = zondy.layer
|
|
519
519
|
// ES6引入方式
|
|
520
520
|
import { ArcGISTileLayer } from "@mapgis/webclient-common"
|
|
521
521
|
// 初始化时设置
|
|
@@ -537,7 +537,7 @@ arcgisTileLayer.opacity = 0.5
|
|
|
537
537
|
|
|
538
538
|
|
|
539
539
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
540
|
-
const { ArcGISTileLayer } =
|
|
540
|
+
const { ArcGISTileLayer } = zondy.layer
|
|
541
541
|
// ES6引入方式
|
|
542
542
|
import { ArcGISTileLayer } from "@mapgis/webclient-common"
|
|
543
543
|
// 初始化时设置
|
|
@@ -3267,7 +3267,7 @@ map.reorder(arcgisTileLayer, '要移动到的index');</code></pre>
|
|
|
3267
3267
|
|
|
3268
3268
|
|
|
3269
3269
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3270
|
-
const { ArcGISTileLayer } =
|
|
3270
|
+
const { ArcGISTileLayer } = zondy.layer
|
|
3271
3271
|
// ES6引入方式
|
|
3272
3272
|
import { ArcGISTileLayer } from "@mapgis/webclient-common"
|
|
3273
3273
|
const json = {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
2、通过加载矢量瓦片样式文件的方式来初始化矢量瓦片图层对象;<br/>
|
|
43
43
|
3、通过设置矢量瓦片样式的方式来初始化矢量瓦片图层对象;<br/>
|
|
44
44
|
<br><br>[ES5引入方式]:<br/>
|
|
45
|
-
|
|
45
|
+
zondy.layer.ArcGISVectorTileLayer() <br/>
|
|
46
46
|
[ES6引入方式]:<br/>
|
|
47
47
|
import { ArcGISVectorTileLayer } from "@mapgis/webclient-common" <br/>
|
|
48
48
|
<br/>
|
|
@@ -600,7 +600,7 @@ if(layer.loadStatus === 'loaded') {<br/>
|
|
|
600
600
|
|
|
601
601
|
|
|
602
602
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
603
|
-
const { ArcGISVectorTileLayer } =
|
|
603
|
+
const { ArcGISVectorTileLayer } = zondy.layer
|
|
604
604
|
// ES6引入方式
|
|
605
605
|
import { ArcGISVectorTileLayer } from "@mapgis/webclient-common"
|
|
606
606
|
// 初始化矢量瓦片图层
|
|
@@ -614,7 +614,7 @@ const arcgisVectorTileLayer = new ArcGISVectorTileLayer({
|
|
|
614
614
|
|
|
615
615
|
|
|
616
616
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
617
|
-
const { ArcGISVectorTileLayer } =
|
|
617
|
+
const { ArcGISVectorTileLayer } = zondy.layer
|
|
618
618
|
// ES6引入方式
|
|
619
619
|
import { ArcGISVectorTileLayer } from "@mapgis/webclient-common"
|
|
620
620
|
// 初始化矢量瓦片图层
|
|
@@ -628,7 +628,7 @@ const arcgisVectorTileLayer = new ArcGISVectorTileLayer({
|
|
|
628
628
|
|
|
629
629
|
|
|
630
630
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
631
|
-
const { ArcGISVectorTileLayer } =
|
|
631
|
+
const { ArcGISVectorTileLayer } = zondy.layer
|
|
632
632
|
// ES6引入方式
|
|
633
633
|
import { ArcGISVectorTileLayer } from "@mapgis/webclient-common"
|
|
634
634
|
// 初始化矢量瓦片图层
|
|
@@ -642,7 +642,7 @@ const arcgisVectorTileLayer = new ArcGISVectorTileLayer({
|
|
|
642
642
|
|
|
643
643
|
|
|
644
644
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
645
|
-
const { ArcGISVectorTileLayer } =
|
|
645
|
+
const { ArcGISVectorTileLayer } = zondy.layer
|
|
646
646
|
// ES6引入方式
|
|
647
647
|
import { ArcGISVectorTileLayer } from "@mapgis/webclient-common"
|
|
648
648
|
// 初始化矢量瓦片图层
|
|
@@ -690,8 +690,8 @@ const customLayer = new ArcGISVectorTileLayerCustom({
|
|
|
690
690
|
|
|
691
691
|
|
|
692
692
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
693
|
-
const { LabelClass } =
|
|
694
|
-
const { ArcGISVectorTileLayer } =
|
|
693
|
+
const { LabelClass } = zondy
|
|
694
|
+
const { ArcGISVectorTileLayer } = zondy.layer
|
|
695
695
|
// ES6引入方式
|
|
696
696
|
import { ArcGISVectorTileLayer, LabelClass } from "@mapgis/webclient-common"
|
|
697
697
|
// 初始化一个额外的图标DOM对象
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
|
|
599
599
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
600
600
|
// ES5引入方式
|
|
601
|
-
const { BaseServer } =
|
|
601
|
+
const { BaseServer } = zondy.service
|
|
602
602
|
// ES6引入方式
|
|
603
603
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
604
604
|
let BaseServer = new BaseServer({
|
|
@@ -699,7 +699,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
699
699
|
|
|
700
700
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
701
701
|
// ES5引入方式
|
|
702
|
-
const { BaseServer } =
|
|
702
|
+
const { BaseServer } = zondy.service
|
|
703
703
|
// ES6引入方式
|
|
704
704
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
705
705
|
let BaseServer = new BaseServer({
|
|
@@ -801,7 +801,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
801
801
|
|
|
802
802
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
803
803
|
// ES5引入方式
|
|
804
|
-
const { BaseServer,RequestInterceptor } =
|
|
804
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
805
805
|
// ES6引入方式
|
|
806
806
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
807
807
|
let BaseServer = new BaseServer({
|
|
@@ -910,7 +910,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
910
910
|
<pre class="prettyprint"><code>//设置超时时间
|
|
911
911
|
//初始化AddressServer服务对象
|
|
912
912
|
// ES5引入方式
|
|
913
|
-
const { BaseServer } =
|
|
913
|
+
const { BaseServer } = zondy.service
|
|
914
914
|
// ES6引入方式
|
|
915
915
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
916
916
|
let BaseServer = new BaseServer({
|
|
@@ -1007,7 +1007,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1007
1007
|
|
|
1008
1008
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1009
1009
|
// ES5引入方式
|
|
1010
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1010
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1011
1011
|
// ES6引入方式
|
|
1012
1012
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1013
1013
|
let BaseServer = new BaseServer({
|
|
@@ -1117,8 +1117,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1117
1117
|
|
|
1118
1118
|
<pre class="prettyprint"><code>//设置token值
|
|
1119
1119
|
// ES5引入方式
|
|
1120
|
-
const { BaseServer } =
|
|
1121
|
-
const { TokenAttachType } =
|
|
1120
|
+
const { BaseServer } = zondy.service
|
|
1121
|
+
const { TokenAttachType } = zondy.enum
|
|
1122
1122
|
// ES6引入方式
|
|
1123
1123
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1124
1124
|
let BaseServer = new BaseServer({
|
|
@@ -1219,7 +1219,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1219
1219
|
|
|
1220
1220
|
<pre class="prettyprint"><code>//设置token名
|
|
1221
1221
|
// ES5引入方式
|
|
1222
|
-
const { BaseServer } =
|
|
1222
|
+
const { BaseServer } = zondy.service
|
|
1223
1223
|
// ES6引入方式
|
|
1224
1224
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1225
1225
|
let BaseServer = new BaseServer({
|
|
@@ -1316,7 +1316,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1316
1316
|
|
|
1317
1317
|
<pre class="prettyprint"><code>//设置token值
|
|
1318
1318
|
// ES5引入方式
|
|
1319
|
-
const { BaseServer } =
|
|
1319
|
+
const { BaseServer } = zondy.service
|
|
1320
1320
|
// ES6引入方式
|
|
1321
1321
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1322
1322
|
let BaseServer = new BaseServer({
|
|
@@ -1413,7 +1413,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1413
1413
|
|
|
1414
1414
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1415
1415
|
// ES5引入方式
|
|
1416
|
-
const { BaseServer } =
|
|
1416
|
+
const { BaseServer } = zondy.service
|
|
1417
1417
|
// ES6引入方式
|
|
1418
1418
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1419
1419
|
let BaseServer = new BaseServer({
|