@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>//初始化TileServer服务对象
|
|
210
210
|
// ES5引入方式
|
|
211
|
-
const { TileServer } =
|
|
211
|
+
const { TileServer } = zondy.service
|
|
212
212
|
// ES6引入方式
|
|
213
213
|
import { TileServer } from "@mapgis/webclient-common"
|
|
214
214
|
const tileServer = new TileServer({
|
|
@@ -613,7 +613,7 @@ import { TileServer } from "@mapgis/webclient-common"
|
|
|
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({
|
|
@@ -391,9 +391,9 @@
|
|
|
391
391
|
|
|
392
392
|
|
|
393
393
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
394
|
-
const { SimpleMarkerSymbol, SimpleLineSymbol } =
|
|
395
|
-
const { Color } =
|
|
396
|
-
const { UniqueValueRenderer } =
|
|
394
|
+
const { SimpleMarkerSymbol, SimpleLineSymbol } = zondy.symbol
|
|
395
|
+
const { Color } = zondy
|
|
396
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
397
397
|
// ES6引入方式
|
|
398
398
|
import { SimpleMarkerSymbol, SimpleLineSymbol, Color, UniqueValueRenderer } from "@mapgis/webclient-common"
|
|
399
399
|
// 初始化默认样式,更多样式详见:<a class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html><code>《SimpleMarkerSymbol》</code></a>
|
|
@@ -425,9 +425,9 @@ const renderer = new UniqueValueRenderer({
|
|
|
425
425
|
|
|
426
426
|
|
|
427
427
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
428
|
-
const { SimpleLineSymbol } =
|
|
429
|
-
const { Color } =
|
|
430
|
-
const { UniqueValueRenderer } =
|
|
428
|
+
const { SimpleLineSymbol } = zondy.symbol
|
|
429
|
+
const { Color } = zondy
|
|
430
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
431
431
|
// ES6引入方式
|
|
432
432
|
import { SimpleLineSymbol, Color, UniqueValueRenderer } from "@mapgis/webclient-common"
|
|
433
433
|
// 初始化默认样式,更多样式详见:<a class="mapgis-link-name" title="SimpleLineSymbol" SimpleLineSymbol.html><code>《SimpleLineSymbol》</code></a>
|
|
@@ -452,9 +452,9 @@ const renderer = new UniqueValueRenderer({
|
|
|
452
452
|
|
|
453
453
|
|
|
454
454
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
455
|
-
const { SimpleFillSymbol, SimpleLineSymbol } =
|
|
456
|
-
const { Color } =
|
|
457
|
-
const { UniqueValueRenderer } =
|
|
455
|
+
const { SimpleFillSymbol, SimpleLineSymbol } = zondy.symbol
|
|
456
|
+
const { Color } = zondy
|
|
457
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
458
458
|
// ES6引入方式
|
|
459
459
|
import { SimpleFillSymbol, SimpleLineSymbol, Color, UniqueValueRenderer } from "@mapgis/webclient-common"
|
|
460
460
|
// 初始化默认样式,更多样式详见:<a class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html><code>《SimpleFillSymbol》</code></a>
|
|
@@ -484,9 +484,9 @@ const renderer = new Renderer.UniqueValueRenderer({
|
|
|
484
484
|
|
|
485
485
|
|
|
486
486
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
487
|
-
const { UniqueValueRenderer } =
|
|
488
|
-
const { SimpleMarkerSymbol, SimpleLineSymbol } =
|
|
489
|
-
const { Color } =
|
|
487
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
488
|
+
const { SimpleMarkerSymbol, SimpleLineSymbol } = zondy.symbol
|
|
489
|
+
const { Color } = zondy
|
|
490
490
|
// ES6引入方式
|
|
491
491
|
import { UniqueValueRenderer, SimpleMarkerSymbol, SimpleLineSymbol, Color } from "@mapgis/webclient-common"
|
|
492
492
|
//创建单值专题图渲染样式对象,更多样式详见:<a class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html><code>《SimpleMarkerSymbol》</code></a>
|
|
@@ -538,9 +538,9 @@ let uniqueRender = new UniqueValueRenderer({
|
|
|
538
538
|
|
|
539
539
|
|
|
540
540
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
541
|
-
const { UniqueValueRenderer } =
|
|
542
|
-
const { SimpleLineSymbol } =
|
|
543
|
-
const { Color } =
|
|
541
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
542
|
+
const { SimpleLineSymbol } = zondy.symbol
|
|
543
|
+
const { Color } = zondy
|
|
544
544
|
// ES6引入方式
|
|
545
545
|
import { UniqueValueRenderer, SimpleLineSymbol, Color } from "@mapgis/webclient-common"
|
|
546
546
|
//创建单值专题图渲染样式对象,更多样式详见:<a class="mapgis-link-name" title="SimpleLineSymbol" SimpleLineSymbol.html><code>《SimpleLineSymbol》</code></a>
|
|
@@ -578,9 +578,9 @@ let uniqueRender = new UniqueValueRenderer({
|
|
|
578
578
|
|
|
579
579
|
|
|
580
580
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
581
|
-
const { UniqueValueRenderer } =
|
|
582
|
-
const { SimpleFillSymbol, SimpleLineSymbol } =
|
|
583
|
-
const { Color } =
|
|
581
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
582
|
+
const { SimpleFillSymbol, SimpleLineSymbol } = zondy.symbol
|
|
583
|
+
const { Color } = zondy
|
|
584
584
|
// ES6引入方式
|
|
585
585
|
import { UniqueValueRenderer, SimpleLineSymbol, Color } from "@mapgis/webclient-common"
|
|
586
586
|
//创建单值专题图渲染样式对象,更多样式详见:<a class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html><code>《SimpleFillSymbol》</code></a>
|
|
@@ -514,7 +514,7 @@ off-screen: 使用矢量瓦片来绘制注记<br/>
|
|
|
514
514
|
|
|
515
515
|
|
|
516
516
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
517
|
-
const { VectorTileLayer } =
|
|
517
|
+
const { VectorTileLayer } = zondy.layer
|
|
518
518
|
// ES6引入方式
|
|
519
519
|
import { VectorTileLayer } from "@mapgis/webclient-common"
|
|
520
520
|
// 初始化矢量瓦片图层
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
|
|
196
196
|
|
|
197
197
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
198
|
-
const { VectorTileServer } =
|
|
198
|
+
const { VectorTileServer } = zondy.service
|
|
199
199
|
// ES6引入方式
|
|
200
200
|
import { VectorTileServer } from "@mapgis/webclient-common"
|
|
201
201
|
const vectorTileServer = new VectorTileServer({
|
|
@@ -617,7 +617,7 @@ const vectorTileServer = new VectorTileServer({
|
|
|
617
617
|
|
|
618
618
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
619
619
|
// ES5引入方式
|
|
620
|
-
const { BaseServer } =
|
|
620
|
+
const { BaseServer } = zondy.service
|
|
621
621
|
// ES6引入方式
|
|
622
622
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
623
623
|
let BaseServer = new BaseServer({
|
|
@@ -718,7 +718,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
718
718
|
|
|
719
719
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
720
720
|
// ES5引入方式
|
|
721
|
-
const { BaseServer } =
|
|
721
|
+
const { BaseServer } = zondy.service
|
|
722
722
|
// ES6引入方式
|
|
723
723
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
724
724
|
let BaseServer = new BaseServer({
|
|
@@ -820,7 +820,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
820
820
|
|
|
821
821
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
822
822
|
// ES5引入方式
|
|
823
|
-
const { BaseServer,RequestInterceptor } =
|
|
823
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
824
824
|
// ES6引入方式
|
|
825
825
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
826
826
|
let BaseServer = new BaseServer({
|
|
@@ -929,7 +929,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
929
929
|
<pre class="prettyprint"><code>//设置超时时间
|
|
930
930
|
//初始化AddressServer服务对象
|
|
931
931
|
// ES5引入方式
|
|
932
|
-
const { BaseServer } =
|
|
932
|
+
const { BaseServer } = zondy.service
|
|
933
933
|
// ES6引入方式
|
|
934
934
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
935
935
|
let BaseServer = new BaseServer({
|
|
@@ -1026,7 +1026,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1026
1026
|
|
|
1027
1027
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1028
1028
|
// ES5引入方式
|
|
1029
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1029
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1030
1030
|
// ES6引入方式
|
|
1031
1031
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1032
1032
|
let BaseServer = new BaseServer({
|
|
@@ -1136,8 +1136,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1136
1136
|
|
|
1137
1137
|
<pre class="prettyprint"><code>//设置token值
|
|
1138
1138
|
// ES5引入方式
|
|
1139
|
-
const { BaseServer } =
|
|
1140
|
-
const { TokenAttachType } =
|
|
1139
|
+
const { BaseServer } = zondy.service
|
|
1140
|
+
const { TokenAttachType } = zondy.enum
|
|
1141
1141
|
// ES6引入方式
|
|
1142
1142
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1143
1143
|
let BaseServer = new BaseServer({
|
|
@@ -1238,7 +1238,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1238
1238
|
|
|
1239
1239
|
<pre class="prettyprint"><code>//设置token名
|
|
1240
1240
|
// ES5引入方式
|
|
1241
|
-
const { BaseServer } =
|
|
1241
|
+
const { BaseServer } = zondy.service
|
|
1242
1242
|
// ES6引入方式
|
|
1243
1243
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1244
1244
|
let BaseServer = new BaseServer({
|
|
@@ -1335,7 +1335,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1335
1335
|
|
|
1336
1336
|
<pre class="prettyprint"><code>//设置token值
|
|
1337
1337
|
// ES5引入方式
|
|
1338
|
-
const { BaseServer } =
|
|
1338
|
+
const { BaseServer } = zondy.service
|
|
1339
1339
|
// ES6引入方式
|
|
1340
1340
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1341
1341
|
let BaseServer = new BaseServer({
|
|
@@ -1432,7 +1432,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1432
1432
|
|
|
1433
1433
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1434
1434
|
// ES5引入方式
|
|
1435
|
-
const { BaseServer } =
|
|
1435
|
+
const { BaseServer } = zondy.service
|
|
1436
1436
|
// ES6引入方式
|
|
1437
1437
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1438
1438
|
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>WFS图层,<br>
|
|
39
39
|
目前二维和三维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,WFS服务会自动读取元信息上的坐标系,不需要用户指定
|
|
40
40
|
<br><br>[ES5引入方式]:<br/>
|
|
41
|
-
|
|
41
|
+
zondy.layer.WMTSLayer() <br/>
|
|
42
42
|
[ES6引入方式]:<br/>
|
|
43
43
|
import { WMTSLayer } from "@mapgis/webclient-common" <br/>
|
|
44
44
|
<br/>
|
|
@@ -547,7 +547,7 @@ if(layer.loadStatus === 'loaded') {<br/>
|
|
|
547
547
|
|
|
548
548
|
|
|
549
549
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
550
|
-
const { WFSLayer } =
|
|
550
|
+
const { WFSLayer } = zondy.layer
|
|
551
551
|
// ES6引入方式
|
|
552
552
|
import { WFSLayer } from "@mapgis/webclient-common"
|
|
553
553
|
// 初始化WFS图层
|
|
@@ -560,7 +560,7 @@ const wfsLayer = new WFSLayer({
|
|
|
560
560
|
|
|
561
561
|
|
|
562
562
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
563
|
-
const { WFSLayer } =
|
|
563
|
+
const { WFSLayer } = zondy.layer
|
|
564
564
|
// ES6引入方式
|
|
565
565
|
import { WFSLayer } from "@mapgis/webclient-common"
|
|
566
566
|
// 初始化WFS图层
|
|
@@ -574,7 +574,7 @@ const wfsLayer = new WFSLayer({
|
|
|
574
574
|
|
|
575
575
|
|
|
576
576
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
577
|
-
const { WFSLayer } =
|
|
577
|
+
const { WFSLayer } = zondy.layer
|
|
578
578
|
// ES6引入方式
|
|
579
579
|
import { WFSLayer } from "@mapgis/webclient-common"
|
|
580
580
|
// 初始化WFS图层
|
|
@@ -590,10 +590,10 @@ const wfsLayer = new WFSLayer({
|
|
|
590
590
|
|
|
591
591
|
|
|
592
592
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
593
|
-
const { WFSLayer } =
|
|
594
|
-
const { UniqueValueRenderer } =
|
|
595
|
-
const { SimpleFillSymbol } =
|
|
596
|
-
const { Color } =
|
|
593
|
+
const { WFSLayer } = zondy.layer
|
|
594
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
595
|
+
const { SimpleFillSymbol } = zondy.symbol
|
|
596
|
+
const { Color } = zondy
|
|
597
597
|
// ES6引入方式
|
|
598
598
|
import { WFSLayer, UniqueValueRenderer, SimpleFillSymbol, Color } from "@mapgis/webclient-common"
|
|
599
599
|
const wfsLayer = new WFSLayer({
|
|
@@ -648,10 +648,10 @@ const wfsLayer = new WFSLayer({
|
|
|
648
648
|
|
|
649
649
|
|
|
650
650
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
651
|
-
const { WFSLayer } =
|
|
652
|
-
const { ClassBreakRenderer } =
|
|
653
|
-
const { SimpleLineSymbol } =
|
|
654
|
-
const { Color } =
|
|
651
|
+
const { WFSLayer } = zondy.layer
|
|
652
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
653
|
+
const { SimpleLineSymbol } = zondy.symbol
|
|
654
|
+
const { Color } = zondy
|
|
655
655
|
// ES6引入方式
|
|
656
656
|
import { WFSLayer, UniqueValueRenderer, SimpleLineSymbol, Color } from "@mapgis/webclient-common"
|
|
657
657
|
const wfsLayer = new WFSLayer({
|
|
@@ -750,10 +750,10 @@ const wfsLayer = new WFSLayer({
|
|
|
750
750
|
|
|
751
751
|
|
|
752
752
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
753
|
-
const { WFSLayer } =
|
|
754
|
-
const { SimpleRenderer } =
|
|
755
|
-
const { SimpleLineSymbol } =
|
|
756
|
-
const { Color } =
|
|
753
|
+
const { WFSLayer } = zondy.layer
|
|
754
|
+
const { SimpleRenderer } = zondy.renderer
|
|
755
|
+
const { SimpleLineSymbol } = zondy.symbol
|
|
756
|
+
const { Color } = zondy
|
|
757
757
|
// ES6引入方式
|
|
758
758
|
import { WFSLayer, SimpleRenderer, SimpleLineSymbol, Color } from "@mapgis/webclient-common"
|
|
759
759
|
const wfsLayer = new WFSLayer({
|
|
@@ -781,9 +781,9 @@ const wfsLayer = new WFSLayer({
|
|
|
781
781
|
|
|
782
782
|
|
|
783
783
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
784
|
-
const { LabelClass, Color, Font } =
|
|
785
|
-
const { TextSymbol } =
|
|
786
|
-
const { WFSLayer } =
|
|
784
|
+
const { LabelClass, Color, Font } = zondy
|
|
785
|
+
const { TextSymbol } = zondy.symbol
|
|
786
|
+
const { WFSLayer } = zondy.layer
|
|
787
787
|
// ES6引入方式
|
|
788
788
|
import { LabelClass, Color, Font, TextSymbol, WFSLayer } from "@mapgis/webclient-common"
|
|
789
789
|
// 初始化LabelClass
|
|
@@ -824,7 +824,7 @@ map.add(wfsLayer)</code></pre>
|
|
|
824
824
|
|
|
825
825
|
|
|
826
826
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
827
|
-
const { IGSMapImageLayer, WFSLayer } =
|
|
827
|
+
const { IGSMapImageLayer, WFSLayer } = zondy.layer
|
|
828
828
|
// ES6引入方式
|
|
829
829
|
import { IGSMapImageLayer, WFSLayer } from "@mapgis/webclient-common"
|
|
830
830
|
// 加载地图图片图层,设置index为3
|
|
@@ -851,7 +851,7 @@ const wfsLayer = new WFSLayer({
|
|
|
851
851
|
|
|
852
852
|
|
|
853
853
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
854
|
-
const { WFSLayer } =
|
|
854
|
+
const { WFSLayer } = zondy.layer
|
|
855
855
|
// ES6引入方式
|
|
856
856
|
import { WFSLayer } from "@mapgis/webclient-common"
|
|
857
857
|
// 初始化时指定透明度
|
|
@@ -872,7 +872,7 @@ wfsLayer.opacity = 0.5</code></pre>
|
|
|
872
872
|
|
|
873
873
|
|
|
874
874
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
875
|
-
const { WFSLayer } =
|
|
875
|
+
const { WFSLayer } = zondy.layer
|
|
876
876
|
// ES6引入方式
|
|
877
877
|
import { WFSLayer } from "@mapgis/webclient-common"
|
|
878
878
|
// 在初始化时设置
|
|
@@ -4344,7 +4344,7 @@ wfsLayer.visible = false</code></pre>
|
|
|
4344
4344
|
// 服务基地址
|
|
4345
4345
|
url: 'http://{ip}:{port}/igs/rest/services/{ServiceName}/WFSServer'
|
|
4346
4346
|
}
|
|
4347
|
-
const wfsLayer = new
|
|
4347
|
+
const wfsLayer = new zondy.layer.WFSLayer.fromJSON(json)</code></pre>
|
|
4348
4348
|
|
|
4349
4349
|
|
|
4350
4350
|
|
|
@@ -4817,7 +4817,7 @@ const wfsLayer = new Zondy.Layer.WFSLayer.fromJSON(json)</code></pre>
|
|
|
4817
4817
|
|
|
4818
4818
|
|
|
4819
4819
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4820
|
-
const { WFSLayer } =
|
|
4820
|
+
const { WFSLayer } = zondy.layer
|
|
4821
4821
|
// ES6引入方式
|
|
4822
4822
|
import { WFSLayer } from "@mapgis/webclient-common"
|
|
4823
4823
|
// 初始化图层
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
|
|
239
239
|
|
|
240
240
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
241
|
-
const { WFSServer } =
|
|
241
|
+
const { WFSServer } = zondy.service
|
|
242
242
|
// ES6引入方式
|
|
243
243
|
import { WFSServer } from "@mapgis/webclient-common"
|
|
244
244
|
WFSServer = new WFSServer({
|
|
@@ -678,7 +678,7 @@ WFSServer = new WFSServer({
|
|
|
678
678
|
|
|
679
679
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
680
680
|
// ES5引入方式
|
|
681
|
-
const { BaseServer } =
|
|
681
|
+
const { BaseServer } = zondy.service
|
|
682
682
|
// ES6引入方式
|
|
683
683
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
684
684
|
let BaseServer = new BaseServer({
|
|
@@ -779,7 +779,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
779
779
|
|
|
780
780
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
781
781
|
// ES5引入方式
|
|
782
|
-
const { BaseServer } =
|
|
782
|
+
const { BaseServer } = zondy.service
|
|
783
783
|
// ES6引入方式
|
|
784
784
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
785
785
|
let BaseServer = new BaseServer({
|
|
@@ -881,7 +881,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
881
881
|
|
|
882
882
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
883
883
|
// ES5引入方式
|
|
884
|
-
const { BaseServer,RequestInterceptor } =
|
|
884
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
885
885
|
// ES6引入方式
|
|
886
886
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
887
887
|
let BaseServer = new BaseServer({
|
|
@@ -990,7 +990,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
990
990
|
<pre class="prettyprint"><code>//设置超时时间
|
|
991
991
|
//初始化AddressServer服务对象
|
|
992
992
|
// ES5引入方式
|
|
993
|
-
const { BaseServer } =
|
|
993
|
+
const { BaseServer } = zondy.service
|
|
994
994
|
// ES6引入方式
|
|
995
995
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
996
996
|
let BaseServer = new BaseServer({
|
|
@@ -1087,7 +1087,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1087
1087
|
|
|
1088
1088
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1089
1089
|
// ES5引入方式
|
|
1090
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1090
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1091
1091
|
// ES6引入方式
|
|
1092
1092
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1093
1093
|
let BaseServer = new BaseServer({
|
|
@@ -1197,8 +1197,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1197
1197
|
|
|
1198
1198
|
<pre class="prettyprint"><code>//设置token值
|
|
1199
1199
|
// ES5引入方式
|
|
1200
|
-
const { BaseServer } =
|
|
1201
|
-
const { TokenAttachType } =
|
|
1200
|
+
const { BaseServer } = zondy.service
|
|
1201
|
+
const { TokenAttachType } = zondy.enum
|
|
1202
1202
|
// ES6引入方式
|
|
1203
1203
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1204
1204
|
let BaseServer = new BaseServer({
|
|
@@ -1299,7 +1299,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1299
1299
|
|
|
1300
1300
|
<pre class="prettyprint"><code>//设置token名
|
|
1301
1301
|
// ES5引入方式
|
|
1302
|
-
const { BaseServer } =
|
|
1302
|
+
const { BaseServer } = zondy.service
|
|
1303
1303
|
// ES6引入方式
|
|
1304
1304
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1305
1305
|
let BaseServer = new BaseServer({
|
|
@@ -1396,7 +1396,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1396
1396
|
|
|
1397
1397
|
<pre class="prettyprint"><code>//设置token值
|
|
1398
1398
|
// ES5引入方式
|
|
1399
|
-
const { BaseServer } =
|
|
1399
|
+
const { BaseServer } = zondy.service
|
|
1400
1400
|
// ES6引入方式
|
|
1401
1401
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1402
1402
|
let BaseServer = new BaseServer({
|
|
@@ -1493,7 +1493,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1493
1493
|
|
|
1494
1494
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1495
1495
|
// ES5引入方式
|
|
1496
|
-
const { BaseServer } =
|
|
1496
|
+
const { BaseServer } = zondy.service
|
|
1497
1497
|
// ES6引入方式
|
|
1498
1498
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1499
1499
|
let BaseServer = new BaseServer({
|