@mapgis/webclient-common 17.2.0 → 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 +11 -1
- 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/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/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 +46 -46
- package/documention/IGSMapImageSubLayer.html +3 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSTileLayer.html +10 -11
- package/documention/IGSVectorTileLayer.html +32 -29
- package/documention/IGSVectorTileSubLayer.html +5 -4
- 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 +2 -2
- 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/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/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- 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/VideoMapView.html +4 -4
- 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
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
|
|
809
809
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
810
810
|
// ES5引入方式
|
|
811
|
-
const { BaseServer } =
|
|
811
|
+
const { BaseServer } = zondy.service
|
|
812
812
|
// ES6引入方式
|
|
813
813
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
814
814
|
let BaseServer = new BaseServer({
|
|
@@ -904,7 +904,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
904
904
|
|
|
905
905
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
906
906
|
// ES5引入方式
|
|
907
|
-
const { BaseServer } =
|
|
907
|
+
const { BaseServer } = zondy.service
|
|
908
908
|
// ES6引入方式
|
|
909
909
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
910
910
|
let BaseServer = new BaseServer({
|
|
@@ -1001,7 +1001,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
1001
1001
|
|
|
1002
1002
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1003
1003
|
// ES5引入方式
|
|
1004
|
-
const { BaseServer,RequestInterceptor } =
|
|
1004
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
1005
1005
|
// ES6引入方式
|
|
1006
1006
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
1007
1007
|
let BaseServer = new BaseServer({
|
|
@@ -1105,7 +1105,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
1105
1105
|
<pre class="prettyprint"><code>//设置超时时间
|
|
1106
1106
|
//初始化AddressServer服务对象
|
|
1107
1107
|
// ES5引入方式
|
|
1108
|
-
const { BaseServer } =
|
|
1108
|
+
const { BaseServer } = zondy.service
|
|
1109
1109
|
// ES6引入方式
|
|
1110
1110
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1111
1111
|
let BaseServer = new BaseServer({
|
|
@@ -1197,7 +1197,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1197
1197
|
|
|
1198
1198
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1199
1199
|
// ES5引入方式
|
|
1200
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1200
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1201
1201
|
// ES6引入方式
|
|
1202
1202
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1203
1203
|
let BaseServer = new BaseServer({
|
|
@@ -1302,8 +1302,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1302
1302
|
|
|
1303
1303
|
<pre class="prettyprint"><code>//设置token值
|
|
1304
1304
|
// ES5引入方式
|
|
1305
|
-
const { BaseServer } =
|
|
1306
|
-
const { TokenAttachType } =
|
|
1305
|
+
const { BaseServer } = zondy.service
|
|
1306
|
+
const { TokenAttachType } = zondy.enum
|
|
1307
1307
|
// ES6引入方式
|
|
1308
1308
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1309
1309
|
let BaseServer = new BaseServer({
|
|
@@ -1399,7 +1399,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1399
1399
|
|
|
1400
1400
|
<pre class="prettyprint"><code>//设置token名
|
|
1401
1401
|
// ES5引入方式
|
|
1402
|
-
const { BaseServer } =
|
|
1402
|
+
const { BaseServer } = zondy.service
|
|
1403
1403
|
// ES6引入方式
|
|
1404
1404
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1405
1405
|
let BaseServer = new BaseServer({
|
|
@@ -1491,7 +1491,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1491
1491
|
|
|
1492
1492
|
<pre class="prettyprint"><code>//设置token值
|
|
1493
1493
|
// ES5引入方式
|
|
1494
|
-
const { BaseServer } =
|
|
1494
|
+
const { BaseServer } = zondy.service
|
|
1495
1495
|
// ES6引入方式
|
|
1496
1496
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1497
1497
|
let BaseServer = new BaseServer({
|
|
@@ -1583,7 +1583,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1583
1583
|
|
|
1584
1584
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1585
1585
|
// ES5引入方式
|
|
1586
|
-
const { BaseServer } =
|
|
1586
|
+
const { BaseServer } = zondy.service
|
|
1587
1587
|
// ES6引入方式
|
|
1588
1588
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1589
1589
|
let BaseServer = new BaseServer({
|
|
@@ -2566,7 +2566,7 @@
|
|
|
2566
2566
|
|
|
2567
2567
|
|
|
2568
2568
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2569
|
-
const { IGSSceneLayer } =
|
|
2569
|
+
const { IGSSceneLayer } = zondy.layer
|
|
2570
2570
|
// ES6引入方式
|
|
2571
2571
|
import { IGSSceneLayer } from "@mapgis/webclient-cesium-plugin"
|
|
2572
2572
|
// 添加一个场景图层
|
package/documention/Basemap.html
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>基础地图对象
|
|
39
39
|
<br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.Basemap() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { Map } from "@mapgis/webclient-common" <br/></p>
|
|
43
43
|
</div>
|
|
@@ -327,8 +327,8 @@ import { Map } from "@mapgis/webclient-common" <br/></p>
|
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
330
|
-
const { Map, Basemap, Collection } =
|
|
331
|
-
const { IGSTileLayer } =
|
|
330
|
+
const { Map, Basemap, Collection } = zondy
|
|
331
|
+
const { IGSTileLayer } = zondy.layer
|
|
332
332
|
// ES6引入方式
|
|
333
333
|
import { Map, Basemap, Collection, IGSTileLayer } from "@mapgis/webclient-common"
|
|
334
334
|
//创建Map对象
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
</td>
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
<td class="description last"><p
|
|
132
|
+
<td class="description last"><p>服务链接。igs服务的3dTiles服务地址或tileset静态服务地址</p></td>
|
|
133
133
|
</tr>
|
|
134
134
|
|
|
135
135
|
|
|
@@ -201,6 +201,33 @@
|
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
<h5>示例</h5>
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
<pre class="prettyprint"><code>// 使用igs服务的3dTiles服务地址
|
|
210
|
+
const cesium3DTilesCacheLayer = new Cesium3DTilesCacheLayer({
|
|
211
|
+
// 服务基地址
|
|
212
|
+
url: 'http://192.168.82.91:8089/igs/rest/services/Scene/大雁塔3DTilesServer/3DTilesServer',
|
|
213
|
+
// 初始化参数
|
|
214
|
+
extendOptions: {
|
|
215
|
+
// 开启自动跳转
|
|
216
|
+
autoReset: true
|
|
217
|
+
}
|
|
218
|
+
})
|
|
219
|
+
|
|
220
|
+
// 使用tileset静态服务地址
|
|
221
|
+
const cesium3DTilesCacheLayer = new Cesium3DTilesCacheLayer({
|
|
222
|
+
// 服务基地址
|
|
223
|
+
url: 'http://192.168.82.91:8200/3DData/ModelCache/3DTileset/1.0/OSGB-大雁塔_3dtiles_meshopt_ktx2/tileset.json',
|
|
224
|
+
// 初始化参数
|
|
225
|
+
extendOptions: {
|
|
226
|
+
// 开启自动跳转
|
|
227
|
+
autoReset: true
|
|
228
|
+
}
|
|
229
|
+
})</code></pre>
|
|
230
|
+
|
|
204
231
|
|
|
205
232
|
|
|
206
233
|
|
|
@@ -1679,11 +1706,9 @@
|
|
|
1679
1706
|
|
|
1680
1707
|
|
|
1681
1708
|
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
<dd class="tag-overrides"><ul class="dummy"><li>
|
|
1686
|
-
<a class="mapgis-link-name" title="Layer#loaded" Layer.html#loaded>Layer#loaded</a>
|
|
1709
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1710
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
1711
|
+
<a goto="loaded" link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer#loaded" Layer.html#loaded>Layer#loaded</a>
|
|
1687
1712
|
</li></ul></dd>
|
|
1688
1713
|
|
|
1689
1714
|
|
|
@@ -1702,6 +1727,8 @@
|
|
|
1702
1727
|
|
|
1703
1728
|
|
|
1704
1729
|
|
|
1730
|
+
|
|
1731
|
+
|
|
1705
1732
|
<dt class="tag-default">Default Value:</dt>
|
|
1706
1733
|
<dd class="tag-default"><ul class="dummy">
|
|
1707
1734
|
<li>false</li>
|
|
@@ -1768,11 +1795,9 @@
|
|
|
1768
1795
|
|
|
1769
1796
|
|
|
1770
1797
|
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
<dd class="tag-overrides"><ul class="dummy"><li>
|
|
1775
|
-
<a class="mapgis-link-name" title="Layer#loadStatus" Layer.html#loadStatus>Layer#loadStatus</a>
|
|
1798
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1799
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
1800
|
+
<a goto="loadStatus" link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer#loadStatus" Layer.html#loadStatus>Layer#loadStatus</a>
|
|
1776
1801
|
</li></ul></dd>
|
|
1777
1802
|
|
|
1778
1803
|
|
|
@@ -1791,6 +1816,8 @@
|
|
|
1791
1816
|
|
|
1792
1817
|
|
|
1793
1818
|
|
|
1819
|
+
|
|
1820
|
+
|
|
1794
1821
|
<dt class="tag-default">Default Value:</dt>
|
|
1795
1822
|
<dd class="tag-default"><ul class="dummy">
|
|
1796
1823
|
<li>not-loaded</li>
|
|
@@ -3006,16 +3033,6 @@
|
|
|
3006
3033
|
<td class="name"><code><p>判断图层是否加载成功</p></code></td>
|
|
3007
3034
|
</tr>
|
|
3008
3035
|
|
|
3009
|
-
<tr class="deep-level-0">
|
|
3010
|
-
<td class="name"><code><a href="#load">load</a></code></td>
|
|
3011
|
-
<td class="name">
|
|
3012
|
-
<code>
|
|
3013
|
-
|
|
3014
|
-
</code>
|
|
3015
|
-
</td>
|
|
3016
|
-
<td class="name"><code><p>从igs获取图层信息的方法</p></code></td>
|
|
3017
|
-
</tr>
|
|
3018
|
-
|
|
3019
3036
|
<tr class="deep-level-0">
|
|
3020
3037
|
<td class="name"><code><a href="#refresh">refresh</a></code></td>
|
|
3021
3038
|
<td class="name">
|
|
@@ -3418,97 +3435,6 @@
|
|
|
3418
3435
|
|
|
3419
3436
|
|
|
3420
3437
|
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
</div>
|
|
3425
|
-
|
|
3426
|
-
<div class="member">
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
<h4 class="name" id="load">
|
|
3431
|
-
<a class="href-link" href="#load">#</a>
|
|
3432
|
-
|
|
3433
|
-
<span class="code-name" id="load" style="font-size:30px">
|
|
3434
|
-
|
|
3435
|
-
load<span class="signature">()</span>
|
|
3436
|
-
|
|
3437
|
-
</span>
|
|
3438
|
-
</h4>
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
<div class="description">
|
|
3443
|
-
<p>从igs获取图层信息的方法</p>
|
|
3444
|
-
</div>
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
<dl class="details">
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
</dl>
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
3438
|
|
|
3513
3439
|
|
|
3514
3440
|
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
|
|
209
209
|
<pre class="prettyprint"><code>//初始化Cesium3DTilesServer服务对象
|
|
210
210
|
// ES5引入方式
|
|
211
|
-
const { Cesium3DTilesServer } =
|
|
211
|
+
const { Cesium3DTilesServer } = zondy.service
|
|
212
212
|
// ES6引入方式
|
|
213
213
|
import { Cesium3DTilesServer } from "@mapgis/webclient-common"
|
|
214
214
|
const cesium3DTilesServer = new Cesium3DTilesServer({
|
|
@@ -613,7 +613,7 @@ const cesium3DTilesServer = new Cesium3DTilesServer({
|
|
|
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({
|
package/documention/Circle.html
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>几何圆,参考示例:<a href='#Circle'>[几何圆对象]</a>
|
|
39
39
|
<br><br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.geometry.Circle() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { Circle } from "@mapgis/webclient-common" <br/>
|
|
43
43
|
<br/></p>
|
|
@@ -299,7 +299,7 @@ import { Circle } from "@mapgis/webclient-common" <br/>
|
|
|
299
299
|
|
|
300
300
|
<td class="default">
|
|
301
301
|
|
|
302
|
-
new
|
|
302
|
+
new zondy.SpatialReference('EPSG:4326')
|
|
303
303
|
|
|
304
304
|
</td>
|
|
305
305
|
|
|
@@ -393,7 +393,7 @@ import { Circle } from "@mapgis/webclient-common" <br/>
|
|
|
393
393
|
|
|
394
394
|
|
|
395
395
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
396
|
-
const { Circle } =
|
|
396
|
+
const { Circle } = zondy.geometry
|
|
397
397
|
// ES6引入方式
|
|
398
398
|
import { Circle } from "@mapgis/webclient-common"
|
|
399
399
|
new Circle({
|
|
@@ -408,8 +408,8 @@ new Circle({
|
|
|
408
408
|
|
|
409
409
|
|
|
410
410
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
411
|
-
const { Circle } =
|
|
412
|
-
const { SpatialReference } =
|
|
411
|
+
const { Circle } = zondy.geometry
|
|
412
|
+
const { SpatialReference } = zondy
|
|
413
413
|
// ES6引入方式
|
|
414
414
|
import { Circle, SpatialReference } from "@mapgis/webclient-common"
|
|
415
415
|
new Circle({
|
|
@@ -1657,7 +1657,7 @@ new Circle({
|
|
|
1657
1657
|
|
|
1658
1658
|
|
|
1659
1659
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1660
|
-
const { Circle } =
|
|
1660
|
+
const { Circle } = zondy.geometry
|
|
1661
1661
|
// ES6引入方式
|
|
1662
1662
|
import { Circle } from "@mapgis/webclient-common"
|
|
1663
1663
|
const json = {
|
|
@@ -2704,7 +2704,7 @@ const circle = Circle.fromJSON(json)</code></pre>
|
|
|
2704
2704
|
|
|
2705
2705
|
|
|
2706
2706
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2707
|
-
const { Circle } =
|
|
2707
|
+
const { Circle } = zondy.geometry
|
|
2708
2708
|
// ES6引入方式
|
|
2709
2709
|
import { Circle } from "@mapgis/webclient-common"
|
|
2710
2710
|
const circle = new Circle({
|
|
@@ -391,9 +391,9 @@
|
|
|
391
391
|
|
|
392
392
|
|
|
393
393
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
394
|
-
const { ClassBreakRenderer } =
|
|
395
|
-
const { SimpleMarkerSymbol, SimpleLineSymbol } =
|
|
396
|
-
const { Color } =
|
|
394
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
395
|
+
const { SimpleMarkerSymbol, SimpleLineSymbol } = zondy.symbol
|
|
396
|
+
const { Color } = zondy
|
|
397
397
|
// ES6引入方式
|
|
398
398
|
import { ClassBreakRenderer, SimpleMarkerSymbol, SimpleLineSymbol, Color } from "@mapgis/webclient-common"
|
|
399
399
|
// 创建分段专题图渲染样式对象
|
|
@@ -449,9 +449,9 @@ const classBreakRenderer = new ClassBreakRenderer({
|
|
|
449
449
|
|
|
450
450
|
|
|
451
451
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
452
|
-
const { ClassBreakRenderer } =
|
|
453
|
-
const { SimpleLineSymbol } =
|
|
454
|
-
const { Color } =
|
|
452
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
453
|
+
const { SimpleLineSymbol } = zondy.symbol
|
|
454
|
+
const { Color } = zondy
|
|
455
455
|
// ES6引入方式
|
|
456
456
|
import { ClassBreakRenderer, SimpleLineSymbol, Color } from "@mapgis/webclient-common"
|
|
457
457
|
// 创建分段专题图渲染样式对象
|
|
@@ -493,9 +493,9 @@ const classBreakRenderer = new ClassBreakRenderer({
|
|
|
493
493
|
|
|
494
494
|
|
|
495
495
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
496
|
-
const { ClassBreakRenderer } =
|
|
497
|
-
const { SimpleFillSymbol, SimpleLineSymbol } =
|
|
498
|
-
const { Color } =
|
|
496
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
497
|
+
const { SimpleFillSymbol, SimpleLineSymbol } = zondy.symbol
|
|
498
|
+
const { Color } = zondy
|
|
499
499
|
// ES6引入方式
|
|
500
500
|
import { ClassBreakRenderer, SimpleFillSymbol, SimpleLineSymbol, Color } from "@mapgis/webclient-common"
|
|
501
501
|
// 创建分段专题图渲染样式对象
|
|
@@ -547,9 +547,9 @@ const classBreakRenderer = new ClassBreakRenderer({
|
|
|
547
547
|
|
|
548
548
|
|
|
549
549
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
550
|
-
const { SimpleMarkerSymbol, SimpleLineSymbol } =
|
|
551
|
-
const { Color } =
|
|
552
|
-
const { ClassBreakRenderer } =
|
|
550
|
+
const { SimpleMarkerSymbol, SimpleLineSymbol } = zondy.symbol
|
|
551
|
+
const { Color } = zondy
|
|
552
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
553
553
|
// ES6引入方式
|
|
554
554
|
import { SimpleMarkerSymbol, SimpleLineSymbol, Color, ClassBreakRenderer } from "@mapgis/webclient-common"
|
|
555
555
|
// 初始化默认样式,更多样式详见:<a class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html><code>《SimpleMarkerSymbol》</code></a>
|
|
@@ -581,9 +581,9 @@ const renderer = new ClassBreakRenderer({
|
|
|
581
581
|
|
|
582
582
|
|
|
583
583
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
584
|
-
const { SimpleLineSymbol, SimpleMarkerSymbol } =
|
|
585
|
-
const { Color } =
|
|
586
|
-
const { ClassBreakRenderer } =
|
|
584
|
+
const { SimpleLineSymbol, SimpleMarkerSymbol } = zondy.symbol
|
|
585
|
+
const { Color } = zondy
|
|
586
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
587
587
|
// ES6引入方式
|
|
588
588
|
import { SimpleLineSymbol, SimpleMarkerSymbol, Color, ClassBreakRenderer } from "@mapgis/webclient-common"
|
|
589
589
|
// 初始化默认样式,更多样式详见:<a class="mapgis-link-name" title="SimpleLineSymbol" SimpleLineSymbol.html><code>《SimpleLineSymbol》</code></a>
|
|
@@ -608,9 +608,9 @@ const renderer = new ClassBreakRenderer({
|
|
|
608
608
|
|
|
609
609
|
|
|
610
610
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
611
|
-
const { SimpleFillSymbol, SimpleLineSymbol } =
|
|
612
|
-
const { Color } =
|
|
613
|
-
const { ClassBreakRenderer } =
|
|
611
|
+
const { SimpleFillSymbol, SimpleLineSymbol } = zondy.symbol
|
|
612
|
+
const { Color } = zondy
|
|
613
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
614
614
|
// ES6引入方式
|
|
615
615
|
import { SimpleFillSymbol, SimpleLineSymbol, Color, ClassBreakRenderer } from "@mapgis/webclient-common"
|
|
616
616
|
// 初始化默认样式,更多样式详见:<a class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html><code>《SimpleFillSymbol》</code></a>
|
|
@@ -608,8 +608,8 @@
|
|
|
608
608
|
|
|
609
609
|
|
|
610
610
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
611
|
-
const { ClusterRenderer } =
|
|
612
|
-
const { TextSymbol, SimpleMarkerSymbol } =
|
|
611
|
+
const { ClusterRenderer } = zondy.renderer
|
|
612
|
+
const { TextSymbol, SimpleMarkerSymbol } = zondy.symbol
|
|
613
613
|
// ES6引入方式
|
|
614
614
|
import { ClusterRenderer, TextSymbol, SimpleMarkerSymbol } from "@mapgis/webclient-common"
|
|
615
615
|
// 初始化聚类渲染器对象
|
package/documention/Config.html
CHANGED
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
|
|
314
314
|
|
|
315
315
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
316
|
-
const { Config } =
|
|
316
|
+
const { Config } = zondy.service
|
|
317
317
|
// ES6引入方式
|
|
318
318
|
import { Config } from "@mapgis/webclient-common
|
|
319
319
|
// 设置token名,如果不设置就默认维token
|
|
@@ -326,7 +326,7 @@ Config.tokenValue = '新token值'</code></pre>
|
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
329
|
-
const { Config } =
|
|
329
|
+
const { Config } = zondy.service
|
|
330
330
|
// ES6引入方式
|
|
331
331
|
import { Config } from "@mapgis/webclient-common
|
|
332
332
|
// 设置请求头,设置后,所有由基础库发出的链接都会带有该请求头
|
|
@@ -339,7 +339,7 @@ Config.headers = {
|
|
|
339
339
|
|
|
340
340
|
|
|
341
341
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
342
|
-
const { Config } =
|
|
342
|
+
const { Config } = zondy.service
|
|
343
343
|
// ES6引入方式
|
|
344
344
|
import { Config } from "@mapgis/webclient-common
|
|
345
345
|
// 当urls为''或undefined或者空数组时,设置的拦截器会应用到所有发送的请求上
|
|
@@ -363,7 +363,7 @@ Config.request.interceptors.push({
|
|
|
363
363
|
|
|
364
364
|
|
|
365
365
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
366
|
-
const { Config } =
|
|
366
|
+
const { Config } = zondy.service
|
|
367
367
|
// ES6引入方式
|
|
368
368
|
import { Config } from "@mapgis/webclient-common
|
|
369
369
|
// 指定要拦截的url
|