@mapgis/webclient-common 17.2.0 → 17.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/dist/es5/webclient-common.min.js +5 -5
- package/dist/webclient-common-es6.min.js +6 -6
- package/documention/AddressServer.html +12 -12
- package/documention/ArcGISFeatureServer.html +10 -10
- package/documention/ArcGISGeometryServer.html +10 -10
- package/documention/ArcGISMapImageLayer.html +10 -10
- package/documention/ArcGISMapServer.html +10 -10
- package/documention/ArcGISTileLayer.html +5 -5
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseScene.html +7577 -0
- package/documention/BaseServer.html +10 -10
- package/documention/BaseView.html +1 -1
- package/documention/Basemap.html +3 -3
- package/documention/Cesium3DTilesCacheLayer.html +38 -112
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +7 -7
- package/documention/ClassBreakRenderer.html +18 -18
- package/documention/ClusterRenderer.html +2 -2
- package/documention/Collection.html +198 -4
- package/documention/Config.html +4 -4
- package/documention/Extent.html +15 -15
- package/documention/ExtrudeSymbol3DLayer.html +2 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol3DLayer.html +2 -2
- package/documention/Font.html +1 -1
- package/documention/GeoJSONLayer.html +26 -26
- package/documention/Geometry.html +7 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +31 -31
- package/documention/GroupLayer.html +2 -2
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +47 -49
- package/documention/IGSMapImageSubLayer.html +3 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSTileLayer.html +10 -11
- package/documention/IGSVectorTileLayer.html +33 -63
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/ISScene.html +1336 -0
- package/documention/ISSceneLayer.html +2028 -0
- package/documention/ISSceneServer.html +2234 -0
- package/documention/ISSceneSubLayer.html +3356 -0
- package/documention/IconSymbol3DLayer.html +4 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +3 -3
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/LineString.html +10 -10
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +2 -2
- package/documention/M3DModelCacheLayer.html +12 -12
- package/documention/M3DServer.html +11 -11
- package/documention/Map.html +4 -4
- package/documention/MapGISTextSymbol.html +3 -3
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +1 -1
- package/documention/MultiLineString.html +13 -13
- package/documention/MultiPoint.html +10 -10
- package/documention/MultiPolygon.html +9 -9
- package/documention/ObjectSymbol3DLayer.html +4 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/PathSymbol3DLayer.html +2 -2
- package/documention/PictureFillSymbol.html +1 -1
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +11 -11
- package/documention/Point.html +12 -12
- package/documention/PointSymbol3D.html +3 -3
- package/documention/Polygon.html +14 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +8 -8
- package/documention/RandomRenderer.html +1 -1
- package/documention/RankRenderer.html +2 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +11 -11
- package/documention/S3MTilesCacheLayer.html +7726 -0
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +1 -1
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +3 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +9 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchEditor.html +1 -1
- package/documention/SpatialReference.html +1 -1
- package/documention/Symbol.html +1 -1
- package/documention/TerrainCacheLayer.html +1 -1
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +4 -4
- package/documention/TextSymbol3DLayer.html +2 -2
- package/documention/ThemeServer.html +12 -12
- package/documention/TileServer.html +11 -11
- package/documention/UniqueValueRenderer.html +18 -18
- package/documention/VectorTileLayer.html +1 -1
- package/documention/VectorTileServer.html +11 -11
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +24 -24
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +15 -15
- package/documention/WMSServer.html +11 -11
- package/documention/WMTSLayer.html +10 -10
- package/documention/WMTSServer.html +11 -11
- package/documention/WPSServer.html +10 -10
- package/documention/WebTileLayer.html +5 -5
- package/documention/WorkFlowServer.html +12 -12
- package/documention/WorkFlowServer600227.html +12 -12
- package/documention/WorkFlowServer600228.html +13 -13
- package/documention/WorkFlowServer600229.html +12 -12
- package/documention/WorkFlowServer600230.html +12 -12
- package/documention/WorkFlowServer600231.html +12 -12
- package/documention/WorkFlowServer600232.html +13 -13
- package/documention/WorkFlowServer600233.html +14 -14
- package/documention/WorkFlowServer600235.html +12 -12
- package/documention/WorkFlowServer600237.html +13 -13
- package/documention/WorkFlowServer600238.html +15 -15
- package/documention/WorkFlowServer600239.html +16 -16
- package/documention/WorkFlowServer600307.html +14 -14
- package/documention/WorkFlowServer600308.html +2 -2
- package/documention/WorkFlowServer600309.html +12 -12
- package/documention/WorkFlowServer600314.html +12 -12
- package/documention/WorkFlowServer600334.html +12 -12
- package/documention/WorkFlowServer600336.html +12 -12
- package/documention/WorkFlowServer600340.html +12 -12
- package/documention/WorkFlowServer600354.html +12 -12
- package/documention/WorkFlowServer600368.html +12 -12
- package/documention/WorkFlowServer600369.html +12 -12
- package/documention/WorkFlowServer600370.html +12 -12
- package/documention/global.html +344 -1644
- package/documention/index.html +40 -37
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAllOtherDataItemInfoSource.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAnnInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartLabelFormat.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeRepresentInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartType.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CDotDensityTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CFourColorTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CGraduatedSymbolTheme.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CLinInfo.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CMultiClassTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CPntInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRandomTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRegInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CSimpleTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CThemeInfo.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ExpInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfoAttribute.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ItemValue.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ThemesInfo.html +2 -2
- package/package.json +2 -1
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
|
|
1099
1099
|
|
|
1100
1100
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1101
|
-
const { Polygon, GeometryEngine } =
|
|
1101
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
1102
1102
|
// ES6引入方式
|
|
1103
1103
|
import { Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
1104
1104
|
// 构造多边形
|
|
@@ -1121,7 +1121,7 @@ const bufferedPolygon = GeometryEngine.buffer(polygon, 100000)</code></pre>
|
|
|
1121
1121
|
|
|
1122
1122
|
|
|
1123
1123
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1124
|
-
const { MultiPolygon, GeometryEngine } =
|
|
1124
|
+
const { MultiPolygon, GeometryEngine } = zondy.geometry
|
|
1125
1125
|
// ES6引入方式
|
|
1126
1126
|
import { MultiPolygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
1127
1127
|
// 构造多边形
|
|
@@ -1155,7 +1155,7 @@ const bufferedPolygon = GeometryEngine.buffer(polygon, 30000)</code></pre>
|
|
|
1155
1155
|
|
|
1156
1156
|
|
|
1157
1157
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1158
|
-
const { Polygon, MultiPolygon, GeometryEngine } =
|
|
1158
|
+
const { Polygon, MultiPolygon, GeometryEngine } = zondy.geometry
|
|
1159
1159
|
// ES6引入方式
|
|
1160
1160
|
import { Polygon, MultiPolygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
1161
1161
|
// 构造多边形
|
|
@@ -1201,7 +1201,7 @@ const bufferedPolygon = GeometryEngine.buffer([polygon1, polygon2], [30000, 3000
|
|
|
1201
1201
|
|
|
1202
1202
|
|
|
1203
1203
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1204
|
-
const { Polygon, MultiPolygon, LengthUnit, GeometryEngine } =
|
|
1204
|
+
const { Polygon, MultiPolygon, LengthUnit, GeometryEngine } = zondy.geometry
|
|
1205
1205
|
// ES6引入方式
|
|
1206
1206
|
import { Polygon, MultiPolygon, LengthUnit, GeometryEngine } from "@mapgis/webclient-common"
|
|
1207
1207
|
// 构造多边形
|
|
@@ -1247,7 +1247,7 @@ const bufferedPolygon = GeometryEngine.buffer([polygon1, polygon2], [30000], Len
|
|
|
1247
1247
|
|
|
1248
1248
|
|
|
1249
1249
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1250
|
-
const { Polygon, SpatialReference, GeometryEngine } =
|
|
1250
|
+
const { Polygon, SpatialReference, GeometryEngine } = zondy.geometry
|
|
1251
1251
|
// ES6引入方式
|
|
1252
1252
|
import { Polygon, SpatialReference, GeometryEngine } from "@mapgis/webclient-common"
|
|
1253
1253
|
// 构造多边形
|
|
@@ -1274,7 +1274,7 @@ const bufferedPolygon = GeometryEngine.buffer(polygon, 100000)</code></pre>
|
|
|
1274
1274
|
|
|
1275
1275
|
|
|
1276
1276
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1277
|
-
const { Point, GeometryEngine } =
|
|
1277
|
+
const { Point, GeometryEngine } = zondy.geometry
|
|
1278
1278
|
// ES6引入方式
|
|
1279
1279
|
import { Point, GeometryEngine } from "@mapgis/webclient-common"
|
|
1280
1280
|
// 构造点几何
|
|
@@ -1289,7 +1289,7 @@ const bufferedPolygon = GeometryEngine.buffer(point, 100000)</code></pre>
|
|
|
1289
1289
|
|
|
1290
1290
|
|
|
1291
1291
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1292
|
-
const { LineString, GeometryEngine } =
|
|
1292
|
+
const { LineString, GeometryEngine } = zondy.geometry
|
|
1293
1293
|
// ES6引入方式
|
|
1294
1294
|
import { LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
1295
1295
|
// 构造线
|
|
@@ -1307,7 +1307,7 @@ const bufferedPolygon = GeometryEngine.buffer(lineString, 10000)</code></pre>
|
|
|
1307
1307
|
|
|
1308
1308
|
|
|
1309
1309
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1310
|
-
const { LineString, GeometryEngine } =
|
|
1310
|
+
const { LineString, GeometryEngine } = zondy.geometry
|
|
1311
1311
|
// ES6引入方式
|
|
1312
1312
|
import { LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
1313
1313
|
// 构造矩形
|
|
@@ -1325,7 +1325,7 @@ const bufferedPolygon = GeometryEngine.buffer(extent, 10000)</code></pre>
|
|
|
1325
1325
|
|
|
1326
1326
|
|
|
1327
1327
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1328
|
-
const { Circle, GeometryEngine } =
|
|
1328
|
+
const { Circle, GeometryEngine } = zondy.geometry
|
|
1329
1329
|
// ES6引入方式
|
|
1330
1330
|
import { Circle, GeometryEngine } from "@mapgis/webclient-common"
|
|
1331
1331
|
// 构造圆形
|
|
@@ -1582,7 +1582,7 @@ const bufferedPolygon = GeometryEngine.buffer(circle, 10000)</code></pre>
|
|
|
1582
1582
|
|
|
1583
1583
|
|
|
1584
1584
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1585
|
-
const { Polygon, Point, GeometryEngine } =
|
|
1585
|
+
const { Polygon, Point, GeometryEngine } = zondy.geometry
|
|
1586
1586
|
// ES6引入方式
|
|
1587
1587
|
import { GeometryEngine, Polygon, Point } from "@mapgis/webclient-common"
|
|
1588
1588
|
// 初始点几何,可以是任意几何
|
|
@@ -1610,7 +1610,7 @@ console.log("区是否包含点:", isContains)</code></pre>
|
|
|
1610
1610
|
|
|
1611
1611
|
|
|
1612
1612
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1613
|
-
const { MultiPoint, Point, GeometryEngine } =
|
|
1613
|
+
const { MultiPoint, Point, GeometryEngine } = zondy.geometry
|
|
1614
1614
|
// ES6引入方式
|
|
1615
1615
|
import { MultiPoint, Point, GeometryEngine } from "@mapgis/webclient-common"
|
|
1616
1616
|
// 初始点几何
|
|
@@ -1633,7 +1633,7 @@ console.log("多点是否包含点:", isContains)</code></pre>
|
|
|
1633
1633
|
|
|
1634
1634
|
|
|
1635
1635
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1636
|
-
const { Polygon, LineString, GeometryEngine } =
|
|
1636
|
+
const { Polygon, LineString, GeometryEngine } = zondy.geometry
|
|
1637
1637
|
// ES6引入方式
|
|
1638
1638
|
import { Polygon, LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
1639
1639
|
// 初始化区几何
|
|
@@ -1664,7 +1664,7 @@ console.log("区是否包含线:", isContains)</code></pre>
|
|
|
1664
1664
|
|
|
1665
1665
|
|
|
1666
1666
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1667
|
-
const { Circle, LineString, GeometryEngine } =
|
|
1667
|
+
const { Circle, LineString, GeometryEngine } = zondy.geometry
|
|
1668
1668
|
// ES6引入方式
|
|
1669
1669
|
import { Circle, LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
1670
1670
|
// 初始化圆几何
|
|
@@ -1688,7 +1688,7 @@ console.log("圆是否包含矩形:", isContains)</code></pre>
|
|
|
1688
1688
|
|
|
1689
1689
|
|
|
1690
1690
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1691
|
-
const { Polygon, LineString, SpatialReference, GeometryEngine } =
|
|
1691
|
+
const { Polygon, LineString, SpatialReference, GeometryEngine } = zondy.geometry
|
|
1692
1692
|
// ES6引入方式
|
|
1693
1693
|
import { Polygon, LineString, SpatialReference, GeometryEngine } from "@mapgis/webclient-common"
|
|
1694
1694
|
// 初始化线几何对象
|
|
@@ -2004,7 +2004,7 @@ console.log("圆是否包含矩形:", isContains)</code></pre>
|
|
|
2004
2004
|
|
|
2005
2005
|
|
|
2006
2006
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2007
|
-
const { LineString, GeometryEngine } =
|
|
2007
|
+
const { LineString, GeometryEngine } = zondy.geometry
|
|
2008
2008
|
// ES6引入方式
|
|
2009
2009
|
import { LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
2010
2010
|
// 构造要穿过的线对象
|
|
@@ -2032,7 +2032,7 @@ console.log("线是否穿过线:", cross)</code></pre>
|
|
|
2032
2032
|
|
|
2033
2033
|
|
|
2034
2034
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2035
|
-
const { LineString, MultiLineString, GeometryEngine } =
|
|
2035
|
+
const { LineString, MultiLineString, GeometryEngine } = zondy.geometry
|
|
2036
2036
|
// ES6引入方式
|
|
2037
2037
|
import { LineString, MultiLineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
2038
2038
|
// 构造要穿过的线对象
|
|
@@ -2064,7 +2064,7 @@ console.log("线是否穿过多线:", cross)</code></pre>
|
|
|
2064
2064
|
|
|
2065
2065
|
|
|
2066
2066
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2067
|
-
const { LineString, Polygon, GeometryEngine } =
|
|
2067
|
+
const { LineString, Polygon, GeometryEngine } = zondy.geometry
|
|
2068
2068
|
// ES6引入方式
|
|
2069
2069
|
import { LineString, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
2070
2070
|
// 构造要穿过的线对象
|
|
@@ -2104,7 +2104,7 @@ console.log("线是否穿过区:", cross)</code></pre>
|
|
|
2104
2104
|
|
|
2105
2105
|
|
|
2106
2106
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2107
|
-
const { MultiLineString, Polygon, GeometryEngine } =
|
|
2107
|
+
const { MultiLineString, Polygon, GeometryEngine } = zondy.geometry
|
|
2108
2108
|
// ES6引入方式
|
|
2109
2109
|
import { MultiLineString, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
2110
2110
|
// 构造要穿过的多线对象
|
|
@@ -2148,7 +2148,7 @@ console.log("多线是否穿过区:", cross)</code></pre>
|
|
|
2148
2148
|
|
|
2149
2149
|
|
|
2150
2150
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2151
|
-
const { MultiLineString, MultiPolygon, SpatialReference, GeometryEngine } =
|
|
2151
|
+
const { MultiLineString, MultiPolygon, SpatialReference, GeometryEngine } = zondy.geometry
|
|
2152
2152
|
// ES6引入方式
|
|
2153
2153
|
import { MultiLineString, MultiPolygon, SpatialReference, GeometryEngine } from "@mapgis/webclient-common"
|
|
2154
2154
|
// 构造要穿过的多线对象
|
|
@@ -2457,7 +2457,7 @@ console.log("多线是否穿过多区:", cross)</code></pre>
|
|
|
2457
2457
|
|
|
2458
2458
|
|
|
2459
2459
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2460
|
-
const { LineString, GeometryEngine } =
|
|
2460
|
+
const { LineString, GeometryEngine } = zondy.geometry
|
|
2461
2461
|
// ES6引入方式
|
|
2462
2462
|
import { LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
2463
2463
|
// 构造被切割的线对象
|
|
@@ -2485,7 +2485,7 @@ console.log("切割后的几何数组:", cut)</code></pre>
|
|
|
2485
2485
|
|
|
2486
2486
|
|
|
2487
2487
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2488
|
-
const { LineString, MultiLineString, GeometryEngine } =
|
|
2488
|
+
const { LineString, MultiLineString, GeometryEngine } = zondy.geometry
|
|
2489
2489
|
// ES6引入方式
|
|
2490
2490
|
import { LineString, MultiLineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
2491
2491
|
// 构造被切割的多线对象
|
|
@@ -2519,7 +2519,7 @@ console.log("切割后的几何数组:", cut)</code></pre>
|
|
|
2519
2519
|
|
|
2520
2520
|
|
|
2521
2521
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2522
|
-
const { LineString, Polygon, GeometryEngine } =
|
|
2522
|
+
const { LineString, Polygon, GeometryEngine } = zondy.geometry
|
|
2523
2523
|
// ES6引入方式
|
|
2524
2524
|
import { LineString, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
2525
2525
|
// 构造被切割的区对象
|
|
@@ -2559,7 +2559,7 @@ console.log("切割后的几何数组:", cut)</code></pre>
|
|
|
2559
2559
|
|
|
2560
2560
|
|
|
2561
2561
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2562
|
-
const { LineString, MultiPolygon, GeometryEngine } =
|
|
2562
|
+
const { LineString, MultiPolygon, GeometryEngine } = zondy.geometry
|
|
2563
2563
|
// ES6引入方式
|
|
2564
2564
|
import { LineString, MultiPolygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
2565
2565
|
// 构造被切割的多区
|
|
@@ -2612,7 +2612,7 @@ console.log("切割后的几何数组:", cut)</code></pre>
|
|
|
2612
2612
|
|
|
2613
2613
|
|
|
2614
2614
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2615
|
-
const { LineString, Polygon, SpatialReference, GeometryEngine } =
|
|
2615
|
+
const { LineString, Polygon, SpatialReference, GeometryEngine } = zondy.geometry
|
|
2616
2616
|
// ES6引入方式
|
|
2617
2617
|
import { LineString, Polygon, SpatialReference, GeometryEngine } from "@mapgis/webclient-common"
|
|
2618
2618
|
// 构造被切割的区对象
|
|
@@ -2929,7 +2929,7 @@ console.log("切割后的几何数组:", cut)</code></pre>
|
|
|
2929
2929
|
|
|
2930
2930
|
|
|
2931
2931
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2932
|
-
const { Polygon, GeometryEngine } =
|
|
2932
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
2933
2933
|
// ES6引入方式
|
|
2934
2934
|
import { Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
2935
2935
|
// 构造第一个区
|
|
@@ -2972,7 +2972,7 @@ console.log("区和区求差:", geometry)</code></pre>
|
|
|
2972
2972
|
|
|
2973
2973
|
|
|
2974
2974
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2975
|
-
const { Polygon, MultiPolygon, GeometryEngine } =
|
|
2975
|
+
const { Polygon, MultiPolygon, GeometryEngine } = zondy.geometry
|
|
2976
2976
|
// ES6引入方式
|
|
2977
2977
|
import { Polygon, MultiPolygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
2978
2978
|
// 构造第一个区
|
|
@@ -3019,7 +3019,7 @@ console.log("区和多区求差:", geometry)</code></pre>
|
|
|
3019
3019
|
|
|
3020
3020
|
|
|
3021
3021
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3022
|
-
const { MultiPolygon, Circle, GeometryEngine } =
|
|
3022
|
+
const { MultiPolygon, Circle, GeometryEngine } = zondy.geometry
|
|
3023
3023
|
// ES6引入方式
|
|
3024
3024
|
import { MultiPolygon, Circle,GeometryEngine } from "@mapgis/webclient-common"
|
|
3025
3025
|
// 构造多区几何
|
|
@@ -3059,7 +3059,7 @@ console.log("多区和圆求差:", geometry)</code></pre>
|
|
|
3059
3059
|
|
|
3060
3060
|
|
|
3061
3061
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3062
|
-
const { Extent, Circle, GeometryEngine } =
|
|
3062
|
+
const { Extent, Circle, GeometryEngine } = zondy.geometry
|
|
3063
3063
|
// ES6引入方式
|
|
3064
3064
|
import { Extent, Circle,GeometryEngine } from "@mapgis/webclient-common"
|
|
3065
3065
|
// 构造矩形对象
|
|
@@ -3312,7 +3312,7 @@ console.log("矩形和圆求差:", geometry)</code></pre>
|
|
|
3312
3312
|
|
|
3313
3313
|
|
|
3314
3314
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3315
|
-
const { LineString, Polygon, GeometryEngine } =
|
|
3315
|
+
const { LineString, Polygon, GeometryEngine } = zondy.geometry
|
|
3316
3316
|
// ES6引入方式
|
|
3317
3317
|
import { LineString, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
3318
3318
|
// 构造线几何对象
|
|
@@ -3640,7 +3640,7 @@ console.log("是否相离:", isIntersect)</code></pre>
|
|
|
3640
3640
|
|
|
3641
3641
|
|
|
3642
3642
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3643
|
-
const { Point, GeometryEngine } =
|
|
3643
|
+
const { Point, GeometryEngine } = zondy.geometry
|
|
3644
3644
|
// ES6引入方式
|
|
3645
3645
|
import { GeometryEngine, Point } from "@mapgis/webclient-common"
|
|
3646
3646
|
// 点和点求距离
|
|
@@ -3662,7 +3662,7 @@ console.log("点和点求距离(设置单位为"miles"):", pointDistance)</code>
|
|
|
3662
3662
|
|
|
3663
3663
|
|
|
3664
3664
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3665
|
-
const { Point, LineString, GeometryEngine } =
|
|
3665
|
+
const { Point, LineString, GeometryEngine } = zondy.geometry
|
|
3666
3666
|
// ES6引入方式
|
|
3667
3667
|
import { GeometryEngine, Point, LineString } from "@mapgis/webclient-common"
|
|
3668
3668
|
// 点和线求距离
|
|
@@ -3684,7 +3684,7 @@ console.log("点和线求距离:", pointToLineDistance)</code></pre>
|
|
|
3684
3684
|
|
|
3685
3685
|
|
|
3686
3686
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3687
|
-
const { Point, Polygon, GeometryEngine } =
|
|
3687
|
+
const { Point, Polygon, GeometryEngine } = zondy.geometry
|
|
3688
3688
|
// ES6引入方式
|
|
3689
3689
|
import { GeometryEngine, Point, Polygon } from "@mapgis/webclient-common"
|
|
3690
3690
|
// 点和面求距离
|
|
@@ -4416,7 +4416,7 @@ console.log("点和点是否相同:", isEquals)</code></pre>
|
|
|
4416
4416
|
|
|
4417
4417
|
|
|
4418
4418
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4419
|
-
const { GeometryEngine } =
|
|
4419
|
+
const { GeometryEngine } = zondy.geometry
|
|
4420
4420
|
// ES6引入方式
|
|
4421
4421
|
import { GeometryEngine } from "@mapgis/webclient-common"
|
|
4422
4422
|
// 计算三点之间的夹角
|
|
@@ -4761,7 +4761,7 @@ const angle = GeometryEngine.getAngleFromPoints([1, 2], [1, 1], [2, 1])</code></
|
|
|
4761
4761
|
|
|
4762
4762
|
|
|
4763
4763
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4764
|
-
const { LineString, SpatialReference, GeometryEngine } =
|
|
4764
|
+
const { LineString, SpatialReference, GeometryEngine } = zondy.geometry
|
|
4765
4765
|
// ES6引入方式
|
|
4766
4766
|
import { LineString, SpatialReference, GeometryEngine } from "@mapgis/webclient-common"
|
|
4767
4767
|
// 构造一个线几何,其他几何对象同线几何对象
|
|
@@ -5082,7 +5082,7 @@ const arcLine = GeometryEngine.getArcFromGeometry({
|
|
|
5082
5082
|
|
|
5083
5083
|
|
|
5084
5084
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
5085
|
-
const { GeometryEngine } =
|
|
5085
|
+
const { GeometryEngine } = zondy.geometry
|
|
5086
5086
|
// ES6引入方式
|
|
5087
5087
|
import { GeometryEngine } from "@mapgis/webclient-common"
|
|
5088
5088
|
// 计算圆心
|
|
@@ -5833,7 +5833,7 @@ const center = GeometryEngine.getCenter([1, 2], [2, 1], [1, 0])</code></pre>
|
|
|
5833
5833
|
|
|
5834
5834
|
<td class="default">
|
|
5835
5835
|
|
|
5836
|
-
new
|
|
5836
|
+
new zondy.SpatialReference('EPSG:4326')
|
|
5837
5837
|
|
|
5838
5838
|
</td>
|
|
5839
5839
|
|
|
@@ -5948,7 +5948,7 @@ const center = GeometryEngine.getCenter([1, 2], [2, 1], [1, 0])</code></pre>
|
|
|
5948
5948
|
|
|
5949
5949
|
|
|
5950
5950
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
5951
|
-
const { SpatialReference, GeometryEngine } =
|
|
5951
|
+
const { SpatialReference, GeometryEngine } = zondy.geometry
|
|
5952
5952
|
// ES6引入方式
|
|
5953
5953
|
import { SpatialReference, GeometryEngine } from "@mapgis/webclient-common"
|
|
5954
5954
|
// 将弧段打散为离散点
|
|
@@ -6433,7 +6433,7 @@ const arc3Path = GeometryEngine.getPositionsFromArc({
|
|
|
6433
6433
|
|
|
6434
6434
|
|
|
6435
6435
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6436
|
-
const { LineString, Polygon, GeometryEngine } =
|
|
6436
|
+
const { LineString, Polygon, GeometryEngine } = zondy.geometry
|
|
6437
6437
|
// ES6引入方式
|
|
6438
6438
|
import { LineString, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
6439
6439
|
// 构造线几何对象
|
|
@@ -6471,7 +6471,7 @@ console.log("是否相交:", isIntersect)</code></pre>
|
|
|
6471
6471
|
|
|
6472
6472
|
|
|
6473
6473
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6474
|
-
const { Point, Polygon, GeometryEngine } =
|
|
6474
|
+
const { Point, Polygon, GeometryEngine } = zondy.geometry
|
|
6475
6475
|
// ES6引入方式
|
|
6476
6476
|
import { Point, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
6477
6477
|
// 构造点几何对象
|
|
@@ -6499,7 +6499,7 @@ console.log("是否相交:", isIntersect)</code></pre>
|
|
|
6499
6499
|
|
|
6500
6500
|
|
|
6501
6501
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6502
|
-
const { Polygon, MultiPolygon, GeometryEngine } =
|
|
6502
|
+
const { Polygon, MultiPolygon, GeometryEngine } = zondy.geometry
|
|
6503
6503
|
// ES6引入方式
|
|
6504
6504
|
import { Polygon, MultiPolygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
6505
6505
|
// 构造区几何对象
|
|
@@ -6546,7 +6546,7 @@ console.log("是否相交:", isIntersect)</code></pre>
|
|
|
6546
6546
|
|
|
6547
6547
|
|
|
6548
6548
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6549
|
-
const { Extent, Circle, GeometryEngine } =
|
|
6549
|
+
const { Extent, Circle, GeometryEngine } = zondy.geometry
|
|
6550
6550
|
// ES6引入方式
|
|
6551
6551
|
import { Extent, Circle, GeometryEngine } from "@mapgis/webclient-common"
|
|
6552
6552
|
// 构造矩形几何对象
|
|
@@ -6570,7 +6570,7 @@ console.log("是否相交:", isIntersect)</code></pre>
|
|
|
6570
6570
|
|
|
6571
6571
|
|
|
6572
6572
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6573
|
-
const { Polygon, Circle, SpatialReference, GeometryEngine } =
|
|
6573
|
+
const { Polygon, Circle, SpatialReference, GeometryEngine } = zondy.geometry
|
|
6574
6574
|
// ES6引入方式
|
|
6575
6575
|
import { Polygon, Circle, SpatialReference, GeometryEngine } from "@mapgis/webclient-common"
|
|
6576
6576
|
// 构造区几何对象
|
|
@@ -6828,7 +6828,7 @@ console.log("是否相交:", isIntersect)</code></pre>
|
|
|
6828
6828
|
|
|
6829
6829
|
|
|
6830
6830
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6831
|
-
const { LineString, GeometryEngine } =
|
|
6831
|
+
const { LineString, GeometryEngine } = zondy.geometry
|
|
6832
6832
|
// ES6引入方式
|
|
6833
6833
|
import { LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
6834
6834
|
// 构造线几何对象
|
|
@@ -6849,7 +6849,7 @@ console.log("是否通过检查:", isSimple)</code></pre>
|
|
|
6849
6849
|
|
|
6850
6850
|
|
|
6851
6851
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6852
|
-
const { MultiLineString, GeometryEngine } =
|
|
6852
|
+
const { MultiLineString, GeometryEngine } = zondy.geometry
|
|
6853
6853
|
// ES6引入方式
|
|
6854
6854
|
import { MultiLineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
6855
6855
|
// 构造多线几何对象
|
|
@@ -6874,7 +6874,7 @@ console.log("是否通过检查:", isSimple)</code></pre>
|
|
|
6874
6874
|
|
|
6875
6875
|
|
|
6876
6876
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6877
|
-
const { Polygon, GeometryEngine } =
|
|
6877
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
6878
6878
|
// ES6引入方式
|
|
6879
6879
|
import { Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
6880
6880
|
// 构造区几何对象
|
|
@@ -6898,7 +6898,7 @@ console.log("是否通过检查:", isSimple)</code></pre>
|
|
|
6898
6898
|
|
|
6899
6899
|
|
|
6900
6900
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
6901
|
-
const { Polygon, GeometryEngine } =
|
|
6901
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
6902
6902
|
// ES6引入方式
|
|
6903
6903
|
import { Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
6904
6904
|
// 构造多区几何对象
|
|
@@ -7158,7 +7158,7 @@ console.log("是否通过检查:", isSimple)</code></pre>
|
|
|
7158
7158
|
<ul>
|
|
7159
7159
|
<li>@example <caption><h5>多点到目标点最近点</h5></caption>
|
|
7160
7160
|
// ES5引入方式
|
|
7161
|
-
const { Point, MultiPoint, GeometryEngine } =
|
|
7161
|
+
const { Point, MultiPoint, GeometryEngine } = zondy.geometry
|
|
7162
7162
|
// ES6引入方式
|
|
7163
7163
|
import { GeometryEngine, MultiPoint, Point } from "@mapgis/webclient-common"
|
|
7164
7164
|
// inputPoint
|
|
@@ -7211,7 +7211,7 @@ console.log("多点到目标点最近点:", pointToMultiPoint);</li>
|
|
|
7211
7211
|
|
|
7212
7212
|
|
|
7213
7213
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
7214
|
-
const { Point, LineString, GeometryEngine } =
|
|
7214
|
+
const { Point, LineString, GeometryEngine } = zondy.geometry
|
|
7215
7215
|
// ES6引入方式
|
|
7216
7216
|
import { GeometryEngine, Point, LineString } from "@mapgis/webclient-common"
|
|
7217
7217
|
// inputPoint
|
|
@@ -7237,7 +7237,7 @@ import { GeometryEngine, Point, LineString } from "@mapgis/webclient-common"
|
|
|
7237
7237
|
|
|
7238
7238
|
|
|
7239
7239
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
7240
|
-
const { Point, Polygon, GeometryEngine } =
|
|
7240
|
+
const { Point, Polygon, GeometryEngine } = zondy.geometry
|
|
7241
7241
|
// ES6引入方式
|
|
7242
7242
|
import { GeometryEngine, Point, Polygon } from "@mapgis/webclient-common"
|
|
7243
7243
|
// inputPoint
|
|
@@ -7480,7 +7480,7 @@ import { GeometryEngine, Point, Polygon } from "@mapgis/webclient-common"
|
|
|
7480
7480
|
|
|
7481
7481
|
|
|
7482
7482
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
7483
|
-
const { LineString, Polygon, GeometryEngine } =
|
|
7483
|
+
const { LineString, Polygon, GeometryEngine } = zondy.geometry
|
|
7484
7484
|
// ES6引入方式
|
|
7485
7485
|
import { LineString, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
7486
7486
|
// 构造线几何对象
|
|
@@ -7773,7 +7773,7 @@ console.log("是否重叠:", isIntersect)</code></pre>
|
|
|
7773
7773
|
|
|
7774
7774
|
|
|
7775
7775
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
7776
|
-
const { Polygon, GeometryEngine } =
|
|
7776
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
7777
7777
|
// ES6引入方式
|
|
7778
7778
|
import { GeometryEngine, Polygon, LengthUnit } from "@mapgis/webclient-common"
|
|
7779
7779
|
// 初始化区几何
|
|
@@ -7796,7 +7796,7 @@ const area = GeometryEngine.planarArea(polygon)</code></pre>
|
|
|
7796
7796
|
|
|
7797
7797
|
|
|
7798
7798
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
7799
|
-
const { Polygon, GeometryEngine } =
|
|
7799
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
7800
7800
|
// ES6引入方式
|
|
7801
7801
|
import { GeometryEngine, Polygon, LengthUnit } from "@mapgis/webclient-common"
|
|
7802
7802
|
// 初始化区几何 - 带洞
|
|
@@ -7833,7 +7833,7 @@ const area = GeometryEngine.planarArea(polygon)</code></pre>
|
|
|
7833
7833
|
|
|
7834
7834
|
|
|
7835
7835
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
7836
|
-
const { MultiPolygon, GeometryEngine } =
|
|
7836
|
+
const { MultiPolygon, GeometryEngine } = zondy.geometry
|
|
7837
7837
|
// ES6引入方式
|
|
7838
7838
|
import { GeometryEngine, MultiPolygon, LengthUnit } from "@mapgis/webclient-common"
|
|
7839
7839
|
//多区几何
|
|
@@ -7867,7 +7867,7 @@ const Area = GeometryEngine.planarArea(multiPolygon)</code></pre>
|
|
|
7867
7867
|
|
|
7868
7868
|
|
|
7869
7869
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
7870
|
-
const { Circle, GeometryEngine } =
|
|
7870
|
+
const { Circle, GeometryEngine } = zondy.geometry
|
|
7871
7871
|
// ES6引入方式
|
|
7872
7872
|
import { Circle, LengthUnit, GeometryEngine } from "@mapgis/webclient-common"
|
|
7873
7873
|
//圆几何
|
|
@@ -7883,7 +7883,7 @@ const area = GeometryEngine.planarArea(circle)</code></pre>
|
|
|
7883
7883
|
|
|
7884
7884
|
|
|
7885
7885
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
7886
|
-
const { Extent, GeometryEngine } =
|
|
7886
|
+
const { Extent, GeometryEngine } = zondy.geometry
|
|
7887
7887
|
// ES6引入方式
|
|
7888
7888
|
import { Extent, LengthUnit, GeometryEngine } from "@mapgis/webclient-common"
|
|
7889
7889
|
//矩形几何
|
|
@@ -8172,7 +8172,7 @@ const area = GeometryEngine.planarArea(extent)</code></pre>
|
|
|
8172
8172
|
|
|
8173
8173
|
|
|
8174
8174
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8175
|
-
const { LineString, GeometryEngine } =
|
|
8175
|
+
const { LineString, GeometryEngine } = zondy.geometry
|
|
8176
8176
|
// ES6引入方式
|
|
8177
8177
|
import { LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
8178
8178
|
// 初始化一个线对象
|
|
@@ -8190,7 +8190,7 @@ const length = GeometryEngine.planarLength(line)</code></pre>
|
|
|
8190
8190
|
|
|
8191
8191
|
|
|
8192
8192
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8193
|
-
const { Polygon, GeometryEngine } =
|
|
8193
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
8194
8194
|
// ES6引入方式
|
|
8195
8195
|
import { Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
8196
8196
|
// 初始化一个区对象
|
|
@@ -8468,7 +8468,7 @@ const length = GeometryEngine.planarLength(polygon)</code></pre>
|
|
|
8468
8468
|
|
|
8469
8469
|
|
|
8470
8470
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8471
|
-
const { MultiPoint, GeometryEngine } =
|
|
8471
|
+
const { MultiPoint, GeometryEngine } = zondy.geometry
|
|
8472
8472
|
// ES6引入方式
|
|
8473
8473
|
import { MultiPoint, GeometryEngine } from "@mapgis/webclient-common"
|
|
8474
8474
|
// 构造多点几何
|
|
@@ -8486,7 +8486,7 @@ const rotateGeometry = GeometryEngine.rotate(multiPoint, 10)</code></pre>
|
|
|
8486
8486
|
|
|
8487
8487
|
<pre class="prettyprint"><code><caption id='rotate2'><h5>旋转区</h5></caption>
|
|
8488
8488
|
// ES5引入方式
|
|
8489
|
-
const { Polygon, GeometryEngine } =
|
|
8489
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
8490
8490
|
// ES6引入方式
|
|
8491
8491
|
import { Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
8492
8492
|
// 构造区几何
|
|
@@ -8509,7 +8509,7 @@ const rotateGeometry = GeometryEngine.rotate(polygon, 10)</code></pre>
|
|
|
8509
8509
|
|
|
8510
8510
|
|
|
8511
8511
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8512
|
-
const { MultiPolygon, GeometryEngine } =
|
|
8512
|
+
const { MultiPolygon, GeometryEngine } = zondy.geometry
|
|
8513
8513
|
// ES6引入方式
|
|
8514
8514
|
import { MultiPolygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
8515
8515
|
// 构造多区几何
|
|
@@ -8543,7 +8543,7 @@ const rotateGeometry = GeometryEngine.rotate(polygon, 10)</code></pre>
|
|
|
8543
8543
|
|
|
8544
8544
|
|
|
8545
8545
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8546
|
-
const { LineString, GeometryEngine } =
|
|
8546
|
+
const { LineString, GeometryEngine } = zondy.geometry
|
|
8547
8547
|
// ES6引入方式
|
|
8548
8548
|
import { LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
8549
8549
|
// 构造线几何
|
|
@@ -8563,7 +8563,7 @@ const rotateGeometry = GeometryEngine.rotate(line, 10)</code></pre>
|
|
|
8563
8563
|
|
|
8564
8564
|
|
|
8565
8565
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8566
|
-
const { MultiLineString, GeometryEngine } =
|
|
8566
|
+
const { MultiLineString, GeometryEngine } = zondy.geometry
|
|
8567
8567
|
// ES6引入方式
|
|
8568
8568
|
import { MultiLineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
8569
8569
|
// 构造多线几何
|
|
@@ -8587,7 +8587,7 @@ const rotateGeometry = GeometryEngine.rotate(line, 10)</code></pre>
|
|
|
8587
8587
|
|
|
8588
8588
|
|
|
8589
8589
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8590
|
-
const { Extent, GeometryEngine } =
|
|
8590
|
+
const { Extent, GeometryEngine } = zondy.geometry
|
|
8591
8591
|
// ES6引入方式
|
|
8592
8592
|
import { Extent, GeometryEngine } from "@mapgis/webclient-common"
|
|
8593
8593
|
// 构造矩形几何
|
|
@@ -8605,7 +8605,7 @@ const rotateGeometry = GeometryEngine.rotate(extent, 10)</code></pre>
|
|
|
8605
8605
|
|
|
8606
8606
|
|
|
8607
8607
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8608
|
-
const { Circle, GeometryEngine } =
|
|
8608
|
+
const { Circle, GeometryEngine } = zondy.geometry
|
|
8609
8609
|
// ES6引入方式
|
|
8610
8610
|
import { Circle, GeometryEngine } from "@mapgis/webclient-common"
|
|
8611
8611
|
// 构造圆形几何
|
|
@@ -8621,7 +8621,7 @@ const rotateGeometry = GeometryEngine.rotate(circle, 10)</code></pre>
|
|
|
8621
8621
|
|
|
8622
8622
|
|
|
8623
8623
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8624
|
-
const { Polygon, SpatialReference, GeometryEngine } =
|
|
8624
|
+
const { Polygon, SpatialReference, GeometryEngine } = zondy.geometry
|
|
8625
8625
|
// ES6引入方式
|
|
8626
8626
|
import { Polygon, SpatialReference, GeometryEngine } from "@mapgis/webclient-common"
|
|
8627
8627
|
// 构造区几何
|
|
@@ -8648,7 +8648,7 @@ const rotateGeometry = GeometryEngine.rotate(polygon, 10)</code></pre>
|
|
|
8648
8648
|
|
|
8649
8649
|
|
|
8650
8650
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8651
|
-
const { Polygon, Point, GeometryEngine } =
|
|
8651
|
+
const { Polygon, Point, GeometryEngine } = zondy.geometry
|
|
8652
8652
|
// ES6引入方式
|
|
8653
8653
|
import { Polygon, Point, GeometryEngine } from "@mapgis/webclient-common"
|
|
8654
8654
|
// 构造区几何
|
|
@@ -8675,7 +8675,7 @@ const rotateGeometry = GeometryEngine.rotate(polygon, 10, rotatePoint)</code></p
|
|
|
8675
8675
|
|
|
8676
8676
|
|
|
8677
8677
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
8678
|
-
const { Point, GeometryEngine } =
|
|
8678
|
+
const { Point, GeometryEngine } = zondy.geometry
|
|
8679
8679
|
// ES6引入方式
|
|
8680
8680
|
import { Point, GeometryEngine } from "@mapgis/webclient-common"
|
|
8681
8681
|
// 构造点几何
|
|
@@ -9204,7 +9204,7 @@ const rotateGeometry = GeometryEngine.rotate(point, 10, rotatePoint)</code></pre
|
|
|
9204
9204
|
|
|
9205
9205
|
|
|
9206
9206
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9207
|
-
const { Point, LineString, GeometryEngine } =
|
|
9207
|
+
const { Point, LineString, GeometryEngine } = zondy.geometry
|
|
9208
9208
|
// ES6引入方式
|
|
9209
9209
|
import { Point, LineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
9210
9210
|
// 构造线对象
|
|
@@ -9229,7 +9229,7 @@ console.log("线和点是否相邻:", isTouch)</code></pre>
|
|
|
9229
9229
|
|
|
9230
9230
|
|
|
9231
9231
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9232
|
-
const { MultiPoint, MultiLineString, GeometryEngine } =
|
|
9232
|
+
const { MultiPoint, MultiLineString, GeometryEngine } = zondy.geometry
|
|
9233
9233
|
// ES6引入方式
|
|
9234
9234
|
import { MultiPoint, MultiLineString, GeometryEngine } from "@mapgis/webclient-common"
|
|
9235
9235
|
// 构造多线对象
|
|
@@ -9261,7 +9261,7 @@ console.log("多线和多点是否相邻:", isTouch)</code></pre>
|
|
|
9261
9261
|
|
|
9262
9262
|
|
|
9263
9263
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9264
|
-
const { LineString, Polygon, GeometryEngine } =
|
|
9264
|
+
const { LineString, Polygon, GeometryEngine } = zondy.geometry
|
|
9265
9265
|
// ES6引入方式
|
|
9266
9266
|
import { LineString, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
9267
9267
|
// 构造区对象
|
|
@@ -9299,7 +9299,7 @@ console.log("区和线是否相邻:", isTouch)</code></pre>
|
|
|
9299
9299
|
|
|
9300
9300
|
|
|
9301
9301
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9302
|
-
const { MultiPolygon, Polygon, GeometryEngine } =
|
|
9302
|
+
const { MultiPolygon, Polygon, GeometryEngine } = zondy.geometry
|
|
9303
9303
|
// ES6引入方式
|
|
9304
9304
|
import { MultiPolygon, Polygon, GeometryEngine } from "@mapgis/webclient-common"
|
|
9305
9305
|
// 构造多区对象
|
|
@@ -9353,7 +9353,7 @@ console.log("多区是否和区相邻:", isTouch)</code></pre>
|
|
|
9353
9353
|
|
|
9354
9354
|
|
|
9355
9355
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9356
|
-
const { Circle, GeometryEngine } =
|
|
9356
|
+
const { Circle, GeometryEngine } = zondy.geometry
|
|
9357
9357
|
// ES6引入方式
|
|
9358
9358
|
import { Circle, GeometryEngine } from "@mapgis/webclient-common"
|
|
9359
9359
|
// 构造圆对象
|
|
@@ -9570,7 +9570,7 @@ console.log("圆和圆是否相邻:", isTouch)</code></pre>
|
|
|
9570
9570
|
|
|
9571
9571
|
|
|
9572
9572
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9573
|
-
const { Point, GeometryEngine } =
|
|
9573
|
+
const { Point, GeometryEngine } = zondy.geometry
|
|
9574
9574
|
// ES6引入方式
|
|
9575
9575
|
import { GeometryEngine, Point } from "@mapgis/webclient-common"
|
|
9576
9576
|
// 点和点求并
|
|
@@ -9591,7 +9591,7 @@ console.log("点和点求并:", union)</code></pre>
|
|
|
9591
9591
|
|
|
9592
9592
|
|
|
9593
9593
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9594
|
-
const { Point, MultiPoint, GeometryEngine } =
|
|
9594
|
+
const { Point, MultiPoint, GeometryEngine } = zondy.geometry
|
|
9595
9595
|
// ES6引入方式
|
|
9596
9596
|
import { GeometryEngine, Point, MultiPoint } from "@mapgis/webclient-common"
|
|
9597
9597
|
// 点和多点求并
|
|
@@ -9612,7 +9612,7 @@ console.log("点和多点求并:", union)</code></pre>
|
|
|
9612
9612
|
|
|
9613
9613
|
|
|
9614
9614
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9615
|
-
const { Point, MultiPoint, GeometryEngine } =
|
|
9615
|
+
const { Point, MultiPoint, GeometryEngine } = zondy.geometry
|
|
9616
9616
|
// ES6引入方式
|
|
9617
9617
|
import { GeometryEngine, Point, MultiPoint } from "@mapgis/webclient-common"
|
|
9618
9618
|
// 多点和多点求并
|
|
@@ -9637,7 +9637,7 @@ console.log("多点和多点求并:", union)</code></pre>
|
|
|
9637
9637
|
|
|
9638
9638
|
|
|
9639
9639
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9640
|
-
const { Polygon, GeometryEngine } =
|
|
9640
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
9641
9641
|
// ES6引入方式
|
|
9642
9642
|
import { GeometryEngine, Polygon } from "@mapgis/webclient-common"
|
|
9643
9643
|
// 区和区求并
|
|
@@ -9671,7 +9671,7 @@ console.log("区和区求并:", union)</code></pre>
|
|
|
9671
9671
|
|
|
9672
9672
|
|
|
9673
9673
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9674
|
-
const { Polygon, GeometryEngine } =
|
|
9674
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
9675
9675
|
// ES6引入方式
|
|
9676
9676
|
import { GeometryEngine, Polygon } from "@mapgis/webclient-common"
|
|
9677
9677
|
// 区和带洞区求并
|
|
@@ -9712,7 +9712,7 @@ console.log("区和带洞区求并:", union)</code></pre>
|
|
|
9712
9712
|
|
|
9713
9713
|
|
|
9714
9714
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9715
|
-
const { Polygon, GeometryEngine } =
|
|
9715
|
+
const { Polygon, GeometryEngine } = zondy.geometry
|
|
9716
9716
|
// ES6引入方式
|
|
9717
9717
|
import { GeometryEngine, Polygon } from "@mapgis/webclient-common"
|
|
9718
9718
|
// 带洞区和带洞区的求并
|
|
@@ -9972,7 +9972,7 @@ const polygon1 = new Polygon({
|
|
|
9972
9972
|
|
|
9973
9973
|
|
|
9974
9974
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
9975
|
-
const { Polygon, Point, GeometryEngine } =
|
|
9975
|
+
const { Polygon, Point, GeometryEngine } = zondy.geometry
|
|
9976
9976
|
// ES6引入方式
|
|
9977
9977
|
import { GeometryEngine, Polygon, Point } from "@mapgis/webclient-common"
|
|
9978
9978
|
// 初始点几何,可以是任意几何
|