@mapgis/webclient-common 17.0.7 → 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 +12 -37
- package/dist/es5/webclient-common.min.js +15 -4
- package/dist/webclient-common-es6.min.js +16 -5
- 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/ArcGISMapImageSubLayer.html +311 -7
- package/documention/ArcGISMapServer.html +414 -10
- package/documention/ArcGISTileLayer.html +121 -13
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseRenderer.html +239 -0
- package/documention/BaseServer.html +11 -11
- package/documention/BaseView.html +458 -3
- package/documention/Basemap.html +3 -3
- package/documention/Callout3D.html +107 -0
- package/documention/Cesium3DTilesCacheLayer.html +149 -177
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +110 -7
- package/documention/ClassBreakInfo.html +0 -217
- package/documention/ClassBreakRenderer.html +413 -23
- package/documention/ClusterRenderer.html +247 -7
- package/documention/Config.html +4 -4
- package/documention/Extent.html +118 -15
- package/documention/ExtrudeSymbol3DLayer.html +109 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureLayer.html +116 -8
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol.html +107 -0
- package/documention/FillSymbol3DLayer.html +109 -2
- package/documention/Font.html +4 -4
- package/documention/GeoJSONLayer.html +142 -34
- package/documention/Geometry.html +138 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +147 -39
- package/documention/GroupLayer.html +120 -12
- package/documention/HeatmapRenderer.html +107 -0
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +46 -46
- package/documention/IGSMapImageSubLayer.html +307 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSSceneSubLayer.html +213 -33
- package/documention/IGSTileLayer.html +126 -19
- package/documention/IGSVectorTileLayer.html +230 -43
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/IconSymbol3DLayer.html +111 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +10 -5
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/Layer.html +244 -9
- package/documention/LineCallout3D.html +107 -0
- package/documention/LineString.html +113 -10
- package/documention/LineSymbol.html +107 -0
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +109 -2
- package/documention/M3DModelCacheLayer.html +133 -79
- package/documention/M3DServer.html +12 -12
- package/documention/Map.html +32 -5
- package/documention/MapGISTextSymbol.html +110 -3
- package/documention/MapImageLayer.html +527 -16
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +204 -3
- package/documention/MarkerSymbol.html +107 -0
- package/documention/MultiLineString.html +116 -13
- package/documention/MultiPoint.html +113 -10
- package/documention/MultiPolygon.html +112 -9
- package/documention/OGCLayer.html +116 -8
- package/documention/ObjectSymbol3DLayer.html +111 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/OverlayLayer.html +116 -8
- package/documention/PathSymbol3DLayer.html +109 -2
- package/documention/PictureFillSymbol.html +169 -8
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +12 -12
- package/documention/Point.html +115 -12
- package/documention/PointSymbol3D.html +3 -3
- package/documention/Polygon.html +117 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +429 -8
- package/documention/RandomRenderer.html +108 -1
- package/documention/RankRenderer.html +109 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +12 -12
- package/documention/SceneLayer.html +116 -8
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +10164 -130
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +110 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +116 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchBaseDrawTool.html +181 -3
- package/documention/SketchCircleDrawTool.html +159 -3
- package/documention/SketchEditor.html +2 -2
- package/documention/SketchEditorCesium.html +1 -1
- package/documention/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- package/documention/SketchExtentDrawTool.html +159 -3
- package/documention/SketchFreehandPolygonDrawTool.html +159 -3
- package/documention/SketchFreehandPolylineDrawTool.html +159 -3
- package/documention/SketchPointDrawTool.html +159 -3
- package/documention/SketchPolygonDrawTool.html +318 -6
- package/documention/SketchPolylineDrawTool.html +318 -6
- package/documention/SpatialReference.html +1 -1
- package/documention/SubLayer.html +296 -26
- package/documention/Symbol.html +134 -1
- package/documention/Symbol3DLayer.html +107 -0
- package/documention/Symbol3DVerticalOffset.html +107 -0
- package/documention/TerrainCacheLayer.html +133 -165
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +111 -4
- package/documention/TextSymbol3DLayer.html +109 -2
- package/documention/ThemeServer.html +13 -13
- package/documention/TileLayer.html +116 -8
- package/documention/TileServer.html +12 -12
- package/documention/UniqueValueInfo.html +0 -217
- package/documention/UniqueValueRenderer.html +125 -18
- package/documention/UnknownLayer.html +116 -8
- package/documention/VectorTileLayer.html +117 -9
- package/documention/VectorTileServer.html +11 -11
- package/documention/VectorTileSubLayer.html +304 -0
- package/documention/VideoMapView.html +4 -4
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +140 -32
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +131 -23
- package/documention/WMSServer.html +12 -12
- package/documention/WMSSubLayer.html +218 -7
- package/documention/WMTSLayer.html +126 -18
- package/documention/WMTSServer.html +12 -12
- package/documention/WMTSSubLayer.html +116 -8
- package/documention/WPSServer.html +10 -10
- package/documention/WaterSymbol3DLayer.html +107 -0
- package/documention/WebTileLayer.html +121 -13
- 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 +1024 -1874
- package/documention/index.html +84 -78
- 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/documention/scripts/sideBar.js +16 -2
- package/documention/tutorial-/346/270/262/346/237/223/345/231/250.html +5 -1
- package/documention/tutorial-/347/254/246/345/217/267.html +52 -6
- package/documention/tutorial-/350/241/250/350/276/276/345/274/217.html +293 -1
- package/package.json +14 -13
|
@@ -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/>
|
|
@@ -158,7 +161,7 @@ if(layer.loadStatus === 'loaded') {<br/>
|
|
|
158
161
|
<td class="description last"><p>服务基地址,和style参数二者选其一:<br>
|
|
159
162
|
IGS1.0的服务基地址为:http://{ip}:6163/igs/rest/mrcs/vtiles/{serviceName}<br>
|
|
160
163
|
需要注意由于igs1.0版本不再新增功能,无法解析矢量瓦片Lod信息以及坐标系信息,目前需要在矢量瓦片图层接口上显式设置坐标系信息,默认坐标系3857,可选4326或3857,参考示例:<a href='#igs-1'>[IGS1.0的矢量瓦片示例]</a><br/>
|
|
161
|
-
IGS2.0的服务基地址为:http://{ip}:{port}/igs/rest/services/
|
|
164
|
+
IGS2.0的服务基地址为:http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer<br>
|
|
162
165
|
参考示例:<a href='#igs-2'>[IGS2.0的矢量瓦片示例]</a><br/>
|
|
163
166
|
服务基地址也支持传入矢量瓦片样式文件地址:<br>
|
|
164
167
|
IGS1.0的样式文件地址:http://{ip}:6163/igs/rest/mrcs/vtiles/styles/{样式文件名称}.json<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,13 +882,13 @@ 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
|
// 添加图层
|
|
886
889
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
887
890
|
// 服务基地址
|
|
888
|
-
url: 'http://{ip}:{port}/igs/rest/services/
|
|
891
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer',
|
|
889
892
|
//默认不设置sublayers,加载全部图层
|
|
890
893
|
});</code></pre>
|
|
891
894
|
|
|
@@ -894,13 +897,13 @@ 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
|
// 添加图层
|
|
901
904
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
902
905
|
// 服务基地址
|
|
903
|
-
url: 'http://{ip}:{port}/igs/rest/services/
|
|
906
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer',
|
|
904
907
|
// 根据id显示子图层
|
|
905
908
|
sublayers: [
|
|
906
909
|
{
|
|
@@ -917,13 +920,13 @@ 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
|
// 添加图层
|
|
924
927
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
925
928
|
// 服务基地址
|
|
926
|
-
url: 'http://{ip}:{port}/igs/rest/services/
|
|
929
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer'
|
|
927
930
|
});
|
|
928
931
|
igsVectorTileLayer.on('layerview-created', function (result) {
|
|
929
932
|
console.log("加载完毕:", result.layer)
|
|
@@ -938,15 +941,15 @@ 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({
|
|
948
951
|
// 服务基地址,当不指定图层名称时,默认查询第一个子图层
|
|
949
|
-
url: 'http://{ip}:{port}/igs/rest/services/
|
|
952
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer',
|
|
950
953
|
// 设置子图层专题图
|
|
951
954
|
sublayers: [
|
|
952
955
|
{
|
|
@@ -1006,15 +1009,15 @@ 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({
|
|
1016
1019
|
// 服务基地址,当不指定图层名称时,默认查询第一个子图层
|
|
1017
|
-
url: 'http://{ip}:{port}/igs/rest/services/
|
|
1020
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer',
|
|
1018
1021
|
// 设置子图层专题图
|
|
1019
1022
|
sublayers: [
|
|
1020
1023
|
{
|
|
@@ -1067,15 +1070,15 @@ 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({
|
|
1077
1080
|
// 服务基地址
|
|
1078
|
-
url: 'http://{ip}:{port}/igs/rest/services/
|
|
1081
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer'
|
|
1079
1082
|
});
|
|
1080
1083
|
// 根据id获取子图层
|
|
1081
1084
|
const subLayer = igsVectorTileLayer.findSublayerById('子图层id')
|
|
@@ -1123,15 +1126,15 @@ 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({
|
|
1133
1136
|
// 服务基地址
|
|
1134
|
-
url: 'http://{ip}:{port}/igs/rest/services/
|
|
1137
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer',
|
|
1135
1138
|
// 设置子图层专题图
|
|
1136
1139
|
sublayers: [{
|
|
1137
1140
|
// 子图层id
|
|
@@ -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
|
// 线颜色
|
|
@@ -2340,13 +2343,13 @@ off-screen: 使用矢量瓦片来绘制注记;
|
|
|
2340
2343
|
|
|
2341
2344
|
|
|
2342
2345
|
|
|
2343
|
-
<dt class="inherited-from">Inherited From:</dt>
|
|
2344
|
-
<dd class="inherited-from"><ul class="dummy"><li>
|
|
2345
|
-
<a goto="url" link="VectorTileLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="VectorTileLayer#url" VectorTileLayer.html#url>VectorTileLayer#url</a>
|
|
2346
|
-
</li></ul></dd>
|
|
2347
|
-
|
|
2348
2346
|
|
|
2349
2347
|
|
|
2348
|
+
<dt class="tag-overrides">Overrides:</dt>
|
|
2349
|
+
<dd class="tag-overrides"><ul class="dummy"><li>
|
|
2350
|
+
<a class="mapgis-link-name" title="VectorTileLayer#url" VectorTileLayer.html#url>VectorTileLayer#url</a>
|
|
2351
|
+
</li></ul></dd>
|
|
2352
|
+
|
|
2350
2353
|
|
|
2351
2354
|
|
|
2352
2355
|
|
|
@@ -2418,6 +2421,16 @@ off-screen: 使用矢量瓦片来绘制注记;
|
|
|
2418
2421
|
<td class="name"><code><p>通过传入的json构造并返回一个新的VectorTileLayer对象</code></td>
|
|
2419
2422
|
</tr>
|
|
2420
2423
|
|
|
2424
|
+
<tr class="deep-level-0">
|
|
2425
|
+
<td class="name"><code><a href="#_initSubLayerOptions">_initSubLayerOptions</a></code></td>
|
|
2426
|
+
<td class="name">
|
|
2427
|
+
<code>
|
|
2428
|
+
|
|
2429
|
+
</code>
|
|
2430
|
+
</td>
|
|
2431
|
+
<td class="name"><code><p>通过元信息中获取的子图层参数和用户设置的参数,构造MapGIS矢量瓦片子图层的初始化参数数组</p></code></td>
|
|
2432
|
+
</tr>
|
|
2433
|
+
|
|
2421
2434
|
<tr class="deep-level-0">
|
|
2422
2435
|
<td class="name"><code><a href="#clone">clone</a></code></td>
|
|
2423
2436
|
<td class="name">
|
|
@@ -2892,6 +2905,180 @@ off-screen: 使用矢量瓦片来绘制注记;
|
|
|
2892
2905
|
|
|
2893
2906
|
|
|
2894
2907
|
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
|
|
2911
|
+
</div>
|
|
2912
|
+
|
|
2913
|
+
<div class="member">
|
|
2914
|
+
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
<h4 class="name" id="_initSubLayerOptions">
|
|
2918
|
+
<a class="href-link" href="#_initSubLayerOptions">#</a>
|
|
2919
|
+
|
|
2920
|
+
<span class="code-name" id="_initSubLayerOptions" style="font-size:30px">
|
|
2921
|
+
|
|
2922
|
+
_initSubLayerOptions<span class="signature">(serverSubLayers, clientSubLayers)</span>
|
|
2923
|
+
|
|
2924
|
+
</span>
|
|
2925
|
+
</h4>
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
<div class="description">
|
|
2930
|
+
<p>通过元信息中获取的子图层参数和用户设置的参数,构造MapGIS矢量瓦片子图层的初始化参数数组</p>
|
|
2931
|
+
</div>
|
|
2932
|
+
|
|
2933
|
+
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
|
|
2941
|
+
|
|
2942
|
+
<h4>参数</h4>
|
|
2943
|
+
|
|
2944
|
+
<div class="table-container">
|
|
2945
|
+
<table class="params table">
|
|
2946
|
+
<thead>
|
|
2947
|
+
<tr>
|
|
2948
|
+
|
|
2949
|
+
<th>名称</th>
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
<th>类型</th>
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
|
|
2956
|
+
<th class="last">描述</th>
|
|
2957
|
+
</tr>
|
|
2958
|
+
</thead>
|
|
2959
|
+
|
|
2960
|
+
<tbody>
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
|
|
2964
|
+
<tr class="deep-level-0">
|
|
2965
|
+
|
|
2966
|
+
<td class="name"><code>serverSubLayers</code></td>
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
<td class="type">
|
|
2970
|
+
|
|
2971
|
+
|
|
2972
|
+
<span class="param-type">
|
|
2973
|
+
|
|
2974
|
+
Array.<Object>
|
|
2975
|
+
|
|
2976
|
+
</span>
|
|
2977
|
+
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
</td>
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
<td class="description last"><p>服务器端获取的子图层参数,同时也是最终的构造参数</p></td>
|
|
2986
|
+
</tr>
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
|
|
2993
|
+
<tr class="deep-level-0">
|
|
2994
|
+
|
|
2995
|
+
<td class="name"><code>clientSubLayers</code></td>
|
|
2996
|
+
|
|
2997
|
+
|
|
2998
|
+
<td class="type">
|
|
2999
|
+
|
|
3000
|
+
|
|
3001
|
+
<span class="param-type">
|
|
3002
|
+
|
|
3003
|
+
Array.<Object>
|
|
3004
|
+
|
|
3005
|
+
</span>
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
|
|
3009
|
+
|
|
3010
|
+
</td>
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
<td class="description last"><p>客户端获取的子图层参数</p></td>
|
|
3015
|
+
</tr>
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
|
|
3020
|
+
</tbody>
|
|
3021
|
+
</table>
|
|
3022
|
+
</div>
|
|
3023
|
+
|
|
3024
|
+
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
<dl class="details">
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
|
|
3040
|
+
|
|
3041
|
+
|
|
3042
|
+
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
|
|
3059
|
+
|
|
3060
|
+
|
|
3061
|
+
</dl>
|
|
3062
|
+
|
|
3063
|
+
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
|
|
3068
|
+
|
|
3069
|
+
|
|
3070
|
+
|
|
3071
|
+
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
|
|
3078
|
+
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
|
|
2895
3082
|
|
|
2896
3083
|
|
|
2897
3084
|
|
|
@@ -3528,12 +3715,12 @@ off-screen: 使用矢量瓦片来绘制注记;
|
|
|
3528
3715
|
|
|
3529
3716
|
|
|
3530
3717
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3531
|
-
const { IGSVectorTileLayer } =
|
|
3718
|
+
const { IGSVectorTileLayer } = zondy.layer
|
|
3532
3719
|
// ES6引入方式
|
|
3533
3720
|
import { IGSVectorTileLayer} from "@mapgis/webclient-common"
|
|
3534
3721
|
const igsVectorTileLayer = new IGSVectorTileLayer({
|
|
3535
3722
|
// 服务基地址
|
|
3536
|
-
url: 'http://{ip}:{port}/igs/rest/services/
|
|
3723
|
+
url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/VectorTileServer'
|
|
3537
3724
|
});
|
|
3538
3725
|
map.add(igsVectorTileLayer);
|
|
3539
3726
|
// 根据id获取子图层
|
|
@@ -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
|
|
|
@@ -542,6 +542,24 @@ const iconSymbol3DLayer = new IconSymbol3DLayer({
|
|
|
542
542
|
<td class="name"><code><p>符号的额外构造参数,该构造参数是地图引擎的额外构造参数,在此设置了之后,会覆盖该符号转换好地图引擎的构造参数</p></code></td>
|
|
543
543
|
</tr>
|
|
544
544
|
|
|
545
|
+
<tr class="deep-level-0">
|
|
546
|
+
<td class="name"><code><a href="#id">id</a></code></td>
|
|
547
|
+
<td class="name">
|
|
548
|
+
<code>
|
|
549
|
+
|
|
550
|
+
<span class="param-type">
|
|
551
|
+
|
|
552
|
+
String
|
|
553
|
+
|
|
554
|
+
</span>
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
</code>
|
|
559
|
+
</td>
|
|
560
|
+
<td class="name"><code><p>符号id</p></code></td>
|
|
561
|
+
</tr>
|
|
562
|
+
|
|
545
563
|
<tr class="deep-level-0">
|
|
546
564
|
<td class="name"><code><a href="#material">material</a></code></td>
|
|
547
565
|
<td class="name">
|
|
@@ -933,6 +951,95 @@ const iconSymbol3DLayer = new IconSymbol3DLayer({
|
|
|
933
951
|
|
|
934
952
|
|
|
935
953
|
|
|
954
|
+
<dt class="tag-default">Default Value:</dt>
|
|
955
|
+
<dd class="tag-default"><ul class="dummy">
|
|
956
|
+
<li>{}</li>
|
|
957
|
+
</ul></dd>
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
</dl>
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
</div>
|
|
973
|
+
|
|
974
|
+
<div class="member">
|
|
975
|
+
|
|
976
|
+
<span class="method-parameter is-pulled-right">
|
|
977
|
+
<label>类型:</label>
|
|
978
|
+
|
|
979
|
+
<span class="param-type">
|
|
980
|
+
|
|
981
|
+
String
|
|
982
|
+
|
|
983
|
+
</span>
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
</span>
|
|
988
|
+
|
|
989
|
+
<h4 class="name" id="id">
|
|
990
|
+
<a class="href-link" href="#id">#</a>
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
<span class='tag'>readonly</span>
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
<span class="code-name">
|
|
997
|
+
id
|
|
998
|
+
</span>
|
|
999
|
+
|
|
1000
|
+
</h4>
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
<div class="description">
|
|
1006
|
+
<p>符号id</p>
|
|
1007
|
+
</div>
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
<dl class="details">
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1021
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
1022
|
+
<a goto="id" link="Symbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Symbol#id" Symbol.html#id>Symbol#id</a>
|
|
1023
|
+
</li></ul></dd>
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
936
1043
|
|
|
937
1044
|
|
|
938
1045
|
|