@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
|
@@ -386,8 +386,8 @@ ColorMaterial: 纯色材质,当图标的资源是网络图片时,指的是
|
|
|
386
386
|
|
|
387
387
|
|
|
388
388
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
389
|
-
const { Color } =
|
|
390
|
-
const { IconSymbol3DLayer, IconResource } =
|
|
389
|
+
const { Color } = zondy
|
|
390
|
+
const { IconSymbol3DLayer, IconResource } = zondy.symbol
|
|
391
391
|
// ES6引入方式
|
|
392
392
|
import { IconSymbol3DLayer, IconResource, Color } from "@mapgis/webclient-common"
|
|
393
393
|
|
|
@@ -406,8 +406,8 @@ const iconSymbol3DLayer = new IconSymbol3DLayer({
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
409
|
-
const { Color } =
|
|
410
|
-
const { IconSymbol3DLayer, IconResource } =
|
|
409
|
+
const { Color } = zondy
|
|
410
|
+
const { IconSymbol3DLayer, IconResource } = zondy.symbol
|
|
411
411
|
// ES6引入方式
|
|
412
412
|
import { IconSymbol3DLayer, IconResource, Color } from "@mapgis/webclient-common"
|
|
413
413
|
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
|
|
209
209
|
<pre class="prettyprint"><code>//初始化ImageServer服务对象
|
|
210
210
|
// ES5引入方式
|
|
211
|
-
const { ImageServer } =
|
|
211
|
+
const { ImageServer } = zondy.service
|
|
212
212
|
// ES6引入方式
|
|
213
213
|
import { ImageServer } from "@mapgis/webclient-common"
|
|
214
214
|
const imageServer = new ImageServer({
|
|
@@ -613,7 +613,7 @@ const imageServer = new ImageServer({
|
|
|
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({
|
|
@@ -796,13 +796,13 @@
|
|
|
796
796
|
<p class="code-caption"><h7 id='new-LabelClass'>初始化注记样式</h7></p>
|
|
797
797
|
|
|
798
798
|
|
|
799
|
-
<pre class="prettyprint"><code>const labelClass = new
|
|
799
|
+
<pre class="prettyprint"><code>const labelClass = new zondy.LabelClass({
|
|
800
800
|
// 指定文本符号样式
|
|
801
|
-
symbol: new
|
|
801
|
+
symbol: new zondy.symbol.TextSymbol({
|
|
802
802
|
// 文字颜色
|
|
803
803
|
color: new Color(252, 100, 22, 1),
|
|
804
804
|
// 文字样式
|
|
805
|
-
font: new
|
|
805
|
+
font: new zondy.symbol.Font({
|
|
806
806
|
// 字体
|
|
807
807
|
family: "微软雅黑",
|
|
808
808
|
// 文字大小,单位像素
|
|
@@ -260,8 +260,8 @@
|
|
|
260
260
|
|
|
261
261
|
|
|
262
262
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
263
|
-
const { Color } =
|
|
264
|
-
const { LabelSymbol3D, TextSymbol3DLayer } =
|
|
263
|
+
const { Color } = zondy
|
|
264
|
+
const { LabelSymbol3D, TextSymbol3DLayer } = zondy.symbol
|
|
265
265
|
// ES6引入方式
|
|
266
266
|
import { LabelSymbol3D, TextSymbol3DLayer, Color } from "@mapgis/webclient-common"
|
|
267
267
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>线几何对象
|
|
39
39
|
<br><br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.geometry.LineString() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { LineString } from "@mapgis/webclient-common" <br/>
|
|
43
43
|
<br/></p>
|
|
@@ -162,7 +162,7 @@ import { LineString } from "@mapgis/webclient-common" <br/>
|
|
|
162
162
|
|
|
163
163
|
<td class="default">
|
|
164
164
|
|
|
165
|
-
new
|
|
165
|
+
new zondy.SpatialReference('EPSG:4326')
|
|
166
166
|
|
|
167
167
|
</td>
|
|
168
168
|
|
|
@@ -261,7 +261,7 @@ import { LineString } from "@mapgis/webclient-common" <br/>
|
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
264
|
-
const { LineString } =
|
|
264
|
+
const { LineString } = zondy.geometry
|
|
265
265
|
// ES6引入方式
|
|
266
266
|
import { LineString } from "@mapgis/webclient-common"
|
|
267
267
|
new LineString({
|
|
@@ -277,8 +277,8 @@ new LineString({
|
|
|
277
277
|
|
|
278
278
|
|
|
279
279
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
280
|
-
const { LineString } =
|
|
281
|
-
const { SpatialReference } =
|
|
280
|
+
const { LineString } = zondy.geometry
|
|
281
|
+
const { SpatialReference } = zondy
|
|
282
282
|
// ES6引入方式
|
|
283
283
|
import { LineString, SpatialReference } from "@mapgis/webclient-common"
|
|
284
284
|
new LineString({
|
|
@@ -1449,7 +1449,7 @@ new LineString({
|
|
|
1449
1449
|
|
|
1450
1450
|
|
|
1451
1451
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1452
|
-
const { LineString } =
|
|
1452
|
+
const { LineString } = zondy.geometry
|
|
1453
1453
|
// ES6引入方式
|
|
1454
1454
|
import { LineString } from "@mapgis/webclient-common"
|
|
1455
1455
|
const json = {
|
|
@@ -2166,7 +2166,7 @@ const line = LineString.fromJSON(json)</code></pre>
|
|
|
2166
2166
|
|
|
2167
2167
|
|
|
2168
2168
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2169
|
-
const { LineString } =
|
|
2169
|
+
const { LineString } = zondy.geometry
|
|
2170
2170
|
// ES6引入方式
|
|
2171
2171
|
import { LineString } from "@mapgis/webclient-common"
|
|
2172
2172
|
const lineString = new LineString({
|
|
@@ -2523,7 +2523,7 @@ const point = lineString.getPoint(0)</code></pre>
|
|
|
2523
2523
|
|
|
2524
2524
|
|
|
2525
2525
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2526
|
-
const { LineString } =
|
|
2526
|
+
const { LineString } = zondy.geometry
|
|
2527
2527
|
// ES6引入方式
|
|
2528
2528
|
import { LineString } from "@mapgis/webclient-common"
|
|
2529
2529
|
const lineString = new LineString({
|
|
@@ -3404,7 +3404,7 @@ view.on({
|
|
|
3404
3404
|
|
|
3405
3405
|
|
|
3406
3406
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3407
|
-
const { LineString } =
|
|
3407
|
+
const { LineString } = zondy.geometry
|
|
3408
3408
|
// ES6引入方式
|
|
3409
3409
|
import { LineString } from "@mapgis/webclient-common"
|
|
3410
3410
|
const lineString = new LineString({
|
|
@@ -3635,7 +3635,7 @@ lineString.removePoint(0)</code></pre>
|
|
|
3635
3635
|
|
|
3636
3636
|
|
|
3637
3637
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3638
|
-
const { LineString } =
|
|
3638
|
+
const { LineString } = zondy.geometry
|
|
3639
3639
|
// ES6引入方式
|
|
3640
3640
|
import { LineString } from "@mapgis/webclient-common"
|
|
3641
3641
|
const lineString = new LineString({
|
|
@@ -206,8 +206,8 @@
|
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
209
|
-
const { Color } =
|
|
210
|
-
const { LineSymbol3D, ColorMaterial } =
|
|
209
|
+
const { Color } = zondy
|
|
210
|
+
const { LineSymbol3D, ColorMaterial } = zondy.symbol
|
|
211
211
|
// ES6引入方式
|
|
212
212
|
import { LineSymbol3D, ColorMaterial, Color} from "@mapgis/webclient-common"
|
|
213
213
|
|
|
@@ -382,8 +382,8 @@ ColorMaterial: 纯色材质,通过设置纯色材质来改变线的颜色</p><
|
|
|
382
382
|
|
|
383
383
|
|
|
384
384
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
385
|
-
const { LineCapType, LineJoinType } =
|
|
386
|
-
const { LineStyleMarker3D, ColorMaterial, LineStylePattern3D } =
|
|
385
|
+
const { LineCapType, LineJoinType } = zondy.enum
|
|
386
|
+
const { LineStyleMarker3D, ColorMaterial, LineStylePattern3D } = zondy.symbol
|
|
387
387
|
// ES6引入方式
|
|
388
388
|
import { LineCapType, LineJoinType, LineStyleMarker3D, ColorMaterial, LineStylePattern3D } from "@mapgis/webclient-common"
|
|
389
389
|
|
|
@@ -242,7 +242,7 @@ M3D服务基地址格式(IGS2.0):http://{ip}:{port}/igs/rest/services/{服务
|
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
245
|
-
const { M3DModelCacheLayer } =
|
|
245
|
+
const { M3DModelCacheLayer } = zondy.layer
|
|
246
246
|
// ES6引入方式
|
|
247
247
|
import { M3DModelCacheLayer } from "@mapgis/webclient-common"
|
|
248
248
|
const layer = new M3DModelCacheLayer({
|
|
@@ -260,10 +260,10 @@ const layer = new M3DModelCacheLayer({
|
|
|
260
260
|
|
|
261
261
|
|
|
262
262
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
263
|
-
const { M3DModelCacheLayer } =
|
|
264
|
-
const { UniqueValueRenderer } =
|
|
265
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
266
|
-
const { Color } =
|
|
263
|
+
const { M3DModelCacheLayer } = zondy.layer
|
|
264
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
265
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
266
|
+
const { Color } = zondy
|
|
267
267
|
// ES6引入方式
|
|
268
268
|
import { M3DModelCacheLayer,UniqueValueRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
269
269
|
// 构造单值渲染器
|
|
@@ -312,10 +312,10 @@ const layer = new M3DModelCacheLayer({
|
|
|
312
312
|
|
|
313
313
|
|
|
314
314
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
315
|
-
const { M3DModelCacheLayer } =
|
|
316
|
-
const { ClassBreakRenderer } =
|
|
317
|
-
const { SimpleFillSymbol } =
|
|
318
|
-
const { Color } =
|
|
315
|
+
const { M3DModelCacheLayer } = zondy.layer
|
|
316
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
317
|
+
const { SimpleFillSymbol } = zondy.symbol
|
|
318
|
+
const { Color } = zondy
|
|
319
319
|
// ES6引入方式
|
|
320
320
|
import { M3DModelCacheLayer,ClassBreakRenderer,SimpleFillSymbol,Color } from "@mapgis/webclient-common"
|
|
321
321
|
// 构造分段渲染器
|
|
@@ -368,7 +368,7 @@ const layer = new M3DModelCacheLayer({
|
|
|
368
368
|
|
|
369
369
|
|
|
370
370
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
371
|
-
const { M3DModelCacheLayer } =
|
|
371
|
+
const { M3DModelCacheLayer } = zondy.layer
|
|
372
372
|
// ES6引入方式
|
|
373
373
|
import { M3DModelCacheLayer } from "@mapgis/webclient-common"
|
|
374
374
|
// 构造Cesium原生渲染器
|
|
@@ -418,7 +418,7 @@ const layer = new M3DModelCacheLayer({
|
|
|
418
418
|
|
|
419
419
|
|
|
420
420
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
421
|
-
const { M3DModelCacheLayer } =
|
|
421
|
+
const { M3DModelCacheLayer } = zondy.layer
|
|
422
422
|
// ES6引入方式
|
|
423
423
|
import { M3DModelCacheLayer } from "@mapgis/webclient-common"
|
|
424
424
|
// 构造Cesium原生渲染器
|
|
@@ -4270,7 +4270,7 @@ const layer = new M3DModelCacheLayer({
|
|
|
4270
4270
|
|
|
4271
4271
|
|
|
4272
4272
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4273
|
-
const { M3DModelCacheLayer } =
|
|
4273
|
+
const { M3DModelCacheLayer } = zondy.layer
|
|
4274
4274
|
// ES6引入方式
|
|
4275
4275
|
import { M3DModelCacheLayer } from "@mapgis/webclient-common"
|
|
4276
4276
|
// 初始化图层
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
|
|
209
209
|
<pre class="prettyprint"><code>//初始化M3DServer服务对象
|
|
210
210
|
// ES5引入方式
|
|
211
|
-
const { M3DServer } =
|
|
211
|
+
const { M3DServer } = zondy.service
|
|
212
212
|
// ES6引入方式
|
|
213
213
|
import { M3DServer } from "@mapgis/webclient-common"
|
|
214
214
|
const m3dServer = new M3DServer({
|
|
@@ -613,7 +613,7 @@ import { M3DServer } 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({
|
package/documention/Map.html
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>图层管理容器,和地图引擎无关,通过此对象而不是地图引擎来对图层进行管理
|
|
39
39
|
<br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.Map() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { Map } from "@mapgis/webclient-common" <br/></p>
|
|
43
43
|
</div>
|
|
@@ -261,7 +261,7 @@ import { Map } from "@mapgis/webclient-common" <br/></p>
|
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
264
|
-
const { Map } =
|
|
264
|
+
const { Map } = zondy
|
|
265
265
|
// ES6引入方式
|
|
266
266
|
import { Map } from "@mapgis/webclient-common"
|
|
267
267
|
//创建Map对象
|
|
@@ -272,8 +272,8 @@ let map = new Map();</code></pre>
|
|
|
272
272
|
|
|
273
273
|
|
|
274
274
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
275
|
-
const { Map, Basemap, Collection } =
|
|
276
|
-
const { IGSTileLayer } =
|
|
275
|
+
const { Map, Basemap, Collection } = zondy
|
|
276
|
+
const { IGSTileLayer } = zondy.layer
|
|
277
277
|
// ES6引入方式
|
|
278
278
|
import { Map, Basemap, Collection, IGSTileLayer } from "@mapgis/webclient-common"
|
|
279
279
|
//创建Map对象
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>文本符号,支持点几何对象,参考示例:<a href='#new-MapGISTextSymbol'>[创建文本样式]</a>
|
|
39
39
|
<br><br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.symbol.MapGISTextSymbol() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { MapGISTextSymbol } from "@mapgis/webclient-common" <br/>
|
|
43
43
|
<br/></p>
|
|
@@ -707,8 +707,8 @@ import { MapGISTextSymbol } from "@mapgis/webclient-common" <br/>
|
|
|
707
707
|
|
|
708
708
|
|
|
709
709
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
710
|
-
const { MapGISTextSymbol } =
|
|
711
|
-
const { MapGISTextSymbol, Color } =
|
|
710
|
+
const { MapGISTextSymbol } = zondy.symbol
|
|
711
|
+
const { MapGISTextSymbol, Color } = zondy
|
|
712
712
|
// ES6引入方式
|
|
713
713
|
import { MapGISTextSymbol, Color } from "@mapgis/webclient-common"
|
|
714
714
|
const textSymbol = new MapGISTextSymbol({
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
|
|
167
167
|
<pre class="prettyprint"><code>//初始化MapServer服务对象
|
|
168
168
|
// ES5引入方式
|
|
169
|
-
const { MapServer } =
|
|
169
|
+
const { MapServer } = zondy.service
|
|
170
170
|
// ES6引入方式
|
|
171
171
|
import { MapServer } from "@mapgis/webclient-common"
|
|
172
172
|
const mapServer = new MapServer({
|
|
@@ -571,7 +571,7 @@ const mapServer = new MapServer({
|
|
|
571
571
|
|
|
572
572
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
573
573
|
// ES5引入方式
|
|
574
|
-
const { BaseServer } =
|
|
574
|
+
const { BaseServer } = zondy.service
|
|
575
575
|
// ES6引入方式
|
|
576
576
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
577
577
|
let BaseServer = new BaseServer({
|
|
@@ -672,7 +672,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
672
672
|
|
|
673
673
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
674
674
|
// ES5引入方式
|
|
675
|
-
const { BaseServer } =
|
|
675
|
+
const { BaseServer } = zondy.service
|
|
676
676
|
// ES6引入方式
|
|
677
677
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
678
678
|
let BaseServer = new BaseServer({
|
|
@@ -774,7 +774,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
774
774
|
|
|
775
775
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
776
776
|
// ES5引入方式
|
|
777
|
-
const { BaseServer,RequestInterceptor } =
|
|
777
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
778
778
|
// ES6引入方式
|
|
779
779
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
780
780
|
let BaseServer = new BaseServer({
|
|
@@ -883,7 +883,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
883
883
|
<pre class="prettyprint"><code>//设置超时时间
|
|
884
884
|
//初始化AddressServer服务对象
|
|
885
885
|
// ES5引入方式
|
|
886
|
-
const { BaseServer } =
|
|
886
|
+
const { BaseServer } = zondy.service
|
|
887
887
|
// ES6引入方式
|
|
888
888
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
889
889
|
let BaseServer = new BaseServer({
|
|
@@ -980,7 +980,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
980
980
|
|
|
981
981
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
982
982
|
// ES5引入方式
|
|
983
|
-
const { BaseServer,ResponseInterceptor } =
|
|
983
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
984
984
|
// ES6引入方式
|
|
985
985
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
986
986
|
let BaseServer = new BaseServer({
|
|
@@ -1090,8 +1090,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1090
1090
|
|
|
1091
1091
|
<pre class="prettyprint"><code>//设置token值
|
|
1092
1092
|
// ES5引入方式
|
|
1093
|
-
const { BaseServer } =
|
|
1094
|
-
const { TokenAttachType } =
|
|
1093
|
+
const { BaseServer } = zondy.service
|
|
1094
|
+
const { TokenAttachType } = zondy.enum
|
|
1095
1095
|
// ES6引入方式
|
|
1096
1096
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1097
1097
|
let BaseServer = new BaseServer({
|
|
@@ -1192,7 +1192,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1192
1192
|
|
|
1193
1193
|
<pre class="prettyprint"><code>//设置token名
|
|
1194
1194
|
// ES5引入方式
|
|
1195
|
-
const { BaseServer } =
|
|
1195
|
+
const { BaseServer } = zondy.service
|
|
1196
1196
|
// ES6引入方式
|
|
1197
1197
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1198
1198
|
let BaseServer = new BaseServer({
|
|
@@ -1289,7 +1289,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1289
1289
|
|
|
1290
1290
|
<pre class="prettyprint"><code>//设置token值
|
|
1291
1291
|
// ES5引入方式
|
|
1292
|
-
const { BaseServer } =
|
|
1292
|
+
const { BaseServer } = zondy.service
|
|
1293
1293
|
// ES6引入方式
|
|
1294
1294
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1295
1295
|
let BaseServer = new BaseServer({
|
|
@@ -1386,7 +1386,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1386
1386
|
|
|
1387
1387
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1388
1388
|
// ES5引入方式
|
|
1389
|
-
const { BaseServer } =
|
|
1389
|
+
const { BaseServer } = zondy.service
|
|
1390
1390
|
// ES6引入方式
|
|
1391
1391
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1392
1392
|
let BaseServer = new BaseServer({
|
|
@@ -4194,7 +4194,7 @@ mapServer.getLegend({
|
|
|
4194
4194
|
<pre class="prettyprint"><code>//通过where语句进行查询
|
|
4195
4195
|
//回调方式
|
|
4196
4196
|
// ES5引入方式
|
|
4197
|
-
const { Point } =
|
|
4197
|
+
const { Point } = zondy.geometry
|
|
4198
4198
|
// ES6引入方式
|
|
4199
4199
|
import { Point } from "@mapgis/webclient-common"
|
|
4200
4200
|
mapServer.queryFeatures({
|
|
@@ -4835,8 +4835,8 @@ mapServer.queryFeatures({
|
|
|
4835
4835
|
|
|
4836
4836
|
<pre class="prettyprint"><code>//回调方式
|
|
4837
4837
|
// ES5引入方式
|
|
4838
|
-
const { Extent } =
|
|
4839
|
-
const { FetchMethod } =
|
|
4838
|
+
const { Extent } = zondy.geometry
|
|
4839
|
+
const { FetchMethod } = zondy.enum
|
|
4840
4840
|
// ES6引入方式
|
|
4841
4841
|
import { Extent,FetchMethod } from "@mapgis/webclient-common"
|
|
4842
4842
|
mapServer.queryFeaturesInLayers({
|
package/documention/MapView.html
CHANGED
|
@@ -2658,7 +2658,7 @@
|
|
|
2658
2658
|
|
|
2659
2659
|
|
|
2660
2660
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2661
|
-
const { IGSSceneLayer } =
|
|
2661
|
+
const { IGSSceneLayer } = zondy.layer
|
|
2662
2662
|
// ES6引入方式
|
|
2663
2663
|
import { IGSSceneLayer } from "@mapgis/webclient-cesium-plugin"
|
|
2664
2664
|
// 添加一个场景图层
|