@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
package/documention/Polygon.html
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<p>区几何,由多个环(ring)构成的几何对象,仅支持带洞区和非带洞区,不支持带岛区,即三个圈重叠<br/>
|
|
39
39
|
多边形的第一个环(ring)即外圈,从第二个环开始为内圈,内圈可以重合、相交、自相交,但是不能超过外圈
|
|
40
40
|
<br><br>[ES5引入方式]:<br/>
|
|
41
|
-
|
|
41
|
+
zondy.geometry.Polygon() <br/>
|
|
42
42
|
[ES6引入方式]:<br/>
|
|
43
43
|
import { Polygon } from "@mapgis/webclient-common" <br/>
|
|
44
44
|
<br/></p>
|
|
@@ -165,7 +165,7 @@ import { Polygon } from "@mapgis/webclient-common" <br/>
|
|
|
165
165
|
|
|
166
166
|
<td class="default">
|
|
167
167
|
|
|
168
|
-
new
|
|
168
|
+
new zondy.SpatialReference('EPSG:4326')
|
|
169
169
|
|
|
170
170
|
</td>
|
|
171
171
|
|
|
@@ -267,7 +267,7 @@ import { Polygon } from "@mapgis/webclient-common" <br/>
|
|
|
267
267
|
|
|
268
268
|
|
|
269
269
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
270
|
-
const { Polygon } =
|
|
270
|
+
const { Polygon } = zondy.geometry
|
|
271
271
|
// ES6引入方式
|
|
272
272
|
import { Polygon } from "@mapgis/webclient-common"
|
|
273
273
|
new Polygon({
|
|
@@ -288,7 +288,7 @@ new Polygon({
|
|
|
288
288
|
|
|
289
289
|
|
|
290
290
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
291
|
-
const { Polygon } =
|
|
291
|
+
const { Polygon } = zondy.geometry
|
|
292
292
|
// ES6引入方式
|
|
293
293
|
import { Polygon } from "@mapgis/webclient-common"
|
|
294
294
|
new Polygon({
|
|
@@ -320,7 +320,7 @@ new Polygon({
|
|
|
320
320
|
|
|
321
321
|
|
|
322
322
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
323
|
-
const { Polygon } =
|
|
323
|
+
const { Polygon } = zondy.geometry
|
|
324
324
|
// ES6引入方式
|
|
325
325
|
import { Polygon } from "@mapgis/webclient-common"
|
|
326
326
|
new Polygon({
|
|
@@ -420,6 +420,24 @@ new Polygon({
|
|
|
420
420
|
<td class="name"><code><p>几何点的坐标</p></code></td>
|
|
421
421
|
</tr>
|
|
422
422
|
|
|
423
|
+
<tr class="deep-level-0">
|
|
424
|
+
<td class="name"><code><a href="#extendOptions">extendOptions</a></code></td>
|
|
425
|
+
<td class="name">
|
|
426
|
+
<code>
|
|
427
|
+
|
|
428
|
+
<span class="param-type">
|
|
429
|
+
|
|
430
|
+
Object
|
|
431
|
+
|
|
432
|
+
</span>
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
</code>
|
|
437
|
+
</td>
|
|
438
|
+
<td class="name"><code><p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p></code></td>
|
|
439
|
+
</tr>
|
|
440
|
+
|
|
423
441
|
<tr class="deep-level-0">
|
|
424
442
|
<td class="name"><code><a href="#extent">extent</a></code></td>
|
|
425
443
|
<td class="name">
|
|
@@ -632,6 +650,91 @@ new Polygon({
|
|
|
632
650
|
|
|
633
651
|
|
|
634
652
|
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
</dl>
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
</div>
|
|
668
|
+
|
|
669
|
+
<div class="member">
|
|
670
|
+
|
|
671
|
+
<span class="method-parameter is-pulled-right">
|
|
672
|
+
<label>类型:</label>
|
|
673
|
+
|
|
674
|
+
<span class="param-type">
|
|
675
|
+
|
|
676
|
+
Object
|
|
677
|
+
|
|
678
|
+
</span>
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
</span>
|
|
683
|
+
|
|
684
|
+
<h4 class="name" id="extendOptions">
|
|
685
|
+
<a class="href-link" href="#extendOptions">#</a>
|
|
686
|
+
|
|
687
|
+
<span class="code-name">
|
|
688
|
+
extendOptions
|
|
689
|
+
</span>
|
|
690
|
+
|
|
691
|
+
</h4>
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
<div class="description">
|
|
697
|
+
<p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p>
|
|
698
|
+
</div>
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
<dl class="details">
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
712
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
713
|
+
<a goto="extendOptions" link="Geometry.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Geometry#extendOptions" Geometry.html#extendOptions>Geometry#extendOptions</a>
|
|
714
|
+
</li></ul></dd>
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
<dt class="tag-default">Default Value:</dt>
|
|
735
|
+
<dd class="tag-default"><ul class="dummy">
|
|
736
|
+
<li>{}</li>
|
|
737
|
+
</ul></dd>
|
|
635
738
|
|
|
636
739
|
|
|
637
740
|
|
|
@@ -1633,7 +1736,7 @@ new Polygon({
|
|
|
1633
1736
|
|
|
1634
1737
|
|
|
1635
1738
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1636
|
-
const { Extent, Polygon } =
|
|
1739
|
+
const { Extent, Polygon } = zondy.geometry
|
|
1637
1740
|
// ES6引入方式
|
|
1638
1741
|
import { Extent, Polygon } from "@mapgis/webclient-common"
|
|
1639
1742
|
const extent = new Extent({
|
|
@@ -1801,7 +1904,7 @@ const polygon = Polygon.fromExtent(extent)</code></pre>
|
|
|
1801
1904
|
|
|
1802
1905
|
|
|
1803
1906
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1804
|
-
const { Polygon } =
|
|
1907
|
+
const { Polygon } = zondy.geometry
|
|
1805
1908
|
// ES6引入方式
|
|
1806
1909
|
import { Polygon } from "@mapgis/webclient-common"
|
|
1807
1910
|
const json = {
|
|
@@ -2001,7 +2104,7 @@ const polygon = new Polygon.fromJSON(json)</code></pre>
|
|
|
2001
2104
|
|
|
2002
2105
|
|
|
2003
2106
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2004
|
-
const { Polygon, Point } =
|
|
2107
|
+
const { Polygon, Point } = zondy.geometry
|
|
2005
2108
|
// ES6引入方式
|
|
2006
2109
|
import { Polygon, Point } from "@mapgis/webclient-common"
|
|
2007
2110
|
const polygon = new Polygon({
|
|
@@ -2344,7 +2447,7 @@ polygon.addRing(ring)</code></pre>
|
|
|
2344
2447
|
|
|
2345
2448
|
|
|
2346
2449
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2347
|
-
const { Polygon, Point } =
|
|
2450
|
+
const { Polygon, Point } = zondy.geometry
|
|
2348
2451
|
// ES6引入方式
|
|
2349
2452
|
import { Polygon, Point } from "@mapgis/webclient-common"
|
|
2350
2453
|
const polygon = new Polygon({
|
|
@@ -2972,7 +3075,7 @@ const isOnPolygon = polygon.contains(point)</code></pre>
|
|
|
2972
3075
|
|
|
2973
3076
|
|
|
2974
3077
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2975
|
-
const { Polygon } =
|
|
3078
|
+
const { Polygon } = zondy.geometry
|
|
2976
3079
|
// ES6引入方式
|
|
2977
3080
|
import { Polygon } from "@mapgis/webclient-common"
|
|
2978
3081
|
const polygon = new Polygon({
|
|
@@ -3363,7 +3466,7 @@ const point = polygon.getPoint(0, 1)</code></pre>
|
|
|
3363
3466
|
|
|
3364
3467
|
|
|
3365
3468
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3366
|
-
const { Polygon, Point } =
|
|
3469
|
+
const { Polygon, Point } = zondy.geometry
|
|
3367
3470
|
// ES6引入方式
|
|
3368
3471
|
import { Polygon, Point } from "@mapgis/webclient-common"
|
|
3369
3472
|
const polygon = new Polygon({
|
|
@@ -4470,7 +4573,7 @@ view.on({
|
|
|
4470
4573
|
|
|
4471
4574
|
|
|
4472
4575
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4473
|
-
const { Polygon } =
|
|
4576
|
+
const { Polygon } = zondy.geometry
|
|
4474
4577
|
// ES6引入方式
|
|
4475
4578
|
import { Polygon } from "@mapgis/webclient-common"
|
|
4476
4579
|
const polygon = new Polygon({
|
|
@@ -4670,7 +4773,7 @@ polygon.removePoint(0, 1)</code></pre>
|
|
|
4670
4773
|
|
|
4671
4774
|
|
|
4672
4775
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4673
|
-
const { Polygon } =
|
|
4776
|
+
const { Polygon } = zondy.geometry
|
|
4674
4777
|
// ES6引入方式
|
|
4675
4778
|
import { Polygon } from "@mapgis/webclient-common"
|
|
4676
4779
|
const polygon = new Polygon({
|
|
@@ -4935,7 +5038,7 @@ polygon.removeRing(1)</code></pre>
|
|
|
4935
5038
|
|
|
4936
5039
|
|
|
4937
5040
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4938
|
-
const { Polygon, Point } =
|
|
5041
|
+
const { Polygon, Point } = zondy.geometry
|
|
4939
5042
|
// ES6引入方式
|
|
4940
5043
|
import { Polygon, Point } from "@mapgis/webclient-common"
|
|
4941
5044
|
const polygon = new Polygon({
|
|
@@ -206,8 +206,8 @@
|
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
209
|
-
const { Color } =
|
|
210
|
-
const { PolygonSymbol3D, ExtrudeSymbol3DLayer, ColorMaterial } =
|
|
209
|
+
const { Color } = zondy
|
|
210
|
+
const { PolygonSymbol3D, ExtrudeSymbol3DLayer, ColorMaterial } = zondy.symbol
|
|
211
211
|
// ES6引入方式
|
|
212
212
|
import { PolygonSymbol3D, ExtrudeSymbol3DLayer, ColorMaterial, Color } from "@mapgis/webclient-common"
|
|
213
213
|
|