@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
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
210
|
-
const { GeometryServer } =
|
|
210
|
+
const { GeometryServer } = zondy.service
|
|
211
211
|
// ES6引入方式
|
|
212
212
|
import { GeometryServer } from "@mapgis/webclient-common"
|
|
213
213
|
const geometryServer = new GeometryServer({
|
|
@@ -629,7 +629,7 @@ const geometryServer = new GeometryServer({
|
|
|
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({
|
|
@@ -1882,8 +1882,8 @@ BaseServer.url = '新URL';</code></pre>
|
|
|
1882
1882
|
|
|
1883
1883
|
<pre class="prettyprint"><code>// 回调方式
|
|
1884
1884
|
// ES5引入方式
|
|
1885
|
-
const { Polygon } =
|
|
1886
|
-
const { FetchMethod } =
|
|
1885
|
+
const { Polygon } = zondy.geometry
|
|
1886
|
+
const { FetchMethod } = zondy.enum
|
|
1887
1887
|
// ES6引入方式
|
|
1888
1888
|
import { Polygon, FetchMethod } from "@mapgis/webclient-common"
|
|
1889
1889
|
geometryServer.bufferAnalyse({
|
|
@@ -2428,7 +2428,7 @@ geometryServer.bufferAnalyse({
|
|
|
2428
2428
|
|
|
2429
2429
|
<pre class="prettyprint"><code>// 回调方式
|
|
2430
2430
|
// ES5引入方式
|
|
2431
|
-
const { Polygon } =
|
|
2431
|
+
const { Polygon } = zondy.geometry
|
|
2432
2432
|
// ES6引入方式
|
|
2433
2433
|
import { Polygon } from "@mapgis/webclient-common"
|
|
2434
2434
|
geometryServer.calculateAreasAndLengths({
|
|
@@ -2751,7 +2751,7 @@ geometryServer.calculateAreasAndLengths({
|
|
|
2751
2751
|
|
|
2752
2752
|
<pre class="prettyprint"><code>// 回调方式
|
|
2753
2753
|
// ES5引入方式
|
|
2754
|
-
const { Polygon } =
|
|
2754
|
+
const { Polygon } = zondy.geometry
|
|
2755
2755
|
// ES6引入方式
|
|
2756
2756
|
import { Polygon } from "@mapgis/webclient-common"
|
|
2757
2757
|
geometryServer.calculateDifference({
|
|
@@ -3096,12 +3096,12 @@ geometryServer.calculateDifference({
|
|
|
3096
3096
|
|
|
3097
3097
|
<pre class="prettyprint"><code>// 回调方式
|
|
3098
3098
|
// ES5引入方式
|
|
3099
|
-
const { Point,LineString } =
|
|
3100
|
-
const { FetchMethod } =
|
|
3099
|
+
const { Point,LineString } = zondy.geometry
|
|
3100
|
+
const { FetchMethod } = zondy.enum
|
|
3101
3101
|
// ES6引入方式
|
|
3102
3102
|
import { Point,LineString,FetchMethod } from "@mapgis/webclient-common"
|
|
3103
3103
|
geometryServer.calculateDistance({
|
|
3104
|
-
geometry1: new
|
|
3104
|
+
geometry1: new zondy.geometry.Point({
|
|
3105
3105
|
coordinates: [
|
|
3106
3106
|
105.380859375, 31.57853542647338
|
|
3107
3107
|
]
|
|
@@ -3414,8 +3414,8 @@ geometryServer.calculateDistance({
|
|
|
3414
3414
|
|
|
3415
3415
|
|
|
3416
3416
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3417
|
-
const { Polygon } =
|
|
3418
|
-
const { Polygon,FetchMethod } =
|
|
3417
|
+
const { Polygon } = zondy.geometry
|
|
3418
|
+
const { Polygon,FetchMethod } = zondy.enum
|
|
3419
3419
|
// ES6引入方式
|
|
3420
3420
|
import { Polygon,FetchMethod } from "@mapgis/webclient-common"
|
|
3421
3421
|
geometryServer.calculateIntersect({
|
|
@@ -3675,8 +3675,8 @@ geometryServer.calculateIntersect({
|
|
|
3675
3675
|
|
|
3676
3676
|
<pre class="prettyprint"><code>// 回调方式
|
|
3677
3677
|
// ES5引入方式
|
|
3678
|
-
const { Polygon } =
|
|
3679
|
-
const { Polygon,FetchMethod } =
|
|
3678
|
+
const { Polygon } = zondy.geometry
|
|
3679
|
+
const { Polygon,FetchMethod } = zondy.enum
|
|
3680
3680
|
// ES6引入方式
|
|
3681
3681
|
import { Polygon,FetchMethod } from "@mapgis/webclient-common"
|
|
3682
3682
|
geometryServer.calculateLabelPoints({
|
|
@@ -4208,8 +4208,8 @@ geometryServer.calculateLabelPoints({
|
|
|
4208
4208
|
|
|
4209
4209
|
<pre class="prettyprint"><code>// 回调方式
|
|
4210
4210
|
// ES5引入方式
|
|
4211
|
-
const { LineString } =
|
|
4212
|
-
const { FetchMethod } =
|
|
4211
|
+
const { LineString } = zondy.geometry
|
|
4212
|
+
const { FetchMethod } = zondy.enum
|
|
4213
4213
|
// ES6引入方式
|
|
4214
4214
|
import { LineString,FetchMethod } from "@mapgis/webclient-common"
|
|
4215
4215
|
geometryServer.calculateLengths({
|
|
@@ -4517,8 +4517,8 @@ geometryServer.calculateLengths({
|
|
|
4517
4517
|
|
|
4518
4518
|
<pre class="prettyprint"><code>// 回调方式
|
|
4519
4519
|
// ES5引入方式
|
|
4520
|
-
const { LineString,Polygon } =
|
|
4521
|
-
const { FetchMethod } =
|
|
4520
|
+
const { LineString,Polygon } = zondy.geometry
|
|
4521
|
+
const { FetchMethod } = zondy.enum
|
|
4522
4522
|
// ES6引入方式
|
|
4523
4523
|
import { LineString,Polygon,FetchMethod } from "@mapgis/webclient-common"
|
|
4524
4524
|
geometryServer.calculateTopologyRelation({
|
|
@@ -4832,8 +4832,8 @@ geometryServer.calculateTopologyRelation({
|
|
|
4832
4832
|
|
|
4833
4833
|
<pre class="prettyprint"><code>// 回调方式
|
|
4834
4834
|
// ES5引入方式
|
|
4835
|
-
const { Polygon } =
|
|
4836
|
-
const { FetchMethod } =
|
|
4835
|
+
const { Polygon } = zondy.geometry
|
|
4836
|
+
const { FetchMethod } = zondy.enum
|
|
4837
4837
|
// ES6引入方式
|
|
4838
4838
|
import { Polygon,FetchMethod } from "@mapgis/webclient-common"
|
|
4839
4839
|
geometryServer.calculateUnion({
|
|
@@ -5147,8 +5147,8 @@ geometryServer.calculateUnion({
|
|
|
5147
5147
|
|
|
5148
5148
|
<pre class="prettyprint"><code>// 回调方式
|
|
5149
5149
|
// ES5引入方式
|
|
5150
|
-
const { LineString } =
|
|
5151
|
-
const { FetchMethod } =
|
|
5150
|
+
const { LineString } = zondy.geometry
|
|
5151
|
+
const { FetchMethod } = zondy.enum
|
|
5152
5152
|
// ES6引入方式
|
|
5153
5153
|
import { Polygon,FetchMethod } from "@mapgis/webclient-common"
|
|
5154
5154
|
geometryServer.geometryProject({
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<p>图形图层,不支持在线数据,仅支持传入多个几何对象并绘制<br/>
|
|
39
39
|
目前二维和三维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,若是想要绘制非4326坐标系几何,需要在初始化要素对象的几何时,指定具体坐标系
|
|
40
40
|
<br><br>[ES5引入方式]:<br/>
|
|
41
|
-
|
|
41
|
+
zondy.layer.GraphicsLayer() <br/>
|
|
42
42
|
[ES6引入方式]:<br/>
|
|
43
43
|
import { GraphicsLayer } from "@mapgis/webclient-common" <br/>
|
|
44
44
|
<br/>
|
|
@@ -401,10 +401,10 @@ if(layer.loadStatus === 'loaded') {<br/>
|
|
|
401
401
|
|
|
402
402
|
|
|
403
403
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
404
|
-
const { Feature,Color} =
|
|
405
|
-
const { Circle } =
|
|
406
|
-
const { SimpleFillSymbol } =
|
|
407
|
-
const { GraphicsLayer } =
|
|
404
|
+
const { Feature,Color} = zondy
|
|
405
|
+
const { Circle } = zondy.geometry
|
|
406
|
+
const { SimpleFillSymbol } = zondy.symbol
|
|
407
|
+
const { GraphicsLayer } = zondy.layer
|
|
408
408
|
// ES6引入方式
|
|
409
409
|
import { Color,Feature,Circle, GraphicsLayer,SimpleFillSymbol} from "@mapgis/webclient-common"
|
|
410
410
|
// 创建一个要素
|
|
@@ -442,10 +442,10 @@ const graphicsLayer = new GraphicsLayer({
|
|
|
442
442
|
|
|
443
443
|
|
|
444
444
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
445
|
-
const { Feature,Color} =
|
|
446
|
-
const { Circle } =
|
|
447
|
-
const { SimpleFillSymbol } =
|
|
448
|
-
const { GraphicsLayer } =
|
|
445
|
+
const { Feature,Color} = zondy
|
|
446
|
+
const { Circle } = zondy.geometry
|
|
447
|
+
const { SimpleFillSymbol } = zondy.symbol
|
|
448
|
+
const { GraphicsLayer } = zondy.layer
|
|
449
449
|
// ES6引入方式
|
|
450
450
|
import { Feature,Color,Circle, GraphicsLayer,SimpleFillSymbol} from "@mapgis/webclient-common"
|
|
451
451
|
// 创建一个要素
|
|
@@ -477,10 +477,10 @@ graphicsLayer.add(feature)</code></pre>
|
|
|
477
477
|
|
|
478
478
|
|
|
479
479
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
480
|
-
const { Feature,SpatialReference,Color} =
|
|
481
|
-
const { Circle } =
|
|
482
|
-
const { SimpleFillSymbol } =
|
|
483
|
-
const { GraphicsLayer } =
|
|
480
|
+
const { Feature,SpatialReference,Color} = zondy
|
|
481
|
+
const { Circle } = zondy.geometry
|
|
482
|
+
const { SimpleFillSymbol } = zondy.symbol
|
|
483
|
+
const { GraphicsLayer } = zondy.layer
|
|
484
484
|
// ES6引入方式
|
|
485
485
|
import { Feature,SpatialReference,Color,Circle, GraphicsLayer,SimpleFillSymbol} from "@mapgis/webclient-common"
|
|
486
486
|
// 创建一个要素
|
|
@@ -512,7 +512,7 @@ graphicsLayer.add(feature)</code></pre>
|
|
|
512
512
|
|
|
513
513
|
|
|
514
514
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
515
|
-
const { GraphicsLayer } =
|
|
515
|
+
const { GraphicsLayer } = zondy.layer
|
|
516
516
|
// ES6引入方式
|
|
517
517
|
import { GraphicsLayer } from "@mapgis/webclient-common"
|
|
518
518
|
// 创建图层时设置可见性
|
|
@@ -529,7 +529,7 @@ graphicsLayer.visible = !graphicsLayer.visible</code></pre>
|
|
|
529
529
|
|
|
530
530
|
|
|
531
531
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
532
|
-
const { GraphicsLayer } =
|
|
532
|
+
const { GraphicsLayer } = zondy.layer
|
|
533
533
|
// ES6引入方式
|
|
534
534
|
import { GraphicsLayer } from "@mapgis/webclient-common"
|
|
535
535
|
// 创建图层时设置透明度
|
|
@@ -3221,9 +3221,9 @@ map.reorder(graphicsLayer, '要移动到的index');</code></pre>
|
|
|
3221
3221
|
|
|
3222
3222
|
|
|
3223
3223
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3224
|
-
const { Feature } =
|
|
3225
|
-
const { Circle } =
|
|
3226
|
-
const { GraphicsLayer } =
|
|
3224
|
+
const { Feature } = zondy
|
|
3225
|
+
const { Circle } = zondy.geometry
|
|
3226
|
+
const { GraphicsLayer } = zondy.layer
|
|
3227
3227
|
// ES6引入方式
|
|
3228
3228
|
import { Feature,Circle,GraphicsLayer } from "@mapgis/webclient-common"
|
|
3229
3229
|
// 创建一个要素
|
|
@@ -3556,9 +3556,9 @@ const graphicsLayer = new GraphicsLayer.fromJSON(json)</code></pre>
|
|
|
3556
3556
|
|
|
3557
3557
|
|
|
3558
3558
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3559
|
-
const { Feature } =
|
|
3560
|
-
const { Circle } =
|
|
3561
|
-
const { GraphicsLayer } =
|
|
3559
|
+
const { Feature } = zondy
|
|
3560
|
+
const { Circle } = zondy.geometry
|
|
3561
|
+
const { GraphicsLayer } = zondy.layer
|
|
3562
3562
|
// ES6引入方式
|
|
3563
3563
|
import { Feature,Circle,GraphicsLayer } from "@mapgis/webclient-common"
|
|
3564
3564
|
// 创建一个要素
|
|
@@ -4207,10 +4207,10 @@ graphicsLayer.addMany([feature1, feature2])</code></pre>
|
|
|
4207
4207
|
|
|
4208
4208
|
|
|
4209
4209
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4210
|
-
const { Feature,Color } =
|
|
4211
|
-
const { Circle } =
|
|
4212
|
-
const { GraphicsLayer } =
|
|
4213
|
-
const { SimpleFillSymbol } =
|
|
4210
|
+
const { Feature,Color } = zondy
|
|
4211
|
+
const { Circle } = zondy.geometry
|
|
4212
|
+
const { GraphicsLayer } = zondy.layer
|
|
4213
|
+
const { SimpleFillSymbol } = zondy.symbol
|
|
4214
4214
|
// ES6引入方式
|
|
4215
4215
|
import { Feature,Color,Circle,GraphicsLayer,SimpleFillSymbol } from "@mapgis/webclient-common"
|
|
4216
4216
|
// 创建一个要素
|
|
@@ -4338,9 +4338,9 @@ graphicsLayer.remove(feature)</code></pre>
|
|
|
4338
4338
|
|
|
4339
4339
|
|
|
4340
4340
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4341
|
-
const { Feature } =
|
|
4342
|
-
const { Circle } =
|
|
4343
|
-
const { GraphicsLayer } =
|
|
4341
|
+
const { Feature } = zondy
|
|
4342
|
+
const { Circle } = zondy.geometry
|
|
4343
|
+
const { GraphicsLayer } = zondy.layer
|
|
4344
4344
|
// ES6引入方式
|
|
4345
4345
|
import { Feature,Color,Circle,GraphicsLayer } from "@mapgis/webclient-common"
|
|
4346
4346
|
// 创建一个要素
|
|
@@ -4523,9 +4523,9 @@ graphicsLayer.removeAll()</code></pre>
|
|
|
4523
4523
|
|
|
4524
4524
|
|
|
4525
4525
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4526
|
-
const { Feature } =
|
|
4527
|
-
const { Circle } =
|
|
4528
|
-
const { GraphicsLayer } =
|
|
4526
|
+
const { Feature } = zondy
|
|
4527
|
+
const { Circle } = zondy.geometry
|
|
4528
|
+
const { GraphicsLayer } = zondy.layer
|
|
4529
4529
|
// ES6引入方式
|
|
4530
4530
|
import { Feature,Circle,GraphicsLayer } from "@mapgis/webclient-common"
|
|
4531
4531
|
// 创建一个要素
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p><br><br>[ES5引入方式]:<br/>
|
|
39
|
-
|
|
39
|
+
zondy.layer.GroupLayer() <br/>
|
|
40
40
|
[ES6引入方式]:<br/>
|
|
41
41
|
import { GroupLayer } from "@mapgis/webclient-common" <br/>
|
|
42
42
|
<br/></p>
|
|
@@ -280,7 +280,7 @@ import { GroupLayer } from "@mapgis/webclient-common" <br/>
|
|
|
280
280
|
|
|
281
281
|
<pre class="prettyprint"><code>// 初始化图层管理容器
|
|
282
282
|
// ES5引入方式
|
|
283
|
-
const { IGSMapImageLayer,WMTSLayer,GroupLayer } =
|
|
283
|
+
const { IGSMapImageLayer,WMTSLayer,GroupLayer } = zondy.layer
|
|
284
284
|
// ES6引入方式
|
|
285
285
|
import { IGSMapImageLayer,WMTSLayer,GroupLayer} from "@mapgis/webclient-common"
|
|
286
286
|
// 创建一个矢量图层
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<p>IGS要素图层,<br>
|
|
39
39
|
目前二维和三维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,要素服务会自动读取元信息上的坐标系,不需要用户指定
|
|
40
40
|
<br><br>[ES5引入方式]:<br/>
|
|
41
|
-
|
|
41
|
+
zondy.layer.IGSFeatureLayer() <br/>
|
|
42
42
|
[ES6引入方式]:<br/>
|
|
43
43
|
import { IGSFeatureLayer } from "@mapgis/webclient-common" <br/>
|
|
44
44
|
<br/>
|
|
@@ -765,7 +765,7 @@ if(layer.loadStatus === 'loaded') {<br/>
|
|
|
765
765
|
|
|
766
766
|
|
|
767
767
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
768
|
-
const { IGSFeatureLayer } =
|
|
768
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
769
769
|
// ES6引入方式
|
|
770
770
|
import { IGSFeatureLayer} from "@mapgis/webclient-common"
|
|
771
771
|
// 添加图层
|
|
@@ -779,7 +779,7 @@ const igsFeatureLayer = new IGSFeatureLayer({
|
|
|
779
779
|
|
|
780
780
|
|
|
781
781
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
782
|
-
const { IGSFeatureLayer } =
|
|
782
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
783
783
|
// ES6引入方式
|
|
784
784
|
import { IGSFeatureLayer} from "@mapgis/webclient-common"
|
|
785
785
|
// 添加图层
|
|
@@ -794,7 +794,7 @@ const igsFeatureLayer = new IGSFeatureLayer({
|
|
|
794
794
|
|
|
795
795
|
<pre class="prettyprint"><code><caption><h7 id='IGSFeatureLayer-url'>添加IGS要素图层-在基地址中指定图层id</h7></caption
|
|
796
796
|
// ES5引入方式
|
|
797
|
-
const { IGSFeatureLayer } =
|
|
797
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
798
798
|
// ES6引入方式
|
|
799
799
|
import { IGSFeatureLayer} from "@mapgis/webclient-common"
|
|
800
800
|
const igsFeatureLayer = new IGSFeatureLayer({
|
|
@@ -807,7 +807,7 @@ const igsFeatureLayer = new IGSFeatureLayer({
|
|
|
807
807
|
|
|
808
808
|
|
|
809
809
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
810
|
-
const { IGSFeatureLayer } =
|
|
810
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
811
811
|
// ES6引入方式
|
|
812
812
|
import { IGSFeatureLayer} from "@mapgis/webclient-common"
|
|
813
813
|
const igsFeatureLayer = new IGSFeatureLayer({
|
|
@@ -828,7 +828,7 @@ const igsFeatureLayer = new IGSFeatureLayer({
|
|
|
828
828
|
|
|
829
829
|
|
|
830
830
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
831
|
-
const { IGSFeatureLayer } =
|
|
831
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
832
832
|
// ES6引入方式
|
|
833
833
|
import { IGSFeatureLayer} from "@mapgis/webclient-common"
|
|
834
834
|
// 在初始化时设置
|
|
@@ -847,7 +847,7 @@ igsFeatureLayer.opacity = 0.5</code></pre>
|
|
|
847
847
|
|
|
848
848
|
|
|
849
849
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
850
|
-
const { IGSFeatureLayer } =
|
|
850
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
851
851
|
// ES6引入方式
|
|
852
852
|
import { IGSFeatureLayer} from "@mapgis/webclient-common"
|
|
853
853
|
// 在初始化时设置
|
|
@@ -873,10 +873,10 @@ map.reorder(igsFeatureLayer, '要移动到的index');</code></pre>
|
|
|
873
873
|
|
|
874
874
|
|
|
875
875
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
876
|
-
const { IGSFeatureLayer } =
|
|
877
|
-
const { UniqueValueRenderer } =
|
|
878
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
879
|
-
const { Color } =
|
|
876
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
877
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
878
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
879
|
+
const { Color } = zondy
|
|
880
880
|
// ES6引入方式
|
|
881
881
|
import { IGSFeatureLayer,UniqueValueRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
882
882
|
const igsFeatureLayer = new IGSFeatureLayer({
|
|
@@ -931,10 +931,10 @@ const igsFeatureLayer = new IGSFeatureLayer({
|
|
|
931
931
|
|
|
932
932
|
|
|
933
933
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
934
|
-
const { IGSFeatureLayer } =
|
|
935
|
-
const { ClassBreakRenderer } =
|
|
936
|
-
const { SimpleLineSymbol } =
|
|
937
|
-
const { Color } =
|
|
934
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
935
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
936
|
+
const { SimpleLineSymbol } = zondy.symbol
|
|
937
|
+
const { Color } = zondy
|
|
938
938
|
// ES6引入方式
|
|
939
939
|
import { IGSFeatureLayer,ClassBreakRenderer,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
940
940
|
const igsFeatureLayer = new IGSFeatureLayer({
|
|
@@ -1033,10 +1033,10 @@ const igsFeatureLayer = new IGSFeatureLayer({
|
|
|
1033
1033
|
|
|
1034
1034
|
|
|
1035
1035
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1036
|
-
const { IGSFeatureLayer } =
|
|
1037
|
-
const { SimpleRenderer } =
|
|
1038
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1039
|
-
const { Color } =
|
|
1036
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
1037
|
+
const { SimpleRenderer } = zondy.renderer
|
|
1038
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1039
|
+
const { Color } = zondy
|
|
1040
1040
|
// ES6引入方式
|
|
1041
1041
|
import { IGSFeatureLayer,SimpleRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1042
1042
|
const igsFeatureLayer = new IGSFeatureLayer({
|
|
@@ -1064,7 +1064,7 @@ const igsFeatureLayer = new IGSFeatureLayer({
|
|
|
1064
1064
|
|
|
1065
1065
|
|
|
1066
1066
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1067
|
-
const { IGSFeatureLayer } =
|
|
1067
|
+
const { IGSFeatureLayer } = zondy.layer
|
|
1068
1068
|
// ES6引入方式
|
|
1069
1069
|
import { IGSFeatureLayer } from "@mapgis/webclient-common"
|
|
1070
1070
|
const igsFeatureLayer = new IGSFeatureLayer({
|
|
@@ -1079,9 +1079,9 @@ const igsFeatureLayer = new IGSFeatureLayer({
|
|
|
1079
1079
|
|
|
1080
1080
|
|
|
1081
1081
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1082
|
-
const { igsFeatureLayer } =
|
|
1083
|
-
const { LabelClass ,Font} =
|
|
1084
|
-
const { TextSymbol } =
|
|
1082
|
+
const { igsFeatureLayer } = zondy.layer
|
|
1083
|
+
const { LabelClass ,Font} = zondy
|
|
1084
|
+
const { TextSymbol } = zondy.symbol
|
|
1085
1085
|
// ES6引入方式
|
|
1086
1086
|
import { igsFeatureLayer,LabelClass,Font,TextSymbol } from "@mapgis/webclient-common"
|
|
1087
1087
|
// 初始化LabelClass
|
|
@@ -2613,7 +2613,7 @@ const igsFeatureLayer = new igsFeatureLayer({
|
|
|
2613
2613
|
// 服务基地址
|
|
2614
2614
|
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/FeatureServer',
|
|
2615
2615
|
}
|
|
2616
|
-
const igsFeatureLayer = new
|
|
2616
|
+
const igsFeatureLayer = new zondy.layer.IGSFeatureLayer.fromJSON(json)</code></pre>
|
|
2617
2617
|
|
|
2618
2618
|
|
|
2619
2619
|
|
|
@@ -2868,7 +2868,7 @@ const igsFeatureLayer = new Zondy.Layer.IGSFeatureLayer.fromJSON(json)</code></p
|
|
|
2868
2868
|
|
|
2869
2869
|
|
|
2870
2870
|
<pre class="prettyprint"><code>// 初始化图层
|
|
2871
|
-
const igsFeatureLayer = new
|
|
2871
|
+
const igsFeatureLayer = new zondy.layer.IGSFeatureLayer({
|
|
2872
2872
|
// 服务基地址
|
|
2873
2873
|
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/FeatureServer',
|
|
2874
2874
|
});
|