@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
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<p>IGS地图图片图层,<br/>
|
|
39
39
|
支持IGS1.0和2.0两个服务版本,支持自定义坐标系,当IGS版本是1.0时,需要手动设置图层坐标系,当IGS版本是2.0时,会自动读取元信息上的坐标系,不需要用户指定<br/>
|
|
40
40
|
<br><br>[ES5引入方式]:<br/>
|
|
41
|
-
|
|
41
|
+
zondy.layer.IGSMapImageLayer() <br/>
|
|
42
42
|
[ES6引入方式]:<br/>
|
|
43
43
|
import { IGSMapImageLayer } from "@mapgis/webclient-common" <br/>
|
|
44
44
|
<br/>
|
|
@@ -859,8 +859,8 @@ IGS2.0的服务为:http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}
|
|
|
859
859
|
|
|
860
860
|
|
|
861
861
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
862
|
-
const { SpatialReference } =
|
|
863
|
-
const { IGSMapImageLayer } =
|
|
862
|
+
const { SpatialReference } = zondy
|
|
863
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
864
864
|
// ES6引入方式
|
|
865
865
|
import { SpatialReference,IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
866
866
|
// 添加图层
|
|
@@ -878,7 +878,7 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
878
878
|
|
|
879
879
|
|
|
880
880
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
881
|
-
const { IGSMapImageLayer } =
|
|
881
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
882
882
|
// ES6引入方式
|
|
883
883
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
884
884
|
// 添加图层
|
|
@@ -892,8 +892,8 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
892
892
|
|
|
893
893
|
|
|
894
894
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
895
|
-
const { SpatialReference} =
|
|
896
|
-
const { IGSMapImageLayer } =
|
|
895
|
+
const { SpatialReference} = zondy
|
|
896
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
897
897
|
// ES6引入方式
|
|
898
898
|
import { SpatialReference,IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
899
899
|
// 添加图层
|
|
@@ -912,7 +912,7 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
912
912
|
|
|
913
913
|
|
|
914
914
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
915
|
-
const { IGSMapImageLayer } =
|
|
915
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
916
916
|
// ES6引入方式
|
|
917
917
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
918
918
|
// 添加图层
|
|
@@ -930,15 +930,13 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
930
930
|
|
|
931
931
|
|
|
932
932
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
933
|
-
const { IGSMapImageLayer } =
|
|
933
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
934
934
|
// ES6引入方式
|
|
935
935
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
936
936
|
// 添加图层
|
|
937
937
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
938
938
|
// 服务基地址
|
|
939
|
-
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
|
|
940
|
-
// 当sublayers为空时显示所有子图层
|
|
941
|
-
sublayers: []
|
|
939
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
|
|
942
940
|
});</code></pre>
|
|
943
941
|
|
|
944
942
|
|
|
@@ -946,7 +944,7 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
946
944
|
|
|
947
945
|
|
|
948
946
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
949
|
-
const { IGSMapImageLayer } =
|
|
947
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
950
948
|
// ES6引入方式
|
|
951
949
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
952
950
|
// 添加图层
|
|
@@ -976,7 +974,7 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
976
974
|
|
|
977
975
|
|
|
978
976
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
979
|
-
const { IGSMapImageLayer } =
|
|
977
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
980
978
|
// ES6引入方式
|
|
981
979
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
982
980
|
// 添加图层
|
|
@@ -996,7 +994,7 @@ igsMapImageLayer.setSubLayer({
|
|
|
996
994
|
|
|
997
995
|
|
|
998
996
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
999
|
-
const { IGSMapImageLayer } =
|
|
997
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1000
998
|
// ES6引入方式
|
|
1001
999
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1002
1000
|
// 添加图层
|
|
@@ -1014,7 +1012,7 @@ subLayer.visible = false</code></pre>
|
|
|
1014
1012
|
|
|
1015
1013
|
|
|
1016
1014
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1017
|
-
const { IGSMapImageLayer } =
|
|
1015
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1018
1016
|
// ES6引入方式
|
|
1019
1017
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1020
1018
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
@@ -1032,10 +1030,10 @@ subLayer.index = 2</code></pre>
|
|
|
1032
1030
|
|
|
1033
1031
|
|
|
1034
1032
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1035
|
-
const { IGSMapImageLayer } =
|
|
1036
|
-
const { UniqueValueRenderer } =
|
|
1037
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1038
|
-
const { Color } =
|
|
1033
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1034
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
1035
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1036
|
+
const { Color } = zondy
|
|
1039
1037
|
// ES6引入方式
|
|
1040
1038
|
import { IGSMapImageLayer,UniqueValueRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1041
1039
|
igsMapImageLayer = new IGSMapImageLayer({
|
|
@@ -1097,10 +1095,10 @@ igsMapImageLayer = new IGSMapImageLayer({
|
|
|
1097
1095
|
|
|
1098
1096
|
|
|
1099
1097
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1100
|
-
const { IGSMapImageLayer } =
|
|
1101
|
-
const { ClassBreakRenderer } =
|
|
1102
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1103
|
-
const { Color } =
|
|
1098
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1099
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1100
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1101
|
+
const { Color } = zondy
|
|
1104
1102
|
// ES6引入方式
|
|
1105
1103
|
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1106
1104
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
@@ -1156,13 +1154,13 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
1156
1154
|
|
|
1157
1155
|
|
|
1158
1156
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1159
|
-
const { IGSMapImageLayer } =
|
|
1160
|
-
const { ClassBreakRenderer } =
|
|
1161
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1162
|
-
const { Color } =
|
|
1157
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1158
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1159
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1160
|
+
const { Color } = zondy
|
|
1163
1161
|
// ES6引入方式
|
|
1164
1162
|
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1165
|
-
const igsMapImageLayer = new
|
|
1163
|
+
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
|
|
1166
1164
|
// 服务基地址
|
|
1167
1165
|
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
|
|
1168
1166
|
});
|
|
@@ -1171,17 +1169,17 @@ igsMapImageLayer.setSubLayer({
|
|
|
1171
1169
|
// 子图层id
|
|
1172
1170
|
id: '子图层id',
|
|
1173
1171
|
// 专题图参数
|
|
1174
|
-
renderer: new
|
|
1172
|
+
renderer: new zondy.renderer.ClassBreakRenderer({
|
|
1175
1173
|
//字段名
|
|
1176
1174
|
field: '你的字段名',
|
|
1177
1175
|
// 指定默认样式,不在专题图指定范围内的会采用该样式,可不设置
|
|
1178
|
-
defaultSymbol: new
|
|
1176
|
+
defaultSymbol: new zondy.symbol.SimpleFillSymbol({
|
|
1179
1177
|
// 填充颜色
|
|
1180
1178
|
color: 'rgba(222,1,252,1)',
|
|
1181
1179
|
// 线符号样式
|
|
1182
|
-
outline: new
|
|
1180
|
+
outline: new zondy.symbol.SimpleLineSymbol({
|
|
1183
1181
|
//线符号颜色
|
|
1184
|
-
color: new
|
|
1182
|
+
color: new zondy.Color(255, 1, 0, 1),
|
|
1185
1183
|
//线宽
|
|
1186
1184
|
width: 1
|
|
1187
1185
|
})
|
|
@@ -1193,13 +1191,13 @@ igsMapImageLayer.setSubLayer({
|
|
|
1193
1191
|
// 最小范围
|
|
1194
1192
|
minValue: "最小范围",
|
|
1195
1193
|
//匹配到该值后的样式
|
|
1196
|
-
symbol: new
|
|
1194
|
+
symbol: new zondy.symbol.SimpleFillSymbol({
|
|
1197
1195
|
// 填充颜色
|
|
1198
1196
|
color: 'rgba(1,1,252,1)',
|
|
1199
1197
|
// 线符号样式
|
|
1200
|
-
outline: new
|
|
1198
|
+
outline: new zondy.symbol.SimpleLineSymbol({
|
|
1201
1199
|
//线符号颜色
|
|
1202
|
-
color: new
|
|
1200
|
+
color: new zondy.Color(255, 1, 0, 1),
|
|
1203
1201
|
//线宽
|
|
1204
1202
|
width: 1
|
|
1205
1203
|
})
|
|
@@ -1213,10 +1211,10 @@ igsMapImageLayer.setSubLayer({
|
|
|
1213
1211
|
|
|
1214
1212
|
|
|
1215
1213
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1216
|
-
const { IGSMapImageLayer } =
|
|
1217
|
-
const { ClassBreakRenderer } =
|
|
1218
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1219
|
-
const { Color } =
|
|
1214
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1215
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1216
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1217
|
+
const { Color } = zondy
|
|
1220
1218
|
// ES6引入方式
|
|
1221
1219
|
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1222
1220
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
@@ -1267,7 +1265,7 @@ subLayer.renderer = new ClassBreakRenderer({
|
|
|
1267
1265
|
|
|
1268
1266
|
|
|
1269
1267
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1270
|
-
const { IGSMapImageLayer } =
|
|
1268
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1271
1269
|
// ES6引入方式
|
|
1272
1270
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1273
1271
|
// 初始化时设置
|
|
@@ -1289,7 +1287,7 @@ igsMapImageLayer.on('layerview-created', function (result) {
|
|
|
1289
1287
|
|
|
1290
1288
|
|
|
1291
1289
|
<pre class="prettyprint"><code>/ ES5引入方式
|
|
1292
|
-
const { IGSMapImageLayer } =
|
|
1290
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1293
1291
|
// ES6引入方式
|
|
1294
1292
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1295
1293
|
// 初始化时设置
|
|
@@ -1317,7 +1315,7 @@ igsMapImageLayer.on('layerview-created', function (result) {
|
|
|
1317
1315
|
|
|
1318
1316
|
|
|
1319
1317
|
<pre class="prettyprint"><code>/ ES5引入方式
|
|
1320
|
-
const { IGSMapImageLayer } =
|
|
1318
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1321
1319
|
// ES6引入方式
|
|
1322
1320
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1323
1321
|
// 初始化时设置
|
|
@@ -1334,8 +1332,8 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
1334
1332
|
|
|
1335
1333
|
<pre class="prettyprint"><code>// 初始化图层管理容器
|
|
1336
1334
|
/ ES5引入方式
|
|
1337
|
-
const { SpatialReference} =
|
|
1338
|
-
const { IGSMapImageLayer} =
|
|
1335
|
+
const { SpatialReference} = zondy
|
|
1336
|
+
const { IGSMapImageLayer} = zondy.layer
|
|
1339
1337
|
// ES6引入方式
|
|
1340
1338
|
import { SpatialReference, IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1341
1339
|
const arcgisMapImageLayer = new IGSMapImageLayer({
|
|
@@ -3726,11 +3724,11 @@ map.reorder(igsMapImageLayer, '要移动到的index');</code></pre>
|
|
|
3726
3724
|
|
|
3727
3725
|
|
|
3728
3726
|
<pre class="prettyprint"><code>// 添加图层
|
|
3729
|
-
const igsMapImageLayer = new
|
|
3727
|
+
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
|
|
3730
3728
|
// 服务基地址
|
|
3731
3729
|
url: 'http://{ip}:6163/igs/rest/mrms/docs/{serviceName}'
|
|
3732
3730
|
});
|
|
3733
|
-
const newLayer =
|
|
3731
|
+
const newLayer = zondy.layer.IGSMapImageLayer.clone(igsMapImageLayer)</code></pre>
|
|
3734
3732
|
|
|
3735
3733
|
|
|
3736
3734
|
|
|
@@ -4297,7 +4295,7 @@ const newLayer = Zondy.Layer.IGSMapImageLayer.clone(igsMapImageLayer)</code></pr
|
|
|
4297
4295
|
|
|
4298
4296
|
<pre class="prettyprint"><code>igsMapImageLayer.fetchImage({
|
|
4299
4297
|
// 你的范围
|
|
4300
|
-
extent: new
|
|
4298
|
+
extent: new zondy.geometry.Extent(),
|
|
4301
4299
|
// 图片宽度
|
|
4302
4300
|
width: 256,
|
|
4303
4301
|
// 图片高度
|
|
@@ -4867,7 +4865,7 @@ const newLayer = Zondy.Layer.IGSMapImageLayer.clone(igsMapImageLayer)</code></pr
|
|
|
4867
4865
|
|
|
4868
4866
|
<pre class="prettyprint"><code>const url = igsMapImageLayer.getImageUrl({
|
|
4869
4867
|
// 你的范围
|
|
4870
|
-
extent: new
|
|
4868
|
+
extent: new zondy.geometry.Extent(),
|
|
4871
4869
|
// 图片宽度
|
|
4872
4870
|
width: 256,
|
|
4873
4871
|
// 图片高度
|
|
@@ -4973,7 +4971,7 @@ const newLayer = Zondy.Layer.IGSMapImageLayer.clone(igsMapImageLayer)</code></pr
|
|
|
4973
4971
|
|
|
4974
4972
|
|
|
4975
4973
|
<pre class="prettyprint"><code>// 初始化图层
|
|
4976
|
-
const igsMapImageLayer = new
|
|
4974
|
+
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
|
|
4977
4975
|
// 服务基地址
|
|
4978
4976
|
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
|
|
4979
4977
|
});
|
|
@@ -463,10 +463,10 @@
|
|
|
463
463
|
|
|
464
464
|
|
|
465
465
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
466
|
-
const { Map
|
|
467
|
-
const { IGSMapImageLayer } =
|
|
466
|
+
const { Map } = zondy
|
|
467
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
468
468
|
// ES6引入方式
|
|
469
|
-
import { Map,
|
|
469
|
+
import { Map, IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
470
470
|
// 初始化地图图片图层
|
|
471
471
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
472
472
|
url: '服务基地址',
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
251
|
-
const { IGSSceneLayer } =
|
|
251
|
+
const { IGSSceneLayer } = zondy.layer
|
|
252
252
|
// ES6引入方式
|
|
253
253
|
import { IGSSceneLayer } from "@mapgis/webclient-common"
|
|
254
254
|
const layer = new IGSSceneLayer({
|
|
@@ -274,10 +274,10 @@ const layer = new IGSSceneLayer({
|
|
|
274
274
|
|
|
275
275
|
|
|
276
276
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
277
|
-
const { IGSSceneLayer } =
|
|
278
|
-
const { UniqueValueRenderer } =
|
|
279
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
280
|
-
const { Color } =
|
|
277
|
+
const { IGSSceneLayer } = zondy.layer
|
|
278
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
279
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
280
|
+
const { Color } = zondy
|
|
281
281
|
// ES6引入方式
|
|
282
282
|
import { IGSSceneLayer,UniqueValueRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
283
283
|
// 构造单值渲染器
|
|
@@ -334,10 +334,10 @@ const layer = new IGSSceneLayer({
|
|
|
334
334
|
|
|
335
335
|
|
|
336
336
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
337
|
-
const { IGSSceneLayer } =
|
|
338
|
-
const { ClassBreakRenderer } =
|
|
339
|
-
const { SimpleFillSymbol } =
|
|
340
|
-
const { Color } =
|
|
337
|
+
const { IGSSceneLayer } = zondy.layer
|
|
338
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
339
|
+
const { SimpleFillSymbol } = zondy.symbol
|
|
340
|
+
const { Color } = zondy
|
|
341
341
|
// ES6引入方式
|
|
342
342
|
import { IGSSceneLayer,ClassBreakRenderer,SimpleFillSymbol,Color } from "@mapgis/webclient-common"
|
|
343
343
|
// 构造分段渲染器
|
|
@@ -398,7 +398,7 @@ const layer = new IGSSceneLayer({
|
|
|
398
398
|
|
|
399
399
|
|
|
400
400
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
401
|
-
const { IGSSceneLayer } =
|
|
401
|
+
const { IGSSceneLayer } = zondy.layer
|
|
402
402
|
// ES6引入方式
|
|
403
403
|
import { IGSSceneLayer } from "@mapgis/webclient-common"
|
|
404
404
|
// 构造Cesium原生渲染器
|
|
@@ -456,7 +456,7 @@ const layer = new IGSSceneLayer({
|
|
|
456
456
|
|
|
457
457
|
|
|
458
458
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
459
|
-
const { IGSSceneLayer } =
|
|
459
|
+
const { IGSSceneLayer } = zondy.layer
|
|
460
460
|
// ES6引入方式
|
|
461
461
|
import { IGSSceneLayer } from "@mapgis/webclient-common"
|
|
462
462
|
// 构造Cesium原生渲染器
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<p>IGS瓦片图层,<br>
|
|
39
39
|
支持IGS1.0和2.0两个服务版本,支持自定义坐标系,当IGS版本是1.0时,需要手动设置图层坐标系,当IGS版本是2.0时,会自动读取元信息上的坐标系,不需要用户指定,
|
|
40
40
|
<br><br>[ES5引入方式]:<br/>
|
|
41
|
-
|
|
41
|
+
zondy.layer.IGSTileLayer() <br/>
|
|
42
42
|
[ES6引入方式]:<br/>
|
|
43
43
|
import { IGSTileLayer } from "@mapgis/webclient-common" <br/>
|
|
44
44
|
<br/>
|
|
@@ -573,10 +573,10 @@ IGS2.0的服务为:http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}
|
|
|
573
573
|
|
|
574
574
|
|
|
575
575
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
576
|
-
const {
|
|
577
|
-
const { IGSTileLayer} =
|
|
576
|
+
const { SpatialReference } = zondy
|
|
577
|
+
const { IGSTileLayer } = zondy.layer
|
|
578
578
|
// ES6引入方式
|
|
579
|
-
import { IGSTileLayer } from "@mapgis/webclient-common"
|
|
579
|
+
import { IGSTileLayer, SpatialReference } from "@mapgis/webclient-common"
|
|
580
580
|
const igsTileLayer = new IGSTileLayer({
|
|
581
581
|
// 服务基地址
|
|
582
582
|
url: 'http://{ip}:{port}/igs/rest/mrms/tile/{serviceName}',
|
|
@@ -591,8 +591,7 @@ const igsTileLayer = new IGSTileLayer({
|
|
|
591
591
|
|
|
592
592
|
|
|
593
593
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
594
|
-
const {
|
|
595
|
-
const { IGSTileLayer} = Zondy.Layer
|
|
594
|
+
const { IGSTileLayer} = zondy.layer
|
|
596
595
|
// ES6引入方式
|
|
597
596
|
import { IGSTileLayer } from "@mapgis/webclient-common"
|
|
598
597
|
const igsTileLayer = new IGSTileLayer({
|
|
@@ -605,7 +604,7 @@ const igsTileLayer = new IGSTileLayer({
|
|
|
605
604
|
|
|
606
605
|
|
|
607
606
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
608
|
-
const { IGSTileLayer} =
|
|
607
|
+
const { IGSTileLayer} = zondy.layer
|
|
609
608
|
// ES6引入方式
|
|
610
609
|
import { IGSTileLayer } from "@mapgis/webclient-common"
|
|
611
610
|
// 初始化时设置
|
|
@@ -626,7 +625,7 @@ arcgisTileLayer.on('layerview-created', function (result) {
|
|
|
626
625
|
|
|
627
626
|
|
|
628
627
|
<pre class="prettyprint"><code>* // ES5引入方式
|
|
629
|
-
const { IGSTileLayer} =
|
|
628
|
+
const { IGSTileLayer} = zondy.layer
|
|
630
629
|
// ES6引入方式
|
|
631
630
|
import { IGSTileLayer } from "@mapgis/webclient-common"
|
|
632
631
|
// 初始化时设置
|
|
@@ -649,7 +648,7 @@ arcgisTileLayer.on('layerview-created', function (result) {
|
|
|
649
648
|
|
|
650
649
|
|
|
651
650
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
652
|
-
const { IGSTileLayer} =
|
|
651
|
+
const { IGSTileLayer} = zondy.layer
|
|
653
652
|
// ES6引入方式
|
|
654
653
|
import { IGSTileLayer } from "@mapgis/webclient-common"
|
|
655
654
|
const arcgisTileLayer = new IGSTileLayer({
|
|
@@ -3480,7 +3479,7 @@ map.reorder(igsTileLayer, '要移动到的index');</code></pre>
|
|
|
3480
3479
|
// 服务基地址
|
|
3481
3480
|
url: 'http://{ip}:{port}/igs/rest/services/Tile/{serviceName}/TileServer'
|
|
3482
3481
|
}
|
|
3483
|
-
const igsTileLayer = new
|
|
3482
|
+
const igsTileLayer = new zondy.layer.IGSTileLayer.fromJSON(json)</code></pre>
|
|
3484
3483
|
|
|
3485
3484
|
|
|
3486
3485
|
|
|
@@ -4165,7 +4164,7 @@ const igsTileLayer = new Zondy.Layer.IGSTileLayer.fromJSON(json)</code></pre>
|
|
|
4165
4164
|
|
|
4166
4165
|
|
|
4167
4166
|
<pre class="prettyprint"><code>// 初始化图层
|
|
4168
|
-
const igsTileLayer = new
|
|
4167
|
+
const igsTileLayer = new zondy.layer.IGSTileLayer({
|
|
4169
4168
|
// 服务基地址
|
|
4170
4169
|
url: 'http://{ip}:{port}/igs/rest/services/Tile/{serviceName}/TileServer'
|
|
4171
4170
|
});
|
|
@@ -42,8 +42,11 @@
|
|
|
42
42
|
1、通过服务基地址来初始化矢量瓦片图层对象;<br/>
|
|
43
43
|
2、通过加载矢量瓦片样式文件的方式来初始化矢量瓦片图层对象;<br/>
|
|
44
44
|
3、通过设置矢量瓦片样式的方式来初始化矢量瓦片图层对象;<br/>
|
|
45
|
+
当加载MapGIS制作并由IGS发布的矢量瓦片时,如果矢量瓦片样式中有mapinfo参数,则子图层ID对应的是MapX中的图层索引;
|
|
46
|
+
如果没有mapinfo参数,则子图层ID对应的是矢量瓦片样式图层ID;<br/>
|
|
47
|
+
当加载第三方发布的矢量瓦片时,子图层ID对应的是矢量瓦片样式图层ID;<br/>
|
|
45
48
|
<br><br>[ES5引入方式]:<br/>
|
|
46
|
-
|
|
49
|
+
zondy.layer.IGSVectorTileLayer() <br/>
|
|
47
50
|
[ES6引入方式]:<br/>
|
|
48
51
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common" <br/>
|
|
49
52
|
<br/>
|
|
@@ -232,7 +235,7 @@ IGS2.0的样式文件地址:http://{ip}:8089/igs/rest/mrcs/vtiles/styles/{样
|
|
|
232
235
|
</td>
|
|
233
236
|
|
|
234
237
|
|
|
235
|
-
<td class="description last"><p
|
|
238
|
+
<td class="description last"><p>会通过该参数中指定的子图层列表对地图服务中的子图层进行过滤,不在列表中的子图层将不会显示;如果没有指定该参数,则会按照矢量瓦片服务中的子图层的属性显示所有子图层;如果该参数为空数组,则地图服务所有的子图层都不显示。<br>
|
|
236
239
|
目前支持的专题图如下:<br>
|
|
237
240
|
<a class="mapgis-link-name" title="UniqueValueRenderer" UniqueValueRenderer.html><code>1、单值专题图</code></a><br/>
|
|
238
241
|
<a class="mapgis-link-name" title="ClassBreakRenderer" ClassBreakRenderer.html><code>2、分段专题图</code></a><br/>
|
|
@@ -448,39 +451,6 @@ IGS2.0的样式文件地址:http://{ip}:8089/igs/rest/mrcs/vtiles/styles/{样
|
|
|
448
451
|
|
|
449
452
|
|
|
450
453
|
|
|
451
|
-
<tr class="deep-level-1">
|
|
452
|
-
|
|
453
|
-
<td class="name"><code>sublayers</code></td>
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
<td class="type">
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
<span class="param-type">
|
|
460
|
-
|
|
461
|
-
Array.<<a onclick="getTypeHTML(event)" link="IGSVectorTileSubLayer.html">IGSVectorTileSubLayer</a>>
|
|
462
|
-
|
|
463
|
-
</span>
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
</td>
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
<td class="default">
|
|
472
|
-
|
|
473
|
-
[]
|
|
474
|
-
|
|
475
|
-
</td>
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
<td class="description last"><p>子图层信息。指定的和服务器端获取图层的交集, 默认不设置,加载全部图层。可设置子图层的可见性,以及专题图参数。<br/></p></td>
|
|
479
|
-
</tr>
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
454
|
<tr class="deep-level-1">
|
|
485
455
|
|
|
486
456
|
<td class="name"><code>labelsRenderMode</code></td>
|
|
@@ -691,8 +661,8 @@ off-screen: 使用矢量瓦片来绘制注记<br/>
|
|
|
691
661
|
|
|
692
662
|
<pre class="prettyprint"><code>//初始化地图管理容器
|
|
693
663
|
// ES5引入方式
|
|
694
|
-
const { IGSVectorTileLayer } =
|
|
695
|
-
const { SpatialReference } =
|
|
664
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
665
|
+
const { SpatialReference } = zondy
|
|
696
666
|
// ES6引入方式
|
|
697
667
|
import { IGSVectorTileLayer, SpatialReference } from "@mapgis/webclient-common"
|
|
698
668
|
//初始化矢量瓦片图层
|
|
@@ -708,7 +678,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
708
678
|
|
|
709
679
|
|
|
710
680
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
711
|
-
const { IGSVectorTileLayer } =
|
|
681
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
712
682
|
// ES6引入方式
|
|
713
683
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
714
684
|
// 初始化矢量瓦片图层
|
|
@@ -722,7 +692,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
722
692
|
|
|
723
693
|
|
|
724
694
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
725
|
-
const { IGSVectorTileLayer } =
|
|
695
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
726
696
|
// ES6引入方式
|
|
727
697
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
728
698
|
// 初始化矢量瓦片图层
|
|
@@ -736,7 +706,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
736
706
|
|
|
737
707
|
|
|
738
708
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
739
|
-
const { IGSVectorTileLayer } =
|
|
709
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
740
710
|
// ES6引入方式
|
|
741
711
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
742
712
|
// 初始化矢量瓦片图层
|
|
@@ -784,8 +754,8 @@ const customLayer = new IGSVectorTileLayerCustom({
|
|
|
784
754
|
|
|
785
755
|
|
|
786
756
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
787
|
-
const { LabelClass } =
|
|
788
|
-
const { IGSVectorTileLayer } =
|
|
757
|
+
const { LabelClass } = zondy
|
|
758
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
789
759
|
// ES6引入方式
|
|
790
760
|
import { IGSVectorTileLayer, LabelClass } from "@mapgis/webclient-common"
|
|
791
761
|
// 初始化一个额外的图标DOM对象
|
|
@@ -879,7 +849,7 @@ igsVectorTileLayer.labelsRenderMode = 'on-screen'</code></pre>
|
|
|
879
849
|
|
|
880
850
|
|
|
881
851
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
882
|
-
const { IGSVectorTileLayer } =
|
|
852
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
883
853
|
// ES6引入方式
|
|
884
854
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
885
855
|
// 添加图层
|
|
@@ -894,7 +864,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
894
864
|
|
|
895
865
|
|
|
896
866
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
897
|
-
const { IGSVectorTileLayer } =
|
|
867
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
898
868
|
// ES6引入方式
|
|
899
869
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
900
870
|
// 添加图层
|
|
@@ -917,7 +887,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
917
887
|
|
|
918
888
|
|
|
919
889
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
920
|
-
const { IGSVectorTileLayer } =
|
|
890
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
921
891
|
// ES6引入方式
|
|
922
892
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
923
893
|
// 添加图层
|
|
@@ -938,10 +908,10 @@ igsVectorTileLayer.on('layerview-created', function (result) {
|
|
|
938
908
|
|
|
939
909
|
|
|
940
910
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
941
|
-
const { IGSVectorTileLayer } =
|
|
942
|
-
const { UniqueValueRenderer } =
|
|
943
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
944
|
-
const { Color } =
|
|
911
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
912
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
913
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
914
|
+
const { Color } = zondy
|
|
945
915
|
// ES6引入方式
|
|
946
916
|
import { IGSVectorTileLayer,UniqueValueRenderer ,SimpleFillSymbol,SimpleLineSymbol,Color} from "@mapgis/webclient-common"
|
|
947
917
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -1006,10 +976,10 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
1006
976
|
|
|
1007
977
|
|
|
1008
978
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1009
|
-
const { IGSVectorTileLayer } =
|
|
1010
|
-
const { ClassBreakRenderer } =
|
|
1011
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1012
|
-
const { Color } =
|
|
979
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
980
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
981
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
982
|
+
const { Color } = zondy
|
|
1013
983
|
// ES6引入方式
|
|
1014
984
|
import { IGSVectorTileLayer,ClassBreakRenderer ,SimpleFillSymbol,SimpleLineSymbol,Color} from "@mapgis/webclient-commo
|
|
1015
985
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -1067,10 +1037,10 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
1067
1037
|
|
|
1068
1038
|
|
|
1069
1039
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1070
|
-
const { IGSVectorTileLayer } =
|
|
1071
|
-
const { ClassBreakRenderer } =
|
|
1072
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1073
|
-
const { Color } =
|
|
1040
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
1041
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1042
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1043
|
+
const { Color } = zondy
|
|
1074
1044
|
// ES6引入方式
|
|
1075
1045
|
import { IGSVectorTileLayer,ClassBreakRenderer ,SimpleFillSymbol,SimpleLineSymbol,Color} from "@mapgis/webclient-commo
|
|
1076
1046
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -1123,10 +1093,10 @@ subLayer.renderer = new ClassBreakRenderer({
|
|
|
1123
1093
|
|
|
1124
1094
|
|
|
1125
1095
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1126
|
-
const { IGSVectorTileLayer } =
|
|
1127
|
-
const { SimpleRenderer } =
|
|
1128
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1129
|
-
const { Color } =
|
|
1096
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
1097
|
+
const { SimpleRenderer } = zondy.renderer
|
|
1098
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1099
|
+
const { Color } = zondy
|
|
1130
1100
|
// ES6引入方式
|
|
1131
1101
|
import { IGSVectorTileLayer,SimpleRenderer ,SimpleFillSymbol,SimpleLineSymbol,Color} from "@mapgis/webclient-commo
|
|
1132
1102
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -1141,7 +1111,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
1141
1111
|
// 因为该数据的几何类型为区,因此设置区样式
|
|
1142
1112
|
symbol: new SimpleFillSymbol({
|
|
1143
1113
|
// 填充颜色
|
|
1144
|
-
color: new
|
|
1114
|
+
color: new zondy.Color(255, 0, 0),
|
|
1145
1115
|
// 外边线样式
|
|
1146
1116
|
outline: new SimpleLineSymbol({
|
|
1147
1117
|
// 线颜色
|
|
@@ -3712,7 +3682,7 @@ off-screen: 使用矢量瓦片来绘制注记;
|
|
|
3712
3682
|
|
|
3713
3683
|
|
|
3714
3684
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3715
|
-
const { IGSVectorTileLayer } =
|
|
3685
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
3716
3686
|
// ES6引入方式
|
|
3717
3687
|
import { IGSVectorTileLayer} from "@mapgis/webclient-common"
|
|
3718
3688
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|