@mapgis/webclient-cesium-plugin 17.2.7 → 17.2.10
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 +25 -1
- package/dist/es5/webclient-cesium-plugin.min.js +3 -3
- package/dist/es5/webclient-common.min.js +3 -3
- package/dist/webclient-cesium-plugin-es6.min.js +3 -3
- package/documention/AlgorithmLib.html +118 -12
- package/documention/AngulationTool.html +158 -16
- package/documention/AnimationTool.html +148 -34
- package/documention/ArcGISMapServerImageryProvider.html +2 -2
- package/documention/ArcGISTileServerImageryProvider.html +2 -2
- package/documention/ArcGISVectorTileImageryProvider.html +1 -1
- package/documention/Cesium.Material.html +580 -0
- package/documention/Cesium.Viewer.html +1241 -0
- package/documention/Cesium3DTileset.html +691 -0
- package/documention/CesiumHeatmap.html +123 -2439
- package/documention/CesiumTerrainProvider.html +322 -10
- package/documention/CircleWaveMaterialProperty.html +120 -17
- package/documention/CollisionDetectionByRender.html +116 -10
- package/documention/CompatibleFunc.html +731 -0
- package/documention/CustomProjection.html +1208 -0
- package/documention/CustomTilingScheme.html +2 -2
- package/documention/CutFillAnalysis.html +1943 -0
- package/documention/CuttingTool.html +154 -238
- package/documention/Deferred.html +116 -10
- package/documention/DrawElement.html +125 -10
- package/documention/DrawTool.html +117 -11
- package/documention/EditTool.html +117 -11
- package/documention/FloodAnalysis.html +1895 -0
- package/documention/FloodAnalysisReflection.html +127 -15
- package/documention/GlobeIndependentTranslucency.html +121 -13
- package/documention/Graphic.html +233 -585
- package/documention/GraphicTransformTool.html +1207 -0
- package/documention/GraphicsLayer.html +207 -212
- package/documention/HeightLimited.html +127 -15
- package/documention/ISSceneLayerUtil.html +329 -9
- package/documention/KeyboardCameraController.html +118 -10
- package/documention/MapGISDynamicLabelCollection.html +1471 -0
- package/documention/MapGISM3DSet.html +728 -0
- package/documention/MapGISMapServerImageryProvider.html +2 -2
- package/documention/MapGISTerrainProvider.html +4 -4
- package/documention/MapGISTileAvailability.html +1546 -0
- package/documention/MapGISTileServerImageryProvider.html +2 -33
- package/documention/MapGISVectorTileImageryProvider.html +2 -2
- package/documention/MeasureAreaTool.html +177 -62
- package/documention/MeasureLengthTool.html +179 -64
- package/documention/MeasureSlopeTool.html +129 -15
- package/documention/ModelEditor.html +132 -21
- package/documention/ModelFilterTool.html +213 -23
- package/documention/ModelTransformTool.html +191 -38
- package/documention/NavigationTool.html +694 -0
- package/documention/OpenWeatherImageryProvider.html +766 -0
- package/documention/PolylineTrailLinkMaterialProperty.html +120 -17
- package/documention/PostProcessStageLibrary.html +118 -12
- package/documention/Promise.html +119 -13
- package/documention/RadarMaterialProperty.html +120 -17
- package/documention/ReImg.html +133 -9
- package/documention/RiverGeometry.html +126 -20
- package/documention/RoamParticle.html +119 -9
- package/documention/S3MTileset.html +136 -10
- package/documention/SceneView.html +4993 -0
- package/documention/SceneViewCesium.html +6 -6
- package/documention/SelectTool.html +116 -38
- package/documention/ShadowRateAnalysis.html +117 -18
- package/documention/ShadowRateDrawCommand.html +115 -9
- package/documention/SketchEditor.html +1774 -0
- package/documention/SketchEditorCesium.html +1 -1
- package/documention/SkyLineAnalysis.html +9 -9
- package/documention/StableParticle.html +119 -9
- package/documention/Style.html +154 -533
- package/documention/TerrainAnalyse.html +265 -40
- package/documention/TerrainProfile.html +128 -16
- package/documention/ThemeManager.html +2237 -0
- package/documention/Tooltip.html +115 -9
- package/documention/TriangulationTool.html +176 -61
- package/documention/VisiblityAnalysis.html +132 -24
- package/documention/WaterReflection.html +132 -20
- package/documention/WebMapServiceImageryProvider.html +2 -2
- package/documention/WebMapTileServiceImageryProvider.html +2 -2
- package/documention/Wind3D.html +122 -11
- package/documention/createColorTexture.html +608 -0
- package/documention/index.html +5 -5
- package/documention/initializeOptions.html +561 -0
- package/documention/isCounterClockwise.html +760 -0
- package/package.json +1 -1
package/documention/Graphic.html
CHANGED
|
@@ -104,27 +104,129 @@
|
|
|
104
104
|
|
|
105
105
|
<nav>
|
|
106
106
|
|
|
107
|
-
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a
|
|
107
|
+
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AlgorithmLib"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AlgorithmLib.html">AlgorithmLib</a><span style="display: none;"><p>通用算法工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AngulationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AngulationTool.html">AngulationTool</a><span style="display: none;"><p>角度测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="AnimationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AnimationTool.html">AnimationTool</a><span style="display: none;"><p>场景漫游工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISMapServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapServerImageryProvider.html">ArcGISMapServerImageryProvider</a><span style="display: none;"><p>ArcGIS地图图片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISTileServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISTileServerImageryProvider.html">ArcGISTileServerImageryProvider</a><span style="display: none;"><p>ArcGIS瓦片图层,现已不支持通过构造函数(new ArcGISTileServerImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISVectorTileImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISVectorTileImageryProvider.html">ArcGISVectorTileImageryProvider</a><span style="display: none;"><p>ArcGIS矢量瓦片图层,现已不支持通过构造函数(new ArcGISVectorTileImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Cesium3DTileset"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Cesium3DTileset.html">Cesium3DTileset</a><span style="display: none;"><p>Cesium3DTileset对象,现已不支持通过构造函数(new Cesium3DTileset())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Cesium.Material"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Cesium.Material.html">Material</a><span style="display: none;"><p>新增了部分Cesium材质<br>
|
|
108
|
+
《PolylineTrailLink材质》<br>
|
|
109
|
+
参考示例:
|
|
110
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-polyline'>《线示例》</a>
|
|
111
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-wall'>《墙示例》</a><br>
|
|
112
|
+
color: 材质颜色,Cesium.Color.WHITE<br>
|
|
113
|
+
image: 材质使用的图片,Cesium.Material.PolylineTrailLinkImage<br>
|
|
114
|
+
duration: 持续时间,100.0<br>
|
|
115
|
+
direction: 方向,1.0<br>
|
|
116
|
+
repeat: 重复次数,new Cesium.Cartesian2(1.0, 1.0)<br><br>
|
|
117
|
+
《CircleWaveMaterial材质》<br>
|
|
118
|
+
参考示例:
|
|
119
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a>
|
|
120
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circular'>《圆锥示例》</a><br>
|
|
121
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
122
|
+
duration: 持续时间,100.0<br>
|
|
123
|
+
count: 方向,1.0<br>
|
|
124
|
+
gradient: 渐变因子,0.1<br><br>
|
|
125
|
+
《RadarMaterial材质》<br>
|
|
126
|
+
参考示例:
|
|
127
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
128
|
+
color: 材质颜色,Cesium.Color.WHITE<br>
|
|
129
|
+
speed: 速度,1<br><br>
|
|
130
|
+
《AspectArrow材质》
|
|
131
|
+
AspectArrowMap: 箭头图片,Cesium.Material.DefaultImageId<br>
|
|
132
|
+
repeat: 箭头重复次数,Cesium.Cartesian2(1.0, 1.0)<br><br>
|
|
133
|
+
《TextImage材质》<br>
|
|
134
|
+
image: 文字图片,Cesium.Material.DefaultImageId<br>
|
|
135
|
+
repeat: 图片重复次数,Cesium.Cartesian2(1.0, 1.0)<br>
|
|
136
|
+
breathingLight: 是否开启呼吸灯,false<br>
|
|
137
|
+
duration: 运行周期,1000<br><br>
|
|
138
|
+
《LineFlickerMaterialType材质》<br>
|
|
139
|
+
参考示例:
|
|
140
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
141
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
142
|
+
speed: 速度,5<br><br>
|
|
143
|
+
《CircleScanMaterialType材质》<br>
|
|
144
|
+
参考示例:
|
|
145
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
146
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
147
|
+
speed: 速度,10<br><br>
|
|
148
|
+
《CirclePulseMaterialType材质》<br>
|
|
149
|
+
参考示例:
|
|
150
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
151
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
152
|
+
speed: 速度,10<br><br>
|
|
153
|
+
《CircleDiffuseMaterialType材质》<br>
|
|
154
|
+
参考示例:
|
|
155
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
156
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
157
|
+
speed: 速度,10<br><br>
|
|
158
|
+
《ScanlineType材质》<br>
|
|
159
|
+
参考示例:
|
|
160
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
161
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
162
|
+
speed: 速度,10<br><br>
|
|
163
|
+
《CircleFadeMaterialType材质》<br>
|
|
164
|
+
参考示例:
|
|
165
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
166
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
167
|
+
speed: 速度,10<br><br>
|
|
168
|
+
《CircleColorfulMaterialType材质》<br>
|
|
169
|
+
参考示例:
|
|
170
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
171
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
172
|
+
speed: 速度,10<br><br>
|
|
173
|
+
《CircleSpiralMaterialType材质》<br>
|
|
174
|
+
参考示例:
|
|
175
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
176
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
177
|
+
speed: 速度,10<br><br>
|
|
178
|
+
《CircleBlurMaterialType材质》<br>
|
|
179
|
+
参考示例:
|
|
180
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
181
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
182
|
+
speed: 速度,10<br><br>
|
|
183
|
+
《RadarScanMaterialType材质》<br>
|
|
184
|
+
参考示例:
|
|
185
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
186
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
187
|
+
speed: 速度,10<br><br>
|
|
188
|
+
《RadarLineMaterialType材质》<br>
|
|
189
|
+
参考示例:
|
|
190
|
+
<a href='http://webclient.smaryun.com/#/modules/cesium/tdGraph/tdGraphBase/td-graph-circle'>《圆示例》</a><br>
|
|
191
|
+
color: 材质颜色,Cesium.Color(1.0, 0.0, 0.0, 1.0)<br>
|
|
192
|
+
speed: 速度,10<br><br>
|
|
193
|
+
《RiverCoveringMaterial材质》<br>
|
|
194
|
+
color: 材质颜色,Cesium.Color(1, 1, 1, 0.7)<br>
|
|
195
|
+
animationSpeed: 播放速度,0.01<br>
|
|
196
|
+
image: 材质图片,CustomMaterial.DefaultImageId<br>
|
|
197
|
+
repeat: 重复次数,2.0<br><br></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Cesium.Viewer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Cesium.Viewer.html">Viewer</a><span style="display: none;"><p>重写Cesium.Viewer的方法</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CesiumHeatmap"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CesiumHeatmap.html">CesiumHeatmap</a><span style="display: none;"><p>热力图</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CesiumTerrainProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CesiumTerrainProvider.html">CesiumTerrainProvider</a><span style="display: none;"><p>Cesium地形图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CircleWaveMaterialProperty"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CircleWaveMaterialProperty.html">CircleWaveMaterialProperty</a><span style="display: none;"><p>动态圆波纹材质</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CollisionDetectionByRender"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CollisionDetectionByRender.html">CollisionDetectionByRender</a><span style="display: none;">undefined</span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CompatibleFunc"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CompatibleFunc.html">CompatibleFunc</a><span style="display: none;"><p>适配不同版本Cesium接口方法类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="createColorTexture"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="createColorTexture.html">createColorTexture</a><span style="display: none;"><p>天际线分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CustomProjection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CustomProjection.html">CustomProjection</a><span style="display: none;"><p>实现自定义投影坐标系与地理坐标系经纬度(弧度表示)之间的投影变换</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CustomTilingScheme"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CustomTilingScheme.html">CustomTilingScheme</a><span style="display: none;"><p>自定义瓦片平铺方案,在使用时有如下限制:</p>
|
|
108
198
|
<ol>
|
|
109
199
|
<li>裁图原点必须在地图范围的左上角区域;</li>
|
|
110
200
|
<li>仅支持如同谷歌地图的瓦片组织方式,即Y轴编号从上到下递增,X轴编号从左到右递增;</li>
|
|
111
|
-
</ol></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a
|
|
201
|
+
</ol></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CutFillAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CutFillAnalysis.html">CutFillAnalysis</a><span style="display: none;"><p>填挖方分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="CuttingTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CuttingTool.html">CuttingTool</a><span style="display: none;"><p>三维场景裁剪工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="DrawElement"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="DrawElement.html">DrawElement</a><span style="display: none;"><p>几何绘制类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="DrawTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="DrawTool.html">DrawTool</a><span style="display: none;"><p>绘制工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="DynamicEntityVisualizer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="DynamicEntityVisualizer.html">DynamicEntityVisualizer</a><span style="display: none;"><p>动态实体视图类封装
|
|
202
|
+
1、支持BillBoard、Label、GroundPrimitive等动态显示,处理覆盖问题
|
|
203
|
+
2、动态显隐效果
|
|
204
|
+
3、视窗内性能优化</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="EditTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="EditTool.html">EditTool</a><span style="display: none;"><p>标绘编辑工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FloodAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FloodAnalysis.html">FloodAnalysis</a><span style="display: none;"><p>洪水淹没分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FloodAnalysisReflection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FloodAnalysisReflection.html">FloodAnalysisReflection</a><span style="display: none;"><p>创建反射水面淹没分析的实例化对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GlobeIndependentTranslucency"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GlobeIndependentTranslucency.html">GlobeIndependentTranslucency</a><span style="display: none;"><p>单独控制地表透明度和影像图层的透明度,能够在开启地表透明后使部分影像图层不受地表透明的影响。</p>
|
|
112
205
|
<p>实例化该类的对象同时也能够使用原生的地表透明参数,能够直接在实例化对象上修改 <code>GlobeTranslucency</code> 的参数(原生的
|
|
113
206
|
viewer.scene.globe.translucency依然能够使用,但两者同时使用时会造成相互干扰,推荐仅使用GlobeIndependentTranslucency来实现地表透明),
|
|
114
|
-
使用原生的地表透明方式还是该类的地表透明方式由 <a
|
|
115
|
-
<p>1. 当 <a
|
|
207
|
+
使用原生的地表透明方式还是该类的地表透明方式由 <a href="GlobeIndependentTranslucency.html#imageryLayers"><code>GlobeIndependentTranslucency#imageryLayers</code></a> 数组是否为空来区分。</p>
|
|
208
|
+
<p>1. 当 <a href="GlobeIndependentTranslucency.html#imageryLayers"><code>GlobeIndependentTranslucency#imageryLayers</code></a> 不为空数组时,使用该类的地表透明方式,此时能够设置并生效的地表透明参数如下:</p>
|
|
116
209
|
<ul>
|
|
117
210
|
<li><code>globeFaceAlpha</code>:地表的透明度,若设置该参数则<code>globeFaceAlphaByDistance</code>不生效;</li>
|
|
118
211
|
<li><code>globeFaceAlphaByDistance</code>:地表的透明度根据视点距离的变化范围,当<code>globeFaceAlpha</code>为<code>undefined</code>时生效;</li>
|
|
119
212
|
</ul>
|
|
120
|
-
<p>2. 当 <a
|
|
213
|
+
<p>2. 当 <a href="GlobeIndependentTranslucency.html#imageryLayers"><code>GlobeIndependentTranslucency#imageryLayers</code></a> 为空数组时,使用原生的地表透明方式,此时能够设置并生效的地表透明参数如下:</p>
|
|
121
214
|
<ul>
|
|
122
215
|
<li><code>frontFaceAlpha</code>:地表正面的透明度;</li>
|
|
123
216
|
<li><code>frontFaceAlphaByDistance </code>:地表正面的透明度根据视点距离的变化范围;</li>
|
|
124
217
|
<li><code>backFaceAlpha</code>:地表背面的透明度;</li>
|
|
125
218
|
<li><code>backFaceAlphaByDistance</code>:地表背面的透明度根据视点距离的变化范围;</li>
|
|
126
219
|
<li><code>rectangle</code>:将地表透明的区域限制在一个矩形范围内。</li>
|
|
127
|
-
</ul></span></li><li
|
|
220
|
+
</ul></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Graphic"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Graphic.html">Graphic</a><span style="display: none;"><p>标绘图元对象<br>
|
|
221
|
+
请参考以下示例:<br>
|
|
222
|
+
<a href='#example1'>1、初始化标绘图层</a><br>
|
|
223
|
+
<a href='#example2'>2、添加一个多边形图元</a><br>
|
|
224
|
+
<a href='#example3'>3、新增一个类型为div的标绘对象</a><br>
|
|
225
|
+
<a href='http://webclient.smaryun.com/#/example-gallery/cesium#tdGraphBase' target='_blank'>4、更多示例</a></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GraphicsLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GraphicsLayer.html">GraphicsLayer</a><span style="display: none;"><p>标绘图层<br>
|
|
226
|
+
请参考以下示例:<br>
|
|
227
|
+
<a href='#example1'>1、初始化标绘图层</a><br>
|
|
228
|
+
<a href='#example2'>2、重写提示框对象</a><br>
|
|
229
|
+
<a href='http://webclient.smaryun.com/#/example-gallery/cesium#tdGraphBase' target='_blank'>3、更多示例</a></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GraphicTransformTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GraphicTransformTool.html">GraphicTransformTool</a><span style="display: none;"><p>基础标绘变换工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="HeightLimited"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="HeightLimited.html">HeightLimited</a><span style="display: none;"><p>限高分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="initializeOptions"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="initializeOptions.html">initializeOptions</a><span style="display: none;"><p>构建实例化对象的配置参数</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="isCounterClockwise"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="isCounterClockwise.html">isCounterClockwise</a><span style="display: none;"><p>地形剖切工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="KeyboardCameraController"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="KeyboardCameraController.html">KeyboardCameraController</a><span style="display: none;"><p>场景相机漫游工具,可以实现沉浸式的鼠标键盘漫游功能,具体操作方法如下:</p>
|
|
128
230
|
<p>1. 相机平移操作,这类操作不会改变相机的朝向,只会改变相机的位置:</p>
|
|
129
231
|
<ul>
|
|
130
232
|
<li><code>W</code>:相机位置向前移动</li>
|
|
@@ -158,7 +260,9 @@ viewer.scene.globe.translucency依然能够使用,但两者同时使用时会
|
|
|
158
260
|
<ul>
|
|
159
261
|
<li><code>Shift</code>:加速相机平移操作,调整移动步长为原来的两倍</li>
|
|
160
262
|
<li><code>R</code>:重置视角到初始视角,仅在参数<code>initView</code>定义时有效</li>
|
|
161
|
-
</ul></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a
|
|
263
|
+
</ul></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISDynamicLabelCollection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISDynamicLabelCollection.html">MapGISDynamicLabelCollection</a><span style="display: none;"><p>动态注记容器</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISM3DSet"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISM3DSet.html">MapGISM3DSet</a><span style="display: none;"><p>MapGISM3DSet对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISMapServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISMapServerImageryProvider.html">MapGISMapServerImageryProvider</a><span style="display: none;"><p>MapGIS地图图片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTerrainProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTerrainProvider.html">MapGISTerrainProvider</a><span style="display: none;"><p>MapGIS地形图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTileAvailability"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTileAvailability.html">MapGISTileAvailability</a><span style="display: none;"><p>MapGIS的TileAvailability类,重写了Cesium.TileAvailability的所有方法,支持在内部自动筛选要使用的地形图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISTileServerImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTileServerImageryProvider.html">MapGISTileServerImageryProvider</a><span style="display: none;"><p>MapGIS瓦片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapGISVectorTileImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISVectorTileImageryProvider.html">MapGISVectorTileImageryProvider</a><span style="display: none;"><p>MapGIS矢量瓦片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureAreaTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureAreaTool.html">MeasureAreaTool</a><span style="display: none;"><p>面积测量工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureLengthTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureLengthTool.html">MeasureLengthTool</a><span style="display: none;"><p>距离测量</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MeasureSlopeTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MeasureSlopeTool.html">MeasureSlopeTool</a><span style="display: none;"><p>坡度测量</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelEditor.html">ModelEditor</a><span style="display: none;"><p>模型矩阵编辑工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelFilterTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelFilterTool.html">ModelFilterTool</a><span style="display: none;"><p>模型空间过滤工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ModelTransformTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ModelTransformTool.html">ModelTransformTool</a><span style="display: none;"><p>模型变换工具集</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="NavigationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="NavigationTool.html">NavigationTool</a><span style="display: none;"><p>A mixin which adds the Compass/Navigation widget to the Viewer widget.
|
|
264
|
+
Rather than being called directly, this function is normally passed as
|
|
265
|
+
a parameter to <code>Viewer#extend</code>, as shown in the example below.</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="OpenWeatherImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="OpenWeatherImageryProvider.html">OpenWeatherImageryProvider</a><span style="display: none;"><p>OpenWeatherMap服务provider供给器</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="PolylineTrailLinkMaterialProperty"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PolylineTrailLinkMaterialProperty.html">PolylineTrailLinkMaterialProperty</a><span style="display: none;"><p>流动纹理线材质</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="PostProcessStageLibrary"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PostProcessStageLibrary.html">PostProcessStageLibrary</a><span style="display: none;"><p>用于创建后处理特效的扩展库</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="RadarMaterialProperty"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RadarMaterialProperty.html">RadarMaterialProperty</a><span style="display: none;"><p>雷达扫描材质</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ReImg"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ReImg.html">ReImg</a><span style="display: none;"><p>截图(保存图片)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="RoamParticle"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RoamParticle.html">RoamParticle</a><span style="display: none;"><p>跟随模型移动粒子特效</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="S3MTileset"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="S3MTileset.html">S3MTileset</a><span style="display: none;"><p>S3MTileset类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SelectTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SelectTool.html">SelectTool</a><span style="display: none;"><p>绘制工具</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ShadowRateAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ShadowRateAnalysis.html">ShadowRateAnalysis</a><span style="display: none;">undefined</span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="StableParticle"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="StableParticle.html">StableParticle</a><span style="display: none;"><p>固定位置粒子特效,可通过更改image与附加参数来实现火焰、喷泉、烟雾等粒子特效</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Style"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Style.html">Style</a><span style="display: none;"><p>标绘图元样式</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TerrainAnalyse"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TerrainAnalyse.html">TerrainAnalyse</a><span style="display: none;"><p>地形分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TerrainProfile"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TerrainProfile.html">TerrainProfile</a><span style="display: none;">undefined</span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ThemeManager"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ThemeManager.html">ThemeManager</a><span style="display: none;"><p>统计图</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TriangulationTool"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TriangulationTool.html">TriangulationTool</a><span style="display: none;"><p>三角测量</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="UrlTemplateImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="UrlTemplateImageryProvider.html">UrlTemplateImageryProvider</a><span style="display: none;"><p>网络瓦片图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="VisiblityAnalysis"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VisiblityAnalysis.html">VisiblityAnalysis</a><span style="display: none;"><p>通视分析</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WaterReflection"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WaterReflection.html">WaterReflection</a><span style="display: none;"><p>创建反射水面的实例化对象</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapServiceImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapServiceImageryProvider.html">WebMapServiceImageryProvider</a><span style="display: none;"><p>WMS图层,现已不支持通过构造函数(new WebMapServiceImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapTileServiceImageryProvider"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapTileServiceImageryProvider.html">WebMapTileServiceImageryProvider</a><span style="display: none;"><p>WMTS图层,现已不支持通过构造函数(new WebMapTileServiceImageryProvider())的方式初始化图层,而是使用fromUrl方法构造图层</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Wind3D"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Wind3D.html">Wind3D</a><span style="display: none;"><p>风场系统</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">工具类模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GeoJSONLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GeoJSONLayerUtil.html">GeoJSONLayerUtil</a><span style="display: none;"><p>GeoJSON图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="GraphicsLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GraphicsLayerUtil.html">GraphicsLayerUtil</a><span style="display: none;"><p>几何图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSFeatureLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSFeatureLayerUtil.html">IGSFeatureLayerUtil</a><span style="display: none;"><p>IGSFeature图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WFSLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WFSLayerUtil.html">WFSLayerUtil</a><span style="display: none;"><p>WFS图层的工具类</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ISSceneLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ISSceneLayerUtil.html">ISSceneLayerUtil</a><span style="display: none;"><p>IS场景图层的工具类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Popup"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Popup.html">Popup</a><span style="display: none;"><p>场景信息弹窗(cesium引擎)
|
|
162
266
|
参考示例:
|
|
163
267
|
<a href='#SceneView'>[初始化三维场景视图]</a>
|
|
164
268
|
<br>[ES5引入方式]:<br/>
|
|
@@ -170,7 +274,9 @@ zondy-popup__content 弹窗容器样式<br/>
|
|
|
170
274
|
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
171
275
|
zondy-popup__header 弹窗头部样式<br/>
|
|
172
276
|
zondy-popup__content 弹窗主体样式<br/>
|
|
173
|
-
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li
|
|
277
|
+
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SceneView"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SceneView.html">SceneView</a><span style="display: none;"><p>场景视图类<br/>
|
|
278
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/SceneView.html' target='_blank'>zondy.SceneView</a></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Screenshot"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>屏幕打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SketchEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditor.html">SketchEditor</a><span style="display: none;"><p>Cesium引擎草图编辑类<br/>
|
|
279
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/SketchEditor3D.html' target='_blank'>zondy.SketchEditor3D</a><br/>
|
|
174
280
|
<br>[ES5引入方式]:<br/>
|
|
175
281
|
const { SketchEditor } = zondy.tool.sketch <br/>
|
|
176
282
|
[ES6引入方式]:<br/>
|
|
@@ -215,7 +321,12 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
215
321
|
|
|
216
322
|
|
|
217
323
|
<div class="description">
|
|
218
|
-
<p
|
|
324
|
+
<p>标绘图元对象<br>
|
|
325
|
+
请参考以下示例:<br>
|
|
326
|
+
<a href='#example1'>1、初始化标绘图层</a><br>
|
|
327
|
+
<a href='#example2'>2、添加一个多边形图元</a><br>
|
|
328
|
+
<a href='#example3'>3、新增一个类型为div的标绘对象</a><br>
|
|
329
|
+
<a href='http://webclient.smaryun.com/#/example-gallery/cesium#tdGraphBase' target='_blank'>4、更多示例</a></p>
|
|
219
330
|
</div>
|
|
220
331
|
|
|
221
332
|
|
|
@@ -297,8 +408,33 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
297
408
|
</td>
|
|
298
409
|
|
|
299
410
|
|
|
300
|
-
<td class="description last"><p>图元类型<a
|
|
301
|
-
|
|
411
|
+
<td class="description last"><p>图元类型<a href="Graphic.html#.graphicType"><code>Graphic.graphicType</code></a></p></td>
|
|
412
|
+
</tr>
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
<tr class="deep-level-1">
|
|
418
|
+
|
|
419
|
+
<td class="name"><code>id</code></td>
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
<td class="type">
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
<span class="param-type">String</span>
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
</td>
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
<td class="default">
|
|
433
|
+
|
|
434
|
+
</td>
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
<td class="description last"><p>图元ID</p></td>
|
|
302
438
|
</tr>
|
|
303
439
|
|
|
304
440
|
|
|
@@ -327,7 +463,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
327
463
|
</td>
|
|
328
464
|
|
|
329
465
|
|
|
330
|
-
<td class="description last"><p>图元坐标信息,笛卡尔世界坐标为cartesian3,经纬度数组为例如[-115.0, 37.0, 100000.0, -107.0, 33.0, 150000.0]</p></td>
|
|
466
|
+
<td class="description last"><p>图元坐标信息,笛卡尔世界坐标为cartesian3,经纬度数组为例如[-115.0, 37.0, 100000.0, -107.0, 33.0, 150000.0],<a href='http://webclient.smaryun.com/static/modules/cesium/api/cesium/index.html?classFilter=Cartesian3' target='_blank'>详见Cesium.Cartesian3</a></p></td>
|
|
331
467
|
</tr>
|
|
332
468
|
|
|
333
469
|
|
|
@@ -353,7 +489,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
353
489
|
</td>
|
|
354
490
|
|
|
355
491
|
|
|
356
|
-
<td class="description last"><p>图元样式信息 详情参见<a
|
|
492
|
+
<td class="description last"><p>图元样式信息 详情参见<a href="Style.html"><code>Style</code></a></p></td>
|
|
357
493
|
</tr>
|
|
358
494
|
|
|
359
495
|
|
|
@@ -379,7 +515,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
379
515
|
</td>
|
|
380
516
|
|
|
381
517
|
|
|
382
|
-
<td class="description last"><p>编辑点样式信息 详情参见<a
|
|
518
|
+
<td class="description last"><p>编辑点样式信息 详情参见<a href="Style.html#.EditPointStyle"><code>Style.EditPointStyle</code></a></p></td>
|
|
383
519
|
</tr>
|
|
384
520
|
|
|
385
521
|
|
|
@@ -782,21 +918,31 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
782
918
|
|
|
783
919
|
|
|
784
920
|
|
|
921
|
+
|
|
922
|
+
<p class="summary"><h5>支持如下方法:</h5>
|
|
923
|
+
<a href='#addAttributes'>[1、给图元添加属性字段]</a><br/></p>
|
|
785
924
|
|
|
786
925
|
|
|
787
926
|
|
|
788
927
|
<h5>示例</h5>
|
|
789
928
|
|
|
929
|
+
<p class="code-caption"><h7 id='example1'>初始化标绘图层</h7></p>
|
|
930
|
+
|
|
790
931
|
|
|
791
|
-
<pre class="prettyprint"><code
|
|
792
|
-
|
|
932
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
933
|
+
const { GraphicsLayer, Graphic } = zondy.cesium
|
|
934
|
+
// ES6引入方式
|
|
935
|
+
import { GraphicsLayer, Graphic } from "@mapgis/webclient-cesium-plugin"
|
|
936
|
+
|
|
937
|
+
//初始化一个标绘图层
|
|
938
|
+
const graphicsLayer = new GraphicsLayer(viewer, {});
|
|
793
939
|
viewer.scene.layers.appendGraphicsLayer(graphicsLayer);
|
|
794
940
|
//添加一个Marker基础标绘对象
|
|
795
|
-
|
|
941
|
+
const marker = new Graphic({
|
|
796
942
|
//类型
|
|
797
943
|
type: 'marker',
|
|
798
944
|
//位置点
|
|
799
|
-
positions: [new Cesium.
|
|
945
|
+
positions: [new Cesium.Cartesian3(-1160028.4895404815, 5443801.569087819, 3103982.2120705717)],
|
|
800
946
|
//样式
|
|
801
947
|
style: {
|
|
802
948
|
labelStyle: {
|
|
@@ -805,7 +951,7 @@ var marker = new Cesium.Graphic({
|
|
|
805
951
|
//文字内容
|
|
806
952
|
text: '这是Marker',
|
|
807
953
|
//文字颜色
|
|
808
|
-
fillColor: Cesium.
|
|
954
|
+
fillColor: Cesium.Color.RED
|
|
809
955
|
},
|
|
810
956
|
billboardStyle: {
|
|
811
957
|
//billboard图片链接
|
|
@@ -818,28 +964,41 @@ var marker = new Cesium.Graphic({
|
|
|
818
964
|
//离地高度
|
|
819
965
|
offsetHeight: 100,
|
|
820
966
|
//marker的屏幕像素偏移
|
|
821
|
-
pixelOffset: new Cesium.
|
|
967
|
+
pixelOffset: new Cesium.Cartesian2(0, 0)
|
|
822
968
|
},
|
|
823
969
|
});
|
|
824
970
|
//添加Marker
|
|
825
971
|
graphicsLayer.addGraphic(marker);
|
|
826
972
|
//修改样式
|
|
827
973
|
marker.style.labelPlaceType = "leftCenter";
|
|
828
|
-
marker.style.labelStyle.fillColor = Cesium.
|
|
829
|
-
marker.style.billboardStyle.width = 100
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
974
|
+
marker.style.labelStyle.fillColor = Cesium.Color.BLUE;
|
|
975
|
+
marker.style.billboardStyle.width = 100;</code></pre>
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
<p class="code-caption"><h7 id='example2'>添加一个多边形图元</h7></p>
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
982
|
+
const { GraphicsLayer, Graphic } = zondy.cesium
|
|
983
|
+
// ES6引入方式
|
|
984
|
+
import { GraphicsLayer, Graphic } from "@mapgis/webclient-cesium-plugin"
|
|
985
|
+
|
|
986
|
+
//初始化一个标绘图层
|
|
987
|
+
const graphicsLayer = new GraphicsLayer(viewer, {});
|
|
988
|
+
viewer.scene.layers.appendGraphicsLayer(graphicsLayer);
|
|
989
|
+
|
|
990
|
+
// 添加一个多边形图元
|
|
991
|
+
const polygonGraphic = new Graphic({
|
|
833
992
|
type: 'polygon',
|
|
834
993
|
positions: [
|
|
835
|
-
Cesium.
|
|
836
|
-
Cesium.
|
|
837
|
-
Cesium.
|
|
838
|
-
Cesium.
|
|
839
|
-
Cesium.
|
|
994
|
+
Cesium.Cartesian3.fromDegrees(113.9514, 30.0129, 0),
|
|
995
|
+
Cesium.Cartesian3.fromDegrees(113.964, 30.0219, 0),
|
|
996
|
+
Cesium.Cartesian3.fromDegrees(113.9753, 30.015, 0),
|
|
997
|
+
Cesium.Cartesian3.fromDegrees(113.9624, 30.0075, 0),
|
|
998
|
+
Cesium.Cartesian3.fromDegrees(113.9514, 30.0129, 0)
|
|
840
999
|
],
|
|
841
1000
|
style: {
|
|
842
|
-
color: Cesium.
|
|
1001
|
+
color: Cesium.Color.AQUA
|
|
843
1002
|
}
|
|
844
1003
|
});
|
|
845
1004
|
//将标绘点添加入标绘图层
|
|
@@ -849,34 +1008,43 @@ polygonGraphic.transformX += 100;
|
|
|
849
1008
|
polygonGraphic.transformY += 2000;
|
|
850
1009
|
polygonGraphic.transformZ += 300;
|
|
851
1010
|
//通过经纬度计算笛卡尔平移向量
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
position1 = Cesium.
|
|
855
|
-
position2 = Cesium.
|
|
856
|
-
|
|
1011
|
+
const position1 = new Cesium.Cartographic(114.103, 30.25, 100);
|
|
1012
|
+
const position2 = new Cesium.Cartographic(114.211, 30.46, 100);
|
|
1013
|
+
position1 = Cesium.Cartesian3.fromDegrees(position1.longitude, position1.latitude, position1.height);
|
|
1014
|
+
position2 = Cesium.Cartesian3.fromDegrees(position2.longitude, position2.latitude, position2.height);
|
|
1015
|
+
const translate = Cesium.Cartesian3.subtract(position2, position1);
|
|
857
1016
|
polygonGraphic.transformX += translate.x;
|
|
858
1017
|
polygonGraphic.transformY += translate.y;
|
|
859
1018
|
polygonGraphic.transformZ += translate.z;
|
|
860
1019
|
//旋转多边形,修改heading、pitch、roll来实现三个轴向旋转,弧度值
|
|
861
1020
|
polygonGraphic.heading += 0.1;
|
|
862
1021
|
polygonGraphic.pitch += 0.1;
|
|
863
|
-
polygonGraphic.roll += 0.1
|
|
864
|
-
|
|
1022
|
+
polygonGraphic.roll += 0.1;</code></pre>
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
<p class="code-caption"><h7 id='example3'>新增一个类型为div的标绘对象</h7></p>
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
1029
|
+
const { GraphicsLayer, Graphic } = zondy.cesium
|
|
1030
|
+
// ES6引入方式
|
|
1031
|
+
import { GraphicsLayer, Graphic } from "@mapgis/webclient-cesium-plugin"
|
|
1032
|
+
|
|
865
1033
|
//新增一个类型为div的标绘对象
|
|
866
1034
|
//创建一个html字符串或者一个html标签对象
|
|
867
|
-
|
|
1035
|
+
const html = "<div style='width: 100px;height: 100px;background-color: #00A7AA;'>";
|
|
868
1036
|
//创建一个标绘对象
|
|
869
|
-
|
|
1037
|
+
const graphic = new Graphic({
|
|
870
1038
|
//标绘类型
|
|
871
1039
|
type: 'div',
|
|
872
1040
|
//标绘位置
|
|
873
|
-
positions: [Cesium.
|
|
1041
|
+
positions: [Cesium.Cartesian3.fromDegrees(114.285992, 30.585234, 0)],
|
|
874
1042
|
//标绘样式
|
|
875
1043
|
style: {
|
|
876
1044
|
//html字符串或标签对象
|
|
877
1045
|
html: html,
|
|
878
1046
|
//html相对原始位置的屏幕像素偏移
|
|
879
|
-
pixelOffset: new Cesium.
|
|
1047
|
+
pixelOffset: new Cesium.Cartesian2(0, 0),
|
|
880
1048
|
//额外抬升高度
|
|
881
1049
|
offsetHeight: 0
|
|
882
1050
|
},
|
|
@@ -889,7 +1057,7 @@ var graphic = new Cesium.Graphic({
|
|
|
889
1057
|
graphicsLayer.addGraphic(graphic);
|
|
890
1058
|
//创建完成后,实时修改
|
|
891
1059
|
graphic.style.html = "新的html";
|
|
892
|
-
graphic.style.pixelOffset = new Cesium.
|
|
1060
|
+
graphic.style.pixelOffset = new Cesium.Cartesian2(0, 156);
|
|
893
1061
|
graphic.style.offsetHeight = 2000;</code></pre>
|
|
894
1062
|
|
|
895
1063
|
|
|
@@ -1005,7 +1173,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1005
1173
|
</td>
|
|
1006
1174
|
|
|
1007
1175
|
|
|
1008
|
-
<td class="description last"><p>点,类型(type)为point时样式参数参照<a
|
|
1176
|
+
<td class="description last"><p>点,类型(type)为point时样式参数参照<a href="Style.html#.PointStyle"><code>Style.PointStyle</code></a></p></td>
|
|
1009
1177
|
</tr>
|
|
1010
1178
|
|
|
1011
1179
|
|
|
@@ -1042,7 +1210,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1042
1210
|
</td>
|
|
1043
1211
|
|
|
1044
1212
|
|
|
1045
|
-
<td class="description last"><p>marker,类型(type)为marker时样式参数参照<a
|
|
1213
|
+
<td class="description last"><p>marker,类型(type)为marker时样式参数参照<a href="Style.html#.MarkerStyle"><code>Style.MarkerStyle</code></a></p></td>
|
|
1046
1214
|
</tr>
|
|
1047
1215
|
|
|
1048
1216
|
|
|
@@ -1116,7 +1284,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1116
1284
|
</td>
|
|
1117
1285
|
|
|
1118
1286
|
|
|
1119
|
-
<td class="description last"><p>广告牌,类型(type)为billboard时样式参数参照<a
|
|
1287
|
+
<td class="description last"><p>广告牌,类型(type)为billboard时样式参数参照<a href="Style.html#.BillboardStyle"><code>Style.BillboardStyle</code></a></p></td>
|
|
1120
1288
|
</tr>
|
|
1121
1289
|
|
|
1122
1290
|
|
|
@@ -1153,7 +1321,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1153
1321
|
</td>
|
|
1154
1322
|
|
|
1155
1323
|
|
|
1156
|
-
<td class="description last"><p>线,类型(type)为polyline时样式参数参照<a
|
|
1324
|
+
<td class="description last"><p>线,类型(type)为polyline时样式参数参照<a href="Style.html#.PolylineStyle"><code>Style.PolylineStyle</code></a></p></td>
|
|
1157
1325
|
</tr>
|
|
1158
1326
|
|
|
1159
1327
|
|
|
@@ -1190,7 +1358,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1190
1358
|
</td>
|
|
1191
1359
|
|
|
1192
1360
|
|
|
1193
|
-
<td class="description last"><p>圆管线,类型(type)为polylineVolume时样式参数参照<a
|
|
1361
|
+
<td class="description last"><p>圆管线,类型(type)为polylineVolume时样式参数参照<a href="Style.html#.PolylineVolumeStyle"><code>Style.PolylineVolumeStyle</code></a></p></td>
|
|
1194
1362
|
</tr>
|
|
1195
1363
|
|
|
1196
1364
|
|
|
@@ -1227,7 +1395,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1227
1395
|
</td>
|
|
1228
1396
|
|
|
1229
1397
|
|
|
1230
|
-
<td class="description last"><p>面(区),类型(type)为polygon时样式参数参照<a
|
|
1398
|
+
<td class="description last"><p>面(区),类型(type)为polygon时样式参数参照<a href="Style.html#.PolygonStyle"><code>Style.PolygonStyle</code></a></p></td>
|
|
1231
1399
|
</tr>
|
|
1232
1400
|
|
|
1233
1401
|
|
|
@@ -1264,7 +1432,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1264
1432
|
</td>
|
|
1265
1433
|
|
|
1266
1434
|
|
|
1267
|
-
<td class="description last"><p>矩形,类型(type)为rectangle时样式参数参照<a
|
|
1435
|
+
<td class="description last"><p>矩形,类型(type)为rectangle时样式参数参照<a href="Style.html#.RectangleStyle"><code>Style.RectangleStyle</code></a></p></td>
|
|
1268
1436
|
</tr>
|
|
1269
1437
|
|
|
1270
1438
|
|
|
@@ -1301,7 +1469,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1301
1469
|
</td>
|
|
1302
1470
|
|
|
1303
1471
|
|
|
1304
|
-
<td class="description last"><p>正方形,类型(type)square<a
|
|
1472
|
+
<td class="description last"><p>正方形,类型(type)square<a href="Style.html#.SquareStyle"><code>Style.SquareStyle</code></a></p></td>
|
|
1305
1473
|
</tr>
|
|
1306
1474
|
|
|
1307
1475
|
|
|
@@ -1338,7 +1506,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1338
1506
|
</td>
|
|
1339
1507
|
|
|
1340
1508
|
|
|
1341
|
-
<td class="description last"><p>圆,类型(type)为circle时样式参数参照<a
|
|
1509
|
+
<td class="description last"><p>圆,类型(type)为circle时样式参数参照<a href="Style.html#.CircleStyle"><code>Style.CircleStyle</code></a></p></td>
|
|
1342
1510
|
</tr>
|
|
1343
1511
|
|
|
1344
1512
|
|
|
@@ -1375,7 +1543,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1375
1543
|
</td>
|
|
1376
1544
|
|
|
1377
1545
|
|
|
1378
|
-
<td class="description last"><p>方管线,类型(type)为corridor时样式参数参照<a
|
|
1546
|
+
<td class="description last"><p>方管线,类型(type)为corridor时样式参数参照<a href="Style.html#.CorridorStyle"><code>Style.CorridorStyle</code></a></p></td>
|
|
1379
1547
|
</tr>
|
|
1380
1548
|
|
|
1381
1549
|
|
|
@@ -1412,7 +1580,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1412
1580
|
</td>
|
|
1413
1581
|
|
|
1414
1582
|
|
|
1415
|
-
<td class="description last"><p>圆台(圆锥),类型(type)为cylinder时样式参数参照<a
|
|
1583
|
+
<td class="description last"><p>圆台(圆锥),类型(type)为cylinder时样式参数参照<a href="Style.html#.CylinderStyle"><code>Style.CylinderStyle</code></a></p></td>
|
|
1416
1584
|
</tr>
|
|
1417
1585
|
|
|
1418
1586
|
|
|
@@ -1449,7 +1617,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1449
1617
|
</td>
|
|
1450
1618
|
|
|
1451
1619
|
|
|
1452
|
-
<td class="description last"><p>椭球,类型(type)为ellipsoid时样式参数参照<a
|
|
1620
|
+
<td class="description last"><p>椭球,类型(type)为ellipsoid时样式参数参照<a href="Style.html#.EllipsoidStyle"><code>Style.EllipsoidStyle</code></a></p></td>
|
|
1453
1621
|
</tr>
|
|
1454
1622
|
|
|
1455
1623
|
|
|
@@ -1486,7 +1654,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1486
1654
|
</td>
|
|
1487
1655
|
|
|
1488
1656
|
|
|
1489
|
-
<td class="description last"><p>圆球,类型(type)为sphere时样式参数参照<a
|
|
1657
|
+
<td class="description last"><p>圆球,类型(type)为sphere时样式参数参照<a href="Style.html#.SphereStyle"><code>Style.SphereStyle</code></a></p></td>
|
|
1490
1658
|
</tr>
|
|
1491
1659
|
|
|
1492
1660
|
|
|
@@ -1523,7 +1691,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1523
1691
|
</td>
|
|
1524
1692
|
|
|
1525
1693
|
|
|
1526
|
-
<td class="description last"><p>墙,类型(type)为wall时样式参数参照<a
|
|
1694
|
+
<td class="description last"><p>墙,类型(type)为wall时样式参数参照<a href="Style.html#.WallStyle"><code>Style.WallStyle</code></a></p></td>
|
|
1527
1695
|
</tr>
|
|
1528
1696
|
|
|
1529
1697
|
|
|
@@ -1560,7 +1728,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1560
1728
|
</td>
|
|
1561
1729
|
|
|
1562
1730
|
|
|
1563
|
-
<td class="description last"><p>盒子,类型(type)为box时样式参数参照<a
|
|
1731
|
+
<td class="description last"><p>盒子,类型(type)为box时样式参数参照<a href="Style.html#.BoxStyle"><code>Style.BoxStyle</code></a></p></td>
|
|
1564
1732
|
</tr>
|
|
1565
1733
|
|
|
1566
1734
|
|
|
@@ -1597,7 +1765,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1597
1765
|
</td>
|
|
1598
1766
|
|
|
1599
1767
|
|
|
1600
|
-
<td class="description last"><p>gltf模型,类型(type)为model时样式参数参照<a
|
|
1768
|
+
<td class="description last"><p>gltf模型,类型(type)为model时样式参数参照<a href="Style.html#.ModelStyle"><code>Style.ModelStyle</code></a></p></td>
|
|
1601
1769
|
</tr>
|
|
1602
1770
|
|
|
1603
1771
|
|
|
@@ -1634,7 +1802,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
1634
1802
|
</td>
|
|
1635
1803
|
|
|
1636
1804
|
|
|
1637
|
-
<td class="description last"><p>河流,类型(type)为dynamicRiver时样式参数参照<a
|
|
1805
|
+
<td class="description last"><p>河流,类型(type)为dynamicRiver时样式参数参照<a href="Style.html#.RiverStyle"><code>Style.RiverStyle</code></a></p></td>
|
|
1638
1806
|
</tr>
|
|
1639
1807
|
|
|
1640
1808
|
|
|
@@ -2545,7 +2713,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
2545
2713
|
<span class="method-parameter is-pulled-right">
|
|
2546
2714
|
<label>类型:</label>
|
|
2547
2715
|
|
|
2548
|
-
<span class="param-type"><a
|
|
2716
|
+
<span class="param-type"><a href="GraphicsLayer.html">GraphicsLayer</a></span>
|
|
2549
2717
|
|
|
2550
2718
|
|
|
2551
2719
|
</span>
|
|
@@ -2973,7 +3141,7 @@ graphic.style.offsetHeight = 2000;</code></pre>
|
|
|
2973
3141
|
<span class="method-parameter is-pulled-right">
|
|
2974
3142
|
<label>类型:</label>
|
|
2975
3143
|
|
|
2976
|
-
<span class="param-type"><a
|
|
3144
|
+
<span class="param-type"><a href="Style.html">Style</a></span>
|
|
2977
3145
|
|
|
2978
3146
|
|
|
2979
3147
|
</span>
|
|
@@ -3287,7 +3455,7 @@ graphic.style.text = 'mapgispro';</code></pre>
|
|
|
3287
3455
|
|
|
3288
3456
|
|
|
3289
3457
|
<div class="description">
|
|
3290
|
-
<p>图元类型 参照<a
|
|
3458
|
+
<p>图元类型 参照<a href="Graphic.html#.graphicType"><code>Graphic.graphicType</code></a></p>
|
|
3291
3459
|
</div>
|
|
3292
3460
|
|
|
3293
3461
|
|
|
@@ -3430,7 +3598,7 @@ graphic.style.text = 'mapgispro';</code></pre>
|
|
|
3430
3598
|
|
|
3431
3599
|
|
|
3432
3600
|
<div class="description">
|
|
3433
|
-
<p
|
|
3601
|
+
<p>给图元添加属性字段<a id='addAttributes'/></p>
|
|
3434
3602
|
</div>
|
|
3435
3603
|
|
|
3436
3604
|
|
|
@@ -3543,526 +3711,6 @@ graphic.style.text = 'mapgispro';</code></pre>
|
|
|
3543
3711
|
|
|
3544
3712
|
|
|
3545
3713
|
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
</dl>
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
</div>
|
|
3582
|
-
|
|
3583
|
-
<div class="member">
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
<h4 class="name" id="addTo">
|
|
3588
|
-
<a class="href-link" href="#addTo">#</a>
|
|
3589
|
-
|
|
3590
|
-
<span class="code-name" style="font-size:30px">
|
|
3591
|
-
|
|
3592
|
-
addTo<span class="signature">(layer)</span>
|
|
3593
|
-
|
|
3594
|
-
</span>
|
|
3595
|
-
</h4>
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
<div class="description">
|
|
3600
|
-
<p>添加到图层上,同 layer.addGraphic</p>
|
|
3601
|
-
</div>
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
<h4>参数:</h4>
|
|
3613
|
-
|
|
3614
|
-
<div class="table-container">
|
|
3615
|
-
<table class="params table">
|
|
3616
|
-
<thead>
|
|
3617
|
-
<tr>
|
|
3618
|
-
|
|
3619
|
-
<th>名称</th>
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
<th>类型</th>
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
<th class="last">描述</th>
|
|
3627
|
-
</tr>
|
|
3628
|
-
</thead>
|
|
3629
|
-
|
|
3630
|
-
<tbody>
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
<tr class="deep-level-0">
|
|
3635
|
-
|
|
3636
|
-
<td class="name"><code>layer</code></td>
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
<td class="type">
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
<span class="param-type"><a class="mapgis-link-name" title="GraphicsLayer" GraphicsLayer.html>GraphicsLayer</a></span>
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
</td>
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
<td class="description last"><p>图层对象</p></td>
|
|
3651
|
-
</tr>
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
</tbody>
|
|
3657
|
-
</table>
|
|
3658
|
-
</div>
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
<dl class="details">
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
</dl>
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
</div>
|
|
3722
|
-
|
|
3723
|
-
<div class="member">
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
<h4 class="name" id="getDistances">
|
|
3728
|
-
<a class="href-link" href="#getDistances">#</a>
|
|
3729
|
-
|
|
3730
|
-
<span class="code-name" style="font-size:30px">
|
|
3731
|
-
|
|
3732
|
-
getDistances<span class="signature">()</span>
|
|
3733
|
-
|
|
3734
|
-
</span>
|
|
3735
|
-
</h4>
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
<div class="description">
|
|
3740
|
-
<p>计算顶点坐标之间的距离</p>
|
|
3741
|
-
</div>
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
<dl class="details">
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
</dl>
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
<div class='columns method-parameter'>
|
|
3808
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
3809
|
-
<div class="column is-10">
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
<div class="columns">
|
|
3814
|
-
|
|
3815
|
-
<div class='param-desc column is-7'><p>返回坐标之间的距离数组</p></div>
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
<div class='column is-5 has-text-left'>
|
|
3819
|
-
<label>类型: </label>
|
|
3820
|
-
|
|
3821
|
-
<span class="param-type">Array.<Number></span>
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
</div>
|
|
3825
|
-
|
|
3826
|
-
</div>
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
</div>
|
|
3830
|
-
</div>
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
</div>
|
|
3838
|
-
|
|
3839
|
-
<div class="member">
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
<h4 class="name" id="remove">
|
|
3844
|
-
<a class="href-link" href="#remove">#</a>
|
|
3845
|
-
|
|
3846
|
-
<span class="code-name" style="font-size:30px">
|
|
3847
|
-
|
|
3848
|
-
remove<span class="signature">()</span>
|
|
3849
|
-
|
|
3850
|
-
</span>
|
|
3851
|
-
</h4>
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
<div class="description">
|
|
3856
|
-
<p>从图层中移除图元</p>
|
|
3857
|
-
</div>
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
<dl class="details">
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
</dl>
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
</div>
|
|
3929
|
-
|
|
3930
|
-
<div class="member">
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
<h4 class="name" id="updateGraphic">
|
|
3935
|
-
<a class="href-link" href="#updateGraphic">#</a>
|
|
3936
|
-
|
|
3937
|
-
<span class="code-name" style="font-size:30px">
|
|
3938
|
-
|
|
3939
|
-
updateGraphic<span class="signature">(style, name, value)</span>
|
|
3940
|
-
|
|
3941
|
-
</span>
|
|
3942
|
-
</h4>
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
<div class="description">
|
|
3947
|
-
<p>更新整个标绘对象,包括位置、矩阵、样式等</p>
|
|
3948
|
-
</div>
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
<h4>参数:</h4>
|
|
3960
|
-
|
|
3961
|
-
<div class="table-container">
|
|
3962
|
-
<table class="params table">
|
|
3963
|
-
<thead>
|
|
3964
|
-
<tr>
|
|
3965
|
-
|
|
3966
|
-
<th>名称</th>
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
<th>类型</th>
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
<th class="last">描述</th>
|
|
3974
|
-
</tr>
|
|
3975
|
-
</thead>
|
|
3976
|
-
|
|
3977
|
-
<tbody>
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
<tr class="deep-level-0">
|
|
3982
|
-
|
|
3983
|
-
<td class="name"><code>style</code></td>
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
<td class="type">
|
|
3987
|
-
|
|
3988
|
-
</td>
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
<td class="description last"><p>标绘对象的style</p></td>
|
|
3993
|
-
</tr>
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
<tr class="deep-level-0">
|
|
4001
|
-
|
|
4002
|
-
<td class="name"><code>name</code></td>
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
<td class="type">
|
|
4006
|
-
|
|
4007
|
-
</td>
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
<td class="description last"><p>标绘对象的样式名</p></td>
|
|
4012
|
-
</tr>
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
<tr class="deep-level-0">
|
|
4020
|
-
|
|
4021
|
-
<td class="name"><code>value</code></td>
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
<td class="type">
|
|
4025
|
-
|
|
4026
|
-
</td>
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
<td class="description last"><p>标绘对象的样式值(新)</p></td>
|
|
4031
|
-
</tr>
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
</tbody>
|
|
4037
|
-
</table>
|
|
4038
|
-
</div>
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
<dl class="details">
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
3714
|
|
|
4067
3715
|
|
|
4068
3716
|
|
|
@@ -4118,7 +3766,7 @@ graphic.style.text = 'mapgispro';</code></pre>
|
|
|
4118
3766
|
|
|
4119
3767
|
<footer class="footer">
|
|
4120
3768
|
<div class="content has-text-centered">
|
|
4121
|
-
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc
|
|
3769
|
+
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
|
|
4122
3770
|
<p class="sidebar-created-by">
|
|
4123
3771
|
<a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
|
|
4124
3772
|
<a href="http://webclient.smaryun.com:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
|