@mapgis/webclient-common 17.0.7 → 17.2.1
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 +12 -37
- package/dist/es5/webclient-common.min.js +15 -4
- package/dist/webclient-common-es6.min.js +16 -5
- 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/ArcGISMapImageSubLayer.html +311 -7
- package/documention/ArcGISMapServer.html +414 -10
- package/documention/ArcGISTileLayer.html +121 -13
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseRenderer.html +239 -0
- package/documention/BaseServer.html +11 -11
- package/documention/BaseView.html +458 -3
- package/documention/Basemap.html +3 -3
- package/documention/Callout3D.html +107 -0
- package/documention/Cesium3DTilesCacheLayer.html +149 -177
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +110 -7
- package/documention/ClassBreakInfo.html +0 -217
- package/documention/ClassBreakRenderer.html +413 -23
- package/documention/ClusterRenderer.html +247 -7
- package/documention/Config.html +4 -4
- package/documention/Extent.html +118 -15
- package/documention/ExtrudeSymbol3DLayer.html +109 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureLayer.html +116 -8
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol.html +107 -0
- package/documention/FillSymbol3DLayer.html +109 -2
- package/documention/Font.html +4 -4
- package/documention/GeoJSONLayer.html +142 -34
- package/documention/Geometry.html +138 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +147 -39
- package/documention/GroupLayer.html +120 -12
- package/documention/HeatmapRenderer.html +107 -0
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +46 -46
- package/documention/IGSMapImageSubLayer.html +307 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSSceneSubLayer.html +213 -33
- package/documention/IGSTileLayer.html +126 -19
- package/documention/IGSVectorTileLayer.html +230 -43
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/IconSymbol3DLayer.html +111 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +10 -5
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/Layer.html +244 -9
- package/documention/LineCallout3D.html +107 -0
- package/documention/LineString.html +113 -10
- package/documention/LineSymbol.html +107 -0
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +109 -2
- package/documention/M3DModelCacheLayer.html +133 -79
- package/documention/M3DServer.html +12 -12
- package/documention/Map.html +32 -5
- package/documention/MapGISTextSymbol.html +110 -3
- package/documention/MapImageLayer.html +527 -16
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +204 -3
- package/documention/MarkerSymbol.html +107 -0
- package/documention/MultiLineString.html +116 -13
- package/documention/MultiPoint.html +113 -10
- package/documention/MultiPolygon.html +112 -9
- package/documention/OGCLayer.html +116 -8
- package/documention/ObjectSymbol3DLayer.html +111 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/OverlayLayer.html +116 -8
- package/documention/PathSymbol3DLayer.html +109 -2
- package/documention/PictureFillSymbol.html +169 -8
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +12 -12
- package/documention/Point.html +115 -12
- package/documention/PointSymbol3D.html +3 -3
- package/documention/Polygon.html +117 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +429 -8
- package/documention/RandomRenderer.html +108 -1
- package/documention/RankRenderer.html +109 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +12 -12
- package/documention/SceneLayer.html +116 -8
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +10164 -130
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +110 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +116 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchBaseDrawTool.html +181 -3
- package/documention/SketchCircleDrawTool.html +159 -3
- package/documention/SketchEditor.html +2 -2
- package/documention/SketchEditorCesium.html +1 -1
- package/documention/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- package/documention/SketchExtentDrawTool.html +159 -3
- package/documention/SketchFreehandPolygonDrawTool.html +159 -3
- package/documention/SketchFreehandPolylineDrawTool.html +159 -3
- package/documention/SketchPointDrawTool.html +159 -3
- package/documention/SketchPolygonDrawTool.html +318 -6
- package/documention/SketchPolylineDrawTool.html +318 -6
- package/documention/SpatialReference.html +1 -1
- package/documention/SubLayer.html +296 -26
- package/documention/Symbol.html +134 -1
- package/documention/Symbol3DLayer.html +107 -0
- package/documention/Symbol3DVerticalOffset.html +107 -0
- package/documention/TerrainCacheLayer.html +133 -165
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +111 -4
- package/documention/TextSymbol3DLayer.html +109 -2
- package/documention/ThemeServer.html +13 -13
- package/documention/TileLayer.html +116 -8
- package/documention/TileServer.html +12 -12
- package/documention/UniqueValueInfo.html +0 -217
- package/documention/UniqueValueRenderer.html +125 -18
- package/documention/UnknownLayer.html +116 -8
- package/documention/VectorTileLayer.html +117 -9
- package/documention/VectorTileServer.html +11 -11
- package/documention/VectorTileSubLayer.html +304 -0
- package/documention/VideoMapView.html +4 -4
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +140 -32
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +131 -23
- package/documention/WMSServer.html +12 -12
- package/documention/WMSSubLayer.html +218 -7
- package/documention/WMTSLayer.html +126 -18
- package/documention/WMTSServer.html +12 -12
- package/documention/WMTSSubLayer.html +116 -8
- package/documention/WPSServer.html +10 -10
- package/documention/WaterSymbol3DLayer.html +107 -0
- package/documention/WebTileLayer.html +121 -13
- 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 +1024 -1874
- package/documention/index.html +84 -78
- 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/documention/scripts/sideBar.js +16 -2
- package/documention/tutorial-/346/270/262/346/237/223/345/231/250.html +5 -1
- package/documention/tutorial-/347/254/246/345/217/267.html +52 -6
- package/documention/tutorial-/350/241/250/350/276/276/345/274/217.html +293 -1
- package/package.json +14 -13
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
会自动读取图层元信息,不需要用户手动设置<br/>
|
|
41
41
|
WMTS图层中存在多个子图层,每个子图层中又有多个TileMatrixSet,因此每个子图层以及其对应的每一个TileMatrixSet,都对应一套实际的瓦片数据,默认会使用第0个图层的第0个TileMatrixSet来构建图层,同时用户也可以自己指定要加载的子图层,可以参考示例:<a href='#activeLayer'>[指定要激活的子图层]</a>
|
|
42
42
|
<br><br>[ES5引入方式]:<br/>
|
|
43
|
-
|
|
43
|
+
zondy.layer.WMTSLayer() <br/>
|
|
44
44
|
[ES6引入方式]:<br/>
|
|
45
45
|
import { WMTSLayer } from "@mapgis/webclient-common" <br/>
|
|
46
46
|
<br/>
|
|
@@ -553,7 +553,7 @@ w:墨卡托坐标系(3857)、c:经纬度坐标系(4326)<br/>
|
|
|
553
553
|
|
|
554
554
|
|
|
555
555
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
556
|
-
const { WMTSLayer } =
|
|
556
|
+
const { WMTSLayer } = zondy.layer
|
|
557
557
|
// ES6引入方式
|
|
558
558
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
559
559
|
// 初始化WMTS图层
|
|
@@ -567,7 +567,7 @@ const wmtsLayer = new WMTSLayer({
|
|
|
567
567
|
|
|
568
568
|
|
|
569
569
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
570
|
-
const { WMTSLayer } =
|
|
570
|
+
const { WMTSLayer } = zondy.layer
|
|
571
571
|
// ES6引入方式
|
|
572
572
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
573
573
|
// 初始化WMTS图层
|
|
@@ -580,7 +580,7 @@ const wmtsLayer = new WMTSLayer({
|
|
|
580
580
|
|
|
581
581
|
|
|
582
582
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
583
|
-
const { WMTSLayer } =
|
|
583
|
+
const { WMTSLayer } = zondy.layer
|
|
584
584
|
// ES6引入方式
|
|
585
585
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
586
586
|
初始化WMTS图层
|
|
@@ -598,7 +598,7 @@ const wmtsLayer = new WMTSLayer({
|
|
|
598
598
|
|
|
599
599
|
|
|
600
600
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
601
|
-
const { WMTSLayer } =
|
|
601
|
+
const { WMTSLayer } = zondy.layer
|
|
602
602
|
// ES6引入方式
|
|
603
603
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
604
604
|
// 初始化时设置
|
|
@@ -621,7 +621,7 @@ wmtsLayer.on('layerview-created', function (result) {
|
|
|
621
621
|
|
|
622
622
|
|
|
623
623
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
624
|
-
const { WMTSLayer } =
|
|
624
|
+
const { WMTSLayer } = zondy.layer
|
|
625
625
|
// ES6引入方式
|
|
626
626
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
627
627
|
// 初始化时设置
|
|
@@ -650,7 +650,7 @@ wmtsLayer.on('layerview-created', function (result) {
|
|
|
650
650
|
|
|
651
651
|
|
|
652
652
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
653
|
-
const { WMTSLayer } =
|
|
653
|
+
const { WMTSLayer } = zondy.layer
|
|
654
654
|
// ES6引入方式
|
|
655
655
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
656
656
|
// 初始化一个WMTS图层
|
|
@@ -870,7 +870,7 @@ map.add(layer)</code></pre>
|
|
|
870
870
|
|
|
871
871
|
</code>
|
|
872
872
|
</td>
|
|
873
|
-
<td class="name"><code><p
|
|
873
|
+
<td class="name"><code><p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p></code></td>
|
|
874
874
|
</tr>
|
|
875
875
|
|
|
876
876
|
<tr class="deep-level-0">
|
|
@@ -888,7 +888,7 @@ map.add(layer)</code></pre>
|
|
|
888
888
|
|
|
889
889
|
</code>
|
|
890
890
|
</td>
|
|
891
|
-
<td class="name"><code><p
|
|
891
|
+
<td class="name"><code><p>当前图层对象上不支持的属性,二次开发用户希望挂在图层对像上的属性可以存储到该属性中</p></code></td>
|
|
892
892
|
</tr>
|
|
893
893
|
|
|
894
894
|
<tr class="deep-level-0">
|
|
@@ -934,7 +934,7 @@ map.add(layer)</code></pre>
|
|
|
934
934
|
|
|
935
935
|
<span class="param-type">
|
|
936
936
|
|
|
937
|
-
|
|
937
|
+
<a link="FetchMethod.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="FetchMethod" global.html#FetchMethod>FetchMethod</a>
|
|
938
938
|
|
|
939
939
|
</span>
|
|
940
940
|
|
|
@@ -1068,7 +1068,7 @@ map.add(layer)</code></pre>
|
|
|
1068
1068
|
|
|
1069
1069
|
</code>
|
|
1070
1070
|
</td>
|
|
1071
|
-
<td class="name"><code><p>图层透明度,0到1之间的值,0为完全透明,1
|
|
1071
|
+
<td class="name"><code><p>图层透明度,0到1之间的值,0为完全透明,1为不透明,会触发图层更新完毕事件。IGSSceneLayer图层类型为地形时,不支持该属性。</p></code></td>
|
|
1072
1072
|
</tr>
|
|
1073
1073
|
|
|
1074
1074
|
<tr class="deep-level-0">
|
|
@@ -1143,6 +1143,24 @@ map.add(layer)</code></pre>
|
|
|
1143
1143
|
<td class="name"><code><p>图层名称</p></code></td>
|
|
1144
1144
|
</tr>
|
|
1145
1145
|
|
|
1146
|
+
<tr class="deep-level-0">
|
|
1147
|
+
<td class="name"><code><a href="#tokenAttachType">tokenAttachType</a></code></td>
|
|
1148
|
+
<td class="name">
|
|
1149
|
+
<code>
|
|
1150
|
+
|
|
1151
|
+
<span class="param-type">
|
|
1152
|
+
|
|
1153
|
+
String
|
|
1154
|
+
|
|
1155
|
+
</span>
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
</code>
|
|
1160
|
+
</td>
|
|
1161
|
+
<td class="name"><code><p>token附加类型。默认psot请求优先附加到body,get请求优先附加到url末尾</p></code></td>
|
|
1162
|
+
</tr>
|
|
1163
|
+
|
|
1146
1164
|
<tr class="deep-level-0">
|
|
1147
1165
|
<td class="name"><code><a href="#tokenKey">tokenKey</a></code></td>
|
|
1148
1166
|
<td class="name">
|
|
@@ -1790,7 +1808,7 @@ map.add(layer)</code></pre>
|
|
|
1790
1808
|
|
|
1791
1809
|
|
|
1792
1810
|
<div class="description">
|
|
1793
|
-
<p
|
|
1811
|
+
<p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p>
|
|
1794
1812
|
</div>
|
|
1795
1813
|
|
|
1796
1814
|
|
|
@@ -1827,6 +1845,11 @@ map.add(layer)</code></pre>
|
|
|
1827
1845
|
|
|
1828
1846
|
|
|
1829
1847
|
|
|
1848
|
+
<dt class="tag-default">Default Value:</dt>
|
|
1849
|
+
<dd class="tag-default"><ul class="dummy">
|
|
1850
|
+
<li>{}</li>
|
|
1851
|
+
</ul></dd>
|
|
1852
|
+
|
|
1830
1853
|
|
|
1831
1854
|
|
|
1832
1855
|
|
|
@@ -1870,7 +1893,7 @@ map.add(layer)</code></pre>
|
|
|
1870
1893
|
|
|
1871
1894
|
|
|
1872
1895
|
<div class="description">
|
|
1873
|
-
<p
|
|
1896
|
+
<p>当前图层对象上不支持的属性,二次开发用户希望挂在图层对像上的属性可以存储到该属性中</p>
|
|
1874
1897
|
</div>
|
|
1875
1898
|
|
|
1876
1899
|
|
|
@@ -1907,6 +1930,11 @@ map.add(layer)</code></pre>
|
|
|
1907
1930
|
|
|
1908
1931
|
|
|
1909
1932
|
|
|
1933
|
+
<dt class="tag-default">Default Value:</dt>
|
|
1934
|
+
<dd class="tag-default"><ul class="dummy">
|
|
1935
|
+
<li>{}</li>
|
|
1936
|
+
</ul></dd>
|
|
1937
|
+
|
|
1910
1938
|
|
|
1911
1939
|
|
|
1912
1940
|
|
|
@@ -2089,7 +2117,7 @@ map.add(layer)</code></pre>
|
|
|
2089
2117
|
|
|
2090
2118
|
<span class="param-type">
|
|
2091
2119
|
|
|
2092
|
-
|
|
2120
|
+
<a link="FetchMethod.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="FetchMethod" global.html#FetchMethod>FetchMethod</a>
|
|
2093
2121
|
|
|
2094
2122
|
</span>
|
|
2095
2123
|
|
|
@@ -2692,7 +2720,7 @@ map.add(layer)</code></pre>
|
|
|
2692
2720
|
|
|
2693
2721
|
|
|
2694
2722
|
<div class="description">
|
|
2695
|
-
<p>图层透明度,0到1之间的值,0为完全透明,1
|
|
2723
|
+
<p>图层透明度,0到1之间的值,0为完全透明,1为不透明,会触发图层更新完毕事件。IGSSceneLayer图层类型为地形时,不支持该属性。</p>
|
|
2696
2724
|
</div>
|
|
2697
2725
|
|
|
2698
2726
|
|
|
@@ -3052,6 +3080,86 @@ map.add(layer)</code></pre>
|
|
|
3052
3080
|
|
|
3053
3081
|
|
|
3054
3082
|
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
</dl>
|
|
3090
|
+
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
</div>
|
|
3096
|
+
|
|
3097
|
+
<div class="member">
|
|
3098
|
+
|
|
3099
|
+
<span class="method-parameter is-pulled-right">
|
|
3100
|
+
<label>类型:</label>
|
|
3101
|
+
|
|
3102
|
+
<span class="param-type">
|
|
3103
|
+
|
|
3104
|
+
String
|
|
3105
|
+
|
|
3106
|
+
</span>
|
|
3107
|
+
|
|
3108
|
+
|
|
3109
|
+
|
|
3110
|
+
</span>
|
|
3111
|
+
|
|
3112
|
+
<h4 class="name" id="tokenAttachType">
|
|
3113
|
+
<a class="href-link" href="#tokenAttachType">#</a>
|
|
3114
|
+
|
|
3115
|
+
<span class="code-name">
|
|
3116
|
+
tokenAttachType
|
|
3117
|
+
</span>
|
|
3118
|
+
|
|
3119
|
+
</h4>
|
|
3120
|
+
|
|
3121
|
+
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
<div class="description">
|
|
3125
|
+
<p>token附加类型。默认psot请求优先附加到body,get请求优先附加到url末尾</p>
|
|
3126
|
+
</div>
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
|
|
3132
|
+
<dl class="details">
|
|
3133
|
+
|
|
3134
|
+
|
|
3135
|
+
|
|
3136
|
+
|
|
3137
|
+
|
|
3138
|
+
|
|
3139
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
3140
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
3141
|
+
<a goto="tokenAttachType" link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer#tokenAttachType" Layer.html#tokenAttachType>Layer#tokenAttachType</a>
|
|
3142
|
+
</li></ul></dd>
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
|
|
3147
|
+
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
|
|
3158
|
+
|
|
3159
|
+
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
|
|
3055
3163
|
|
|
3056
3164
|
|
|
3057
3165
|
|
|
@@ -3902,7 +4010,7 @@ map.add(layer)</code></pre>
|
|
|
3902
4010
|
|
|
3903
4011
|
|
|
3904
4012
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3905
|
-
const { WMTSLayer } =
|
|
4013
|
+
const { WMTSLayer } = zondy.layer
|
|
3906
4014
|
// ES6引入方式
|
|
3907
4015
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
3908
4016
|
const json = {
|
|
@@ -4098,7 +4206,7 @@ const wmtsLayer = new WMTSLayer.fromJSON(json)</code></pre>
|
|
|
4098
4206
|
|
|
4099
4207
|
|
|
4100
4208
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4101
|
-
const { WMTSLayer } =
|
|
4209
|
+
const { WMTSLayer } = zondy.layer
|
|
4102
4210
|
// ES6引入方式
|
|
4103
4211
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
4104
4212
|
// 初始化图层
|
|
@@ -4870,7 +4978,7 @@ const wmtsLayer = new WMTSLayer.fromServerUrl(url);</code></pre>
|
|
|
4870
4978
|
|
|
4871
4979
|
|
|
4872
4980
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4873
|
-
const { WMTSLayer } =
|
|
4981
|
+
const { WMTSLayer } = zondy.layer
|
|
4874
4982
|
// ES6引入方式
|
|
4875
4983
|
import { WMTSLayer } from "@mapgis/webclient-common"
|
|
4876
4984
|
// 初始化图层
|
|
@@ -207,11 +207,11 @@
|
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
210
|
-
const { WMTSServer } =
|
|
210
|
+
const { WMTSServer } = zondy.service
|
|
211
211
|
// ES6引入方式
|
|
212
212
|
import { WMTSServer } from "@mapgis/webclient-common"
|
|
213
213
|
const WMTSServer = new WMTSServer({
|
|
214
|
-
url: 'http://
|
|
214
|
+
url: 'http://192.168.82.89:8089/igs/rest/services/Map/Hubei4326/WMTSServer',
|
|
215
215
|
requestInterceptor: {
|
|
216
216
|
before: function (config) {
|
|
217
217
|
return config;
|
|
@@ -629,7 +629,7 @@ const WMTSServer = new WMTSServer({
|
|
|
629
629
|
|
|
630
630
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
631
631
|
// ES5引入方式
|
|
632
|
-
const { BaseServer } =
|
|
632
|
+
const { BaseServer } = zondy.service
|
|
633
633
|
// ES6引入方式
|
|
634
634
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
635
635
|
let BaseServer = new BaseServer({
|
|
@@ -730,7 +730,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
730
730
|
|
|
731
731
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
732
732
|
// ES5引入方式
|
|
733
|
-
const { BaseServer } =
|
|
733
|
+
const { BaseServer } = zondy.service
|
|
734
734
|
// ES6引入方式
|
|
735
735
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
736
736
|
let BaseServer = new BaseServer({
|
|
@@ -832,7 +832,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
832
832
|
|
|
833
833
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
834
834
|
// ES5引入方式
|
|
835
|
-
const { BaseServer,RequestInterceptor } =
|
|
835
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
836
836
|
// ES6引入方式
|
|
837
837
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
838
838
|
let BaseServer = new BaseServer({
|
|
@@ -941,7 +941,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
941
941
|
<pre class="prettyprint"><code>//设置超时时间
|
|
942
942
|
//初始化AddressServer服务对象
|
|
943
943
|
// ES5引入方式
|
|
944
|
-
const { BaseServer } =
|
|
944
|
+
const { BaseServer } = zondy.service
|
|
945
945
|
// ES6引入方式
|
|
946
946
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
947
947
|
let BaseServer = new BaseServer({
|
|
@@ -1038,7 +1038,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1038
1038
|
|
|
1039
1039
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1040
1040
|
// ES5引入方式
|
|
1041
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1041
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1042
1042
|
// ES6引入方式
|
|
1043
1043
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1044
1044
|
let BaseServer = new BaseServer({
|
|
@@ -1148,8 +1148,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1148
1148
|
|
|
1149
1149
|
<pre class="prettyprint"><code>//设置token值
|
|
1150
1150
|
// ES5引入方式
|
|
1151
|
-
const { BaseServer } =
|
|
1152
|
-
const { TokenAttachType } =
|
|
1151
|
+
const { BaseServer } = zondy.service
|
|
1152
|
+
const { TokenAttachType } = zondy.enum
|
|
1153
1153
|
// ES6引入方式
|
|
1154
1154
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1155
1155
|
let BaseServer = new BaseServer({
|
|
@@ -1250,7 +1250,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1250
1250
|
|
|
1251
1251
|
<pre class="prettyprint"><code>//设置token名
|
|
1252
1252
|
// ES5引入方式
|
|
1253
|
-
const { BaseServer } =
|
|
1253
|
+
const { BaseServer } = zondy.service
|
|
1254
1254
|
// ES6引入方式
|
|
1255
1255
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1256
1256
|
let BaseServer = new BaseServer({
|
|
@@ -1347,7 +1347,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1347
1347
|
|
|
1348
1348
|
<pre class="prettyprint"><code>//设置token值
|
|
1349
1349
|
// ES5引入方式
|
|
1350
|
-
const { BaseServer } =
|
|
1350
|
+
const { BaseServer } = zondy.service
|
|
1351
1351
|
// ES6引入方式
|
|
1352
1352
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1353
1353
|
let BaseServer = new BaseServer({
|
|
@@ -1444,7 +1444,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1444
1444
|
|
|
1445
1445
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1446
1446
|
// ES5引入方式
|
|
1447
|
-
const { BaseServer } =
|
|
1447
|
+
const { BaseServer } = zondy.service
|
|
1448
1448
|
// ES6引入方式
|
|
1449
1449
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1450
1450
|
let BaseServer = new BaseServer({
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
|
|
551
551
|
</code>
|
|
552
552
|
</td>
|
|
553
|
-
<td class="name"><code><p
|
|
553
|
+
<td class="name"><code><p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p></code></td>
|
|
554
554
|
</tr>
|
|
555
555
|
|
|
556
556
|
<tr class="deep-level-0">
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
|
|
569
569
|
</code>
|
|
570
570
|
</td>
|
|
571
|
-
<td class="name"><code><p
|
|
571
|
+
<td class="name"><code><p>当前图层对象上不支持的属性,二次开发用户希望挂在图层对像上的属性可以存储到该属性中</p></code></td>
|
|
572
572
|
</tr>
|
|
573
573
|
|
|
574
574
|
<tr class="deep-level-0">
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
|
|
615
615
|
<span class="param-type">
|
|
616
616
|
|
|
617
|
-
|
|
617
|
+
<a link="FetchMethod.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="FetchMethod" global.html#FetchMethod>FetchMethod</a>
|
|
618
618
|
|
|
619
619
|
</span>
|
|
620
620
|
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
|
|
785
785
|
</code>
|
|
786
786
|
</td>
|
|
787
|
-
<td class="name"><code><p>图层透明度,0到1之间的值,0为完全透明,1
|
|
787
|
+
<td class="name"><code><p>图层透明度,0到1之间的值,0为完全透明,1为不透明,会触发图层更新完毕事件。IGSSceneLayer图层类型为地形时,不支持该属性。</p></code></td>
|
|
788
788
|
</tr>
|
|
789
789
|
|
|
790
790
|
<tr class="deep-level-0">
|
|
@@ -931,6 +931,24 @@
|
|
|
931
931
|
<td class="name"><code><p>图层名称</p></code></td>
|
|
932
932
|
</tr>
|
|
933
933
|
|
|
934
|
+
<tr class="deep-level-0">
|
|
935
|
+
<td class="name"><code><a href="#tokenAttachType">tokenAttachType</a></code></td>
|
|
936
|
+
<td class="name">
|
|
937
|
+
<code>
|
|
938
|
+
|
|
939
|
+
<span class="param-type">
|
|
940
|
+
|
|
941
|
+
String
|
|
942
|
+
|
|
943
|
+
</span>
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
</code>
|
|
948
|
+
</td>
|
|
949
|
+
<td class="name"><code><p>token附加类型。默认psot请求优先附加到body,get请求优先附加到url末尾</p></code></td>
|
|
950
|
+
</tr>
|
|
951
|
+
|
|
934
952
|
<tr class="deep-level-0">
|
|
935
953
|
<td class="name"><code><a href="#tokenKey">tokenKey</a></code></td>
|
|
936
954
|
<td class="name">
|
|
@@ -1201,7 +1219,7 @@
|
|
|
1201
1219
|
|
|
1202
1220
|
|
|
1203
1221
|
<div class="description">
|
|
1204
|
-
<p
|
|
1222
|
+
<p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p>
|
|
1205
1223
|
</div>
|
|
1206
1224
|
|
|
1207
1225
|
|
|
@@ -1238,6 +1256,11 @@
|
|
|
1238
1256
|
|
|
1239
1257
|
|
|
1240
1258
|
|
|
1259
|
+
<dt class="tag-default">Default Value:</dt>
|
|
1260
|
+
<dd class="tag-default"><ul class="dummy">
|
|
1261
|
+
<li>{}</li>
|
|
1262
|
+
</ul></dd>
|
|
1263
|
+
|
|
1241
1264
|
|
|
1242
1265
|
|
|
1243
1266
|
|
|
@@ -1281,7 +1304,7 @@
|
|
|
1281
1304
|
|
|
1282
1305
|
|
|
1283
1306
|
<div class="description">
|
|
1284
|
-
<p
|
|
1307
|
+
<p>当前图层对象上不支持的属性,二次开发用户希望挂在图层对像上的属性可以存储到该属性中</p>
|
|
1285
1308
|
</div>
|
|
1286
1309
|
|
|
1287
1310
|
|
|
@@ -1318,6 +1341,11 @@
|
|
|
1318
1341
|
|
|
1319
1342
|
|
|
1320
1343
|
|
|
1344
|
+
<dt class="tag-default">Default Value:</dt>
|
|
1345
|
+
<dd class="tag-default"><ul class="dummy">
|
|
1346
|
+
<li>{}</li>
|
|
1347
|
+
</ul></dd>
|
|
1348
|
+
|
|
1321
1349
|
|
|
1322
1350
|
|
|
1323
1351
|
|
|
@@ -1500,7 +1528,7 @@
|
|
|
1500
1528
|
|
|
1501
1529
|
<span class="param-type">
|
|
1502
1530
|
|
|
1503
|
-
|
|
1531
|
+
<a link="FetchMethod.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="FetchMethod" global.html#FetchMethod>FetchMethod</a>
|
|
1504
1532
|
|
|
1505
1533
|
</span>
|
|
1506
1534
|
|
|
@@ -2263,7 +2291,7 @@
|
|
|
2263
2291
|
|
|
2264
2292
|
|
|
2265
2293
|
<div class="description">
|
|
2266
|
-
<p>图层透明度,0到1之间的值,0为完全透明,1
|
|
2294
|
+
<p>图层透明度,0到1之间的值,0为完全透明,1为不透明,会触发图层更新完毕事件。IGSSceneLayer图层类型为地形时,不支持该属性。</p>
|
|
2267
2295
|
</div>
|
|
2268
2296
|
|
|
2269
2297
|
|
|
@@ -2911,6 +2939,86 @@
|
|
|
2911
2939
|
|
|
2912
2940
|
|
|
2913
2941
|
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
|
|
2946
|
+
|
|
2947
|
+
|
|
2948
|
+
</dl>
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
</div>
|
|
2955
|
+
|
|
2956
|
+
<div class="member">
|
|
2957
|
+
|
|
2958
|
+
<span class="method-parameter is-pulled-right">
|
|
2959
|
+
<label>类型:</label>
|
|
2960
|
+
|
|
2961
|
+
<span class="param-type">
|
|
2962
|
+
|
|
2963
|
+
String
|
|
2964
|
+
|
|
2965
|
+
</span>
|
|
2966
|
+
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
</span>
|
|
2970
|
+
|
|
2971
|
+
<h4 class="name" id="tokenAttachType">
|
|
2972
|
+
<a class="href-link" href="#tokenAttachType">#</a>
|
|
2973
|
+
|
|
2974
|
+
<span class="code-name">
|
|
2975
|
+
tokenAttachType
|
|
2976
|
+
</span>
|
|
2977
|
+
|
|
2978
|
+
</h4>
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
<div class="description">
|
|
2984
|
+
<p>token附加类型。默认psot请求优先附加到body,get请求优先附加到url末尾</p>
|
|
2985
|
+
</div>
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
|
|
2991
|
+
<dl class="details">
|
|
2992
|
+
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
|
|
2997
|
+
|
|
2998
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
2999
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
3000
|
+
<a goto="tokenAttachType" link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer#tokenAttachType" Layer.html#tokenAttachType>Layer#tokenAttachType</a>
|
|
3001
|
+
</li></ul></dd>
|
|
3002
|
+
|
|
3003
|
+
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
|
|
3009
|
+
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
|
|
3020
|
+
|
|
3021
|
+
|
|
2914
3022
|
|
|
2915
3023
|
|
|
2916
3024
|
|
|
@@ -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({
|