@mapgis/webclient-common 17.2.0 → 17.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/es5/webclient-common.min.js +5 -5
- package/dist/webclient-common-es6.min.js +6 -6
- package/documention/AddressServer.html +12 -12
- package/documention/ArcGISFeatureServer.html +10 -10
- package/documention/ArcGISGeometryServer.html +10 -10
- package/documention/ArcGISMapImageLayer.html +10 -10
- package/documention/ArcGISMapServer.html +10 -10
- package/documention/ArcGISTileLayer.html +5 -5
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseServer.html +10 -10
- package/documention/BaseView.html +1 -1
- package/documention/Basemap.html +3 -3
- package/documention/Cesium3DTilesCacheLayer.html +38 -112
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +7 -7
- package/documention/ClassBreakRenderer.html +18 -18
- package/documention/ClusterRenderer.html +2 -2
- package/documention/Config.html +4 -4
- package/documention/Extent.html +15 -15
- package/documention/ExtrudeSymbol3DLayer.html +2 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol3DLayer.html +2 -2
- package/documention/Font.html +1 -1
- package/documention/GeoJSONLayer.html +26 -26
- package/documention/Geometry.html +7 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +31 -31
- package/documention/GroupLayer.html +2 -2
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +46 -46
- package/documention/IGSMapImageSubLayer.html +3 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSTileLayer.html +10 -11
- package/documention/IGSVectorTileLayer.html +32 -29
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/IconSymbol3DLayer.html +4 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +3 -3
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/LineString.html +10 -10
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +2 -2
- package/documention/M3DModelCacheLayer.html +12 -12
- package/documention/M3DServer.html +11 -11
- package/documention/Map.html +4 -4
- package/documention/MapGISTextSymbol.html +3 -3
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +1 -1
- package/documention/MultiLineString.html +13 -13
- package/documention/MultiPoint.html +10 -10
- package/documention/MultiPolygon.html +9 -9
- package/documention/ObjectSymbol3DLayer.html +4 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/PathSymbol3DLayer.html +2 -2
- package/documention/PictureFillSymbol.html +1 -1
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +11 -11
- package/documention/Point.html +12 -12
- package/documention/PointSymbol3D.html +2 -2
- package/documention/Polygon.html +14 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +8 -8
- package/documention/RandomRenderer.html +1 -1
- package/documention/RankRenderer.html +2 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +11 -11
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +1 -1
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +3 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +9 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchEditor.html +1 -1
- package/documention/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- package/documention/SpatialReference.html +1 -1
- package/documention/Symbol.html +1 -1
- package/documention/TerrainCacheLayer.html +1 -1
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +4 -4
- package/documention/TextSymbol3DLayer.html +2 -2
- package/documention/ThemeServer.html +12 -12
- package/documention/TileServer.html +11 -11
- package/documention/UniqueValueRenderer.html +18 -18
- package/documention/VectorTileLayer.html +1 -1
- package/documention/VectorTileServer.html +11 -11
- package/documention/VideoMapView.html +4 -4
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +24 -24
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +15 -15
- package/documention/WMSServer.html +11 -11
- package/documention/WMTSLayer.html +10 -10
- package/documention/WMTSServer.html +11 -11
- package/documention/WPSServer.html +10 -10
- package/documention/WebTileLayer.html +5 -5
- package/documention/WorkFlowServer.html +12 -12
- package/documention/WorkFlowServer600227.html +12 -12
- package/documention/WorkFlowServer600228.html +13 -13
- package/documention/WorkFlowServer600229.html +12 -12
- package/documention/WorkFlowServer600230.html +12 -12
- package/documention/WorkFlowServer600231.html +12 -12
- package/documention/WorkFlowServer600232.html +13 -13
- package/documention/WorkFlowServer600233.html +14 -14
- package/documention/WorkFlowServer600235.html +12 -12
- package/documention/WorkFlowServer600237.html +13 -13
- package/documention/WorkFlowServer600238.html +15 -15
- package/documention/WorkFlowServer600239.html +16 -16
- package/documention/WorkFlowServer600307.html +14 -14
- package/documention/WorkFlowServer600308.html +2 -2
- package/documention/WorkFlowServer600309.html +12 -12
- package/documention/WorkFlowServer600314.html +12 -12
- package/documention/WorkFlowServer600334.html +12 -12
- package/documention/WorkFlowServer600336.html +12 -12
- package/documention/WorkFlowServer600340.html +12 -12
- package/documention/WorkFlowServer600354.html +12 -12
- package/documention/WorkFlowServer600368.html +12 -12
- package/documention/WorkFlowServer600369.html +12 -12
- package/documention/WorkFlowServer600370.html +12 -12
- package/documention/global.html +344 -1644
- package/documention/index.html +40 -37
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAllOtherDataItemInfoSource.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAnnInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartLabelFormat.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeRepresentInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartType.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CDotDensityTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CFourColorTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CGraduatedSymbolTheme.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CLinInfo.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CMultiClassTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CPntInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRandomTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRegInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CSimpleTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CThemeInfo.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ExpInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfoAttribute.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ItemValue.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ThemesInfo.html +2 -2
- package/package.json +2 -1
|
@@ -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,7 +930,7 @@ 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
|
// 添加图层
|
|
@@ -946,7 +946,7 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
946
946
|
|
|
947
947
|
|
|
948
948
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
949
|
-
const { IGSMapImageLayer } =
|
|
949
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
950
950
|
// ES6引入方式
|
|
951
951
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
952
952
|
// 添加图层
|
|
@@ -976,7 +976,7 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
976
976
|
|
|
977
977
|
|
|
978
978
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
979
|
-
const { IGSMapImageLayer } =
|
|
979
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
980
980
|
// ES6引入方式
|
|
981
981
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
982
982
|
// 添加图层
|
|
@@ -996,7 +996,7 @@ igsMapImageLayer.setSubLayer({
|
|
|
996
996
|
|
|
997
997
|
|
|
998
998
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
999
|
-
const { IGSMapImageLayer } =
|
|
999
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1000
1000
|
// ES6引入方式
|
|
1001
1001
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1002
1002
|
// 添加图层
|
|
@@ -1014,7 +1014,7 @@ subLayer.visible = false</code></pre>
|
|
|
1014
1014
|
|
|
1015
1015
|
|
|
1016
1016
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1017
|
-
const { IGSMapImageLayer } =
|
|
1017
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1018
1018
|
// ES6引入方式
|
|
1019
1019
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1020
1020
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
@@ -1032,10 +1032,10 @@ subLayer.index = 2</code></pre>
|
|
|
1032
1032
|
|
|
1033
1033
|
|
|
1034
1034
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1035
|
-
const { IGSMapImageLayer } =
|
|
1036
|
-
const { UniqueValueRenderer } =
|
|
1037
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1038
|
-
const { Color } =
|
|
1035
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1036
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
1037
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1038
|
+
const { Color } = zondy
|
|
1039
1039
|
// ES6引入方式
|
|
1040
1040
|
import { IGSMapImageLayer,UniqueValueRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1041
1041
|
igsMapImageLayer = new IGSMapImageLayer({
|
|
@@ -1097,10 +1097,10 @@ igsMapImageLayer = new IGSMapImageLayer({
|
|
|
1097
1097
|
|
|
1098
1098
|
|
|
1099
1099
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1100
|
-
const { IGSMapImageLayer } =
|
|
1101
|
-
const { ClassBreakRenderer } =
|
|
1102
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1103
|
-
const { Color } =
|
|
1100
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1101
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1102
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1103
|
+
const { Color } = zondy
|
|
1104
1104
|
// ES6引入方式
|
|
1105
1105
|
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1106
1106
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
@@ -1156,13 +1156,13 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
1156
1156
|
|
|
1157
1157
|
|
|
1158
1158
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1159
|
-
const { IGSMapImageLayer } =
|
|
1160
|
-
const { ClassBreakRenderer } =
|
|
1161
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1162
|
-
const { Color } =
|
|
1159
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1160
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1161
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1162
|
+
const { Color } = zondy
|
|
1163
1163
|
// ES6引入方式
|
|
1164
1164
|
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1165
|
-
const igsMapImageLayer = new
|
|
1165
|
+
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
|
|
1166
1166
|
// 服务基地址
|
|
1167
1167
|
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
|
|
1168
1168
|
});
|
|
@@ -1171,17 +1171,17 @@ igsMapImageLayer.setSubLayer({
|
|
|
1171
1171
|
// 子图层id
|
|
1172
1172
|
id: '子图层id',
|
|
1173
1173
|
// 专题图参数
|
|
1174
|
-
renderer: new
|
|
1174
|
+
renderer: new zondy.renderer.ClassBreakRenderer({
|
|
1175
1175
|
//字段名
|
|
1176
1176
|
field: '你的字段名',
|
|
1177
1177
|
// 指定默认样式,不在专题图指定范围内的会采用该样式,可不设置
|
|
1178
|
-
defaultSymbol: new
|
|
1178
|
+
defaultSymbol: new zondy.symbol.SimpleFillSymbol({
|
|
1179
1179
|
// 填充颜色
|
|
1180
1180
|
color: 'rgba(222,1,252,1)',
|
|
1181
1181
|
// 线符号样式
|
|
1182
|
-
outline: new
|
|
1182
|
+
outline: new zondy.symbol.SimpleLineSymbol({
|
|
1183
1183
|
//线符号颜色
|
|
1184
|
-
color: new
|
|
1184
|
+
color: new zondy.Color(255, 1, 0, 1),
|
|
1185
1185
|
//线宽
|
|
1186
1186
|
width: 1
|
|
1187
1187
|
})
|
|
@@ -1193,13 +1193,13 @@ igsMapImageLayer.setSubLayer({
|
|
|
1193
1193
|
// 最小范围
|
|
1194
1194
|
minValue: "最小范围",
|
|
1195
1195
|
//匹配到该值后的样式
|
|
1196
|
-
symbol: new
|
|
1196
|
+
symbol: new zondy.symbol.SimpleFillSymbol({
|
|
1197
1197
|
// 填充颜色
|
|
1198
1198
|
color: 'rgba(1,1,252,1)',
|
|
1199
1199
|
// 线符号样式
|
|
1200
|
-
outline: new
|
|
1200
|
+
outline: new zondy.symbol.SimpleLineSymbol({
|
|
1201
1201
|
//线符号颜色
|
|
1202
|
-
color: new
|
|
1202
|
+
color: new zondy.Color(255, 1, 0, 1),
|
|
1203
1203
|
//线宽
|
|
1204
1204
|
width: 1
|
|
1205
1205
|
})
|
|
@@ -1213,10 +1213,10 @@ igsMapImageLayer.setSubLayer({
|
|
|
1213
1213
|
|
|
1214
1214
|
|
|
1215
1215
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1216
|
-
const { IGSMapImageLayer } =
|
|
1217
|
-
const { ClassBreakRenderer } =
|
|
1218
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1219
|
-
const { Color } =
|
|
1216
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1217
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1218
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1219
|
+
const { Color } = zondy
|
|
1220
1220
|
// ES6引入方式
|
|
1221
1221
|
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color } from "@mapgis/webclient-common"
|
|
1222
1222
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
@@ -1267,7 +1267,7 @@ subLayer.renderer = new ClassBreakRenderer({
|
|
|
1267
1267
|
|
|
1268
1268
|
|
|
1269
1269
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1270
|
-
const { IGSMapImageLayer } =
|
|
1270
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1271
1271
|
// ES6引入方式
|
|
1272
1272
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1273
1273
|
// 初始化时设置
|
|
@@ -1289,7 +1289,7 @@ igsMapImageLayer.on('layerview-created', function (result) {
|
|
|
1289
1289
|
|
|
1290
1290
|
|
|
1291
1291
|
<pre class="prettyprint"><code>/ ES5引入方式
|
|
1292
|
-
const { IGSMapImageLayer } =
|
|
1292
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1293
1293
|
// ES6引入方式
|
|
1294
1294
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1295
1295
|
// 初始化时设置
|
|
@@ -1317,7 +1317,7 @@ igsMapImageLayer.on('layerview-created', function (result) {
|
|
|
1317
1317
|
|
|
1318
1318
|
|
|
1319
1319
|
<pre class="prettyprint"><code>/ ES5引入方式
|
|
1320
|
-
const { IGSMapImageLayer } =
|
|
1320
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
1321
1321
|
// ES6引入方式
|
|
1322
1322
|
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1323
1323
|
// 初始化时设置
|
|
@@ -1334,8 +1334,8 @@ const igsMapImageLayer = new IGSMapImageLayer({
|
|
|
1334
1334
|
|
|
1335
1335
|
<pre class="prettyprint"><code>// 初始化图层管理容器
|
|
1336
1336
|
/ ES5引入方式
|
|
1337
|
-
const { SpatialReference} =
|
|
1338
|
-
const { IGSMapImageLayer} =
|
|
1337
|
+
const { SpatialReference} = zondy
|
|
1338
|
+
const { IGSMapImageLayer} = zondy.layer
|
|
1339
1339
|
// ES6引入方式
|
|
1340
1340
|
import { SpatialReference, IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
1341
1341
|
const arcgisMapImageLayer = new IGSMapImageLayer({
|
|
@@ -3726,11 +3726,11 @@ map.reorder(igsMapImageLayer, '要移动到的index');</code></pre>
|
|
|
3726
3726
|
|
|
3727
3727
|
|
|
3728
3728
|
<pre class="prettyprint"><code>// 添加图层
|
|
3729
|
-
const igsMapImageLayer = new
|
|
3729
|
+
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
|
|
3730
3730
|
// 服务基地址
|
|
3731
3731
|
url: 'http://{ip}:6163/igs/rest/mrms/docs/{serviceName}'
|
|
3732
3732
|
});
|
|
3733
|
-
const newLayer =
|
|
3733
|
+
const newLayer = zondy.layer.IGSMapImageLayer.clone(igsMapImageLayer)</code></pre>
|
|
3734
3734
|
|
|
3735
3735
|
|
|
3736
3736
|
|
|
@@ -4297,7 +4297,7 @@ const newLayer = Zondy.Layer.IGSMapImageLayer.clone(igsMapImageLayer)</code></pr
|
|
|
4297
4297
|
|
|
4298
4298
|
<pre class="prettyprint"><code>igsMapImageLayer.fetchImage({
|
|
4299
4299
|
// 你的范围
|
|
4300
|
-
extent: new
|
|
4300
|
+
extent: new zondy.geometry.Extent(),
|
|
4301
4301
|
// 图片宽度
|
|
4302
4302
|
width: 256,
|
|
4303
4303
|
// 图片高度
|
|
@@ -4867,7 +4867,7 @@ const newLayer = Zondy.Layer.IGSMapImageLayer.clone(igsMapImageLayer)</code></pr
|
|
|
4867
4867
|
|
|
4868
4868
|
<pre class="prettyprint"><code>const url = igsMapImageLayer.getImageUrl({
|
|
4869
4869
|
// 你的范围
|
|
4870
|
-
extent: new
|
|
4870
|
+
extent: new zondy.geometry.Extent(),
|
|
4871
4871
|
// 图片宽度
|
|
4872
4872
|
width: 256,
|
|
4873
4873
|
// 图片高度
|
|
@@ -4973,7 +4973,7 @@ const newLayer = Zondy.Layer.IGSMapImageLayer.clone(igsMapImageLayer)</code></pr
|
|
|
4973
4973
|
|
|
4974
4974
|
|
|
4975
4975
|
<pre class="prettyprint"><code>// 初始化图层
|
|
4976
|
-
const igsMapImageLayer = new
|
|
4976
|
+
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
|
|
4977
4977
|
// 服务基地址
|
|
4978
4978
|
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
|
|
4979
4979
|
});
|
|
@@ -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/>
|
|
@@ -691,8 +694,8 @@ off-screen: 使用矢量瓦片来绘制注记<br/>
|
|
|
691
694
|
|
|
692
695
|
<pre class="prettyprint"><code>//初始化地图管理容器
|
|
693
696
|
// ES5引入方式
|
|
694
|
-
const { IGSVectorTileLayer } =
|
|
695
|
-
const { SpatialReference } =
|
|
697
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
698
|
+
const { SpatialReference } = zondy
|
|
696
699
|
// ES6引入方式
|
|
697
700
|
import { IGSVectorTileLayer, SpatialReference } from "@mapgis/webclient-common"
|
|
698
701
|
//初始化矢量瓦片图层
|
|
@@ -708,7 +711,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
708
711
|
|
|
709
712
|
|
|
710
713
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
711
|
-
const { IGSVectorTileLayer } =
|
|
714
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
712
715
|
// ES6引入方式
|
|
713
716
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
714
717
|
// 初始化矢量瓦片图层
|
|
@@ -722,7 +725,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
722
725
|
|
|
723
726
|
|
|
724
727
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
725
|
-
const { IGSVectorTileLayer } =
|
|
728
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
726
729
|
// ES6引入方式
|
|
727
730
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
728
731
|
// 初始化矢量瓦片图层
|
|
@@ -736,7 +739,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
736
739
|
|
|
737
740
|
|
|
738
741
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
739
|
-
const { IGSVectorTileLayer } =
|
|
742
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
740
743
|
// ES6引入方式
|
|
741
744
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
742
745
|
// 初始化矢量瓦片图层
|
|
@@ -784,8 +787,8 @@ const customLayer = new IGSVectorTileLayerCustom({
|
|
|
784
787
|
|
|
785
788
|
|
|
786
789
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
787
|
-
const { LabelClass } =
|
|
788
|
-
const { IGSVectorTileLayer } =
|
|
790
|
+
const { LabelClass } = zondy
|
|
791
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
789
792
|
// ES6引入方式
|
|
790
793
|
import { IGSVectorTileLayer, LabelClass } from "@mapgis/webclient-common"
|
|
791
794
|
// 初始化一个额外的图标DOM对象
|
|
@@ -879,7 +882,7 @@ igsVectorTileLayer.labelsRenderMode = 'on-screen'</code></pre>
|
|
|
879
882
|
|
|
880
883
|
|
|
881
884
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
882
|
-
const { IGSVectorTileLayer } =
|
|
885
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
883
886
|
// ES6引入方式
|
|
884
887
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
885
888
|
// 添加图层
|
|
@@ -894,7 +897,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
894
897
|
|
|
895
898
|
|
|
896
899
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
897
|
-
const { IGSVectorTileLayer } =
|
|
900
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
898
901
|
// ES6引入方式
|
|
899
902
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
900
903
|
// 添加图层
|
|
@@ -917,7 +920,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
917
920
|
|
|
918
921
|
|
|
919
922
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
920
|
-
const { IGSVectorTileLayer } =
|
|
923
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
921
924
|
// ES6引入方式
|
|
922
925
|
import { IGSVectorTileLayer } from "@mapgis/webclient-common"
|
|
923
926
|
// 添加图层
|
|
@@ -938,10 +941,10 @@ igsVectorTileLayer.on('layerview-created', function (result) {
|
|
|
938
941
|
|
|
939
942
|
|
|
940
943
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
941
|
-
const { IGSVectorTileLayer } =
|
|
942
|
-
const { UniqueValueRenderer } =
|
|
943
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
944
|
-
const { Color } =
|
|
944
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
945
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
946
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
947
|
+
const { Color } = zondy
|
|
945
948
|
// ES6引入方式
|
|
946
949
|
import { IGSVectorTileLayer,UniqueValueRenderer ,SimpleFillSymbol,SimpleLineSymbol,Color} from "@mapgis/webclient-common"
|
|
947
950
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -1006,10 +1009,10 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
1006
1009
|
|
|
1007
1010
|
|
|
1008
1011
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1009
|
-
const { IGSVectorTileLayer } =
|
|
1010
|
-
const { ClassBreakRenderer } =
|
|
1011
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1012
|
-
const { Color } =
|
|
1012
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
1013
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1014
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1015
|
+
const { Color } = zondy
|
|
1013
1016
|
// ES6引入方式
|
|
1014
1017
|
import { IGSVectorTileLayer,ClassBreakRenderer ,SimpleFillSymbol,SimpleLineSymbol,Color} from "@mapgis/webclient-commo
|
|
1015
1018
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -1067,10 +1070,10 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
1067
1070
|
|
|
1068
1071
|
|
|
1069
1072
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1070
|
-
const { IGSVectorTileLayer } =
|
|
1071
|
-
const { ClassBreakRenderer } =
|
|
1072
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1073
|
-
const { Color } =
|
|
1073
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
1074
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
1075
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1076
|
+
const { Color } = zondy
|
|
1074
1077
|
// ES6引入方式
|
|
1075
1078
|
import { IGSVectorTileLayer,ClassBreakRenderer ,SimpleFillSymbol,SimpleLineSymbol,Color} from "@mapgis/webclient-commo
|
|
1076
1079
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -1123,10 +1126,10 @@ subLayer.renderer = new ClassBreakRenderer({
|
|
|
1123
1126
|
|
|
1124
1127
|
|
|
1125
1128
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1126
|
-
const { IGSVectorTileLayer } =
|
|
1127
|
-
const { SimpleRenderer } =
|
|
1128
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
1129
|
-
const { Color } =
|
|
1129
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
1130
|
+
const { SimpleRenderer } = zondy.renderer
|
|
1131
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
1132
|
+
const { Color } = zondy
|
|
1130
1133
|
// ES6引入方式
|
|
1131
1134
|
import { IGSVectorTileLayer,SimpleRenderer ,SimpleFillSymbol,SimpleLineSymbol,Color} from "@mapgis/webclient-commo
|
|
1132
1135
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -1141,7 +1144,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
1141
1144
|
// 因为该数据的几何类型为区,因此设置区样式
|
|
1142
1145
|
symbol: new SimpleFillSymbol({
|
|
1143
1146
|
// 填充颜色
|
|
1144
|
-
color: new
|
|
1147
|
+
color: new zondy.Color(255, 0, 0),
|
|
1145
1148
|
// 外边线样式
|
|
1146
1149
|
outline: new SimpleLineSymbol({
|
|
1147
1150
|
// 线颜色
|
|
@@ -3712,7 +3715,7 @@ off-screen: 使用矢量瓦片来绘制注记;
|
|
|
3712
3715
|
|
|
3713
3716
|
|
|
3714
3717
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3715
|
-
const { IGSVectorTileLayer } =
|
|
3718
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
3716
3719
|
// ES6引入方式
|
|
3717
3720
|
import { IGSVectorTileLayer} from "@mapgis/webclient-common"
|
|
3718
3721
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
@@ -162,7 +162,8 @@
|
|
|
162
162
|
</td>
|
|
163
163
|
|
|
164
164
|
|
|
165
|
-
<td class="description last"><p>矢量瓦片子图层的id
|
|
165
|
+
<td class="description last"><p>矢量瓦片子图层的id,当加载MapGIS制作并由IGS发布的矢量瓦片时,如果矢量瓦片样式中有mapinfo参数,则子图层ID对应的是MapX中的图层索引;
|
|
166
|
+
如果没有mapinfo参数,则子图层ID对应的是矢量瓦片样式图层ID;当加载第三方发布的矢量瓦片时,子图层ID对应的是矢量瓦片样式图层ID;</p></td>
|
|
166
167
|
</tr>
|
|
167
168
|
|
|
168
169
|
|
|
@@ -404,8 +405,8 @@
|
|
|
404
405
|
|
|
405
406
|
|
|
406
407
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
407
|
-
const { LabelClass } =
|
|
408
|
-
const { IGSVectorTileLayer } =
|
|
408
|
+
const { LabelClass } = zondy
|
|
409
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
409
410
|
// ES6引入方式
|
|
410
411
|
import { IGSVectorTileLayer, LabelClass } from "@mapgis/webclient-common"
|
|
411
412
|
// 初始化一个额外的图标DOM对象
|
|
@@ -472,7 +473,7 @@ const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
|
472
473
|
|
|
473
474
|
|
|
474
475
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
475
|
-
const { LabelClass } =
|
|
476
|
+
const { LabelClass } = zondy
|
|
476
477
|
// ES6引入方式
|
|
477
478
|
import { LabelClass } from "@mapgis/webclient-common"
|
|
478
479
|
// 初始化一个额外的图标DOM对象
|
|
@@ -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
|
|