@mapgis/webclient-common 17.2.0 → 17.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/es5/webclient-common.min.js +5 -5
- package/dist/webclient-common-es6.min.js +6 -6
- package/documention/AddressServer.html +12 -12
- package/documention/ArcGISFeatureServer.html +10 -10
- package/documention/ArcGISGeometryServer.html +10 -10
- package/documention/ArcGISMapImageLayer.html +10 -10
- package/documention/ArcGISMapServer.html +10 -10
- package/documention/ArcGISTileLayer.html +5 -5
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseServer.html +10 -10
- package/documention/BaseView.html +1 -1
- package/documention/Basemap.html +3 -3
- package/documention/Cesium3DTilesCacheLayer.html +38 -112
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +7 -7
- package/documention/ClassBreakRenderer.html +18 -18
- package/documention/ClusterRenderer.html +2 -2
- package/documention/Config.html +4 -4
- package/documention/Extent.html +15 -15
- package/documention/ExtrudeSymbol3DLayer.html +2 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol3DLayer.html +2 -2
- package/documention/Font.html +1 -1
- package/documention/GeoJSONLayer.html +26 -26
- package/documention/Geometry.html +7 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +31 -31
- package/documention/GroupLayer.html +2 -2
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +46 -46
- package/documention/IGSMapImageSubLayer.html +3 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSTileLayer.html +10 -11
- package/documention/IGSVectorTileLayer.html +32 -29
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/IconSymbol3DLayer.html +4 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +3 -3
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/LineString.html +10 -10
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +2 -2
- package/documention/M3DModelCacheLayer.html +12 -12
- package/documention/M3DServer.html +11 -11
- package/documention/Map.html +4 -4
- package/documention/MapGISTextSymbol.html +3 -3
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +1 -1
- package/documention/MultiLineString.html +13 -13
- package/documention/MultiPoint.html +10 -10
- package/documention/MultiPolygon.html +9 -9
- package/documention/ObjectSymbol3DLayer.html +4 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/PathSymbol3DLayer.html +2 -2
- package/documention/PictureFillSymbol.html +1 -1
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +11 -11
- package/documention/Point.html +12 -12
- package/documention/PointSymbol3D.html +2 -2
- package/documention/Polygon.html +14 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +8 -8
- package/documention/RandomRenderer.html +1 -1
- package/documention/RankRenderer.html +2 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +11 -11
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +1 -1
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +3 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +9 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchEditor.html +1 -1
- package/documention/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- package/documention/SpatialReference.html +1 -1
- package/documention/Symbol.html +1 -1
- package/documention/TerrainCacheLayer.html +1 -1
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +4 -4
- package/documention/TextSymbol3DLayer.html +2 -2
- package/documention/ThemeServer.html +12 -12
- package/documention/TileServer.html +11 -11
- package/documention/UniqueValueRenderer.html +18 -18
- package/documention/VectorTileLayer.html +1 -1
- package/documention/VectorTileServer.html +11 -11
- package/documention/VideoMapView.html +4 -4
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +24 -24
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +15 -15
- package/documention/WMSServer.html +11 -11
- package/documention/WMTSLayer.html +10 -10
- package/documention/WMTSServer.html +11 -11
- package/documention/WPSServer.html +10 -10
- package/documention/WebTileLayer.html +5 -5
- package/documention/WorkFlowServer.html +12 -12
- package/documention/WorkFlowServer600227.html +12 -12
- package/documention/WorkFlowServer600228.html +13 -13
- package/documention/WorkFlowServer600229.html +12 -12
- package/documention/WorkFlowServer600230.html +12 -12
- package/documention/WorkFlowServer600231.html +12 -12
- package/documention/WorkFlowServer600232.html +13 -13
- package/documention/WorkFlowServer600233.html +14 -14
- package/documention/WorkFlowServer600235.html +12 -12
- package/documention/WorkFlowServer600237.html +13 -13
- package/documention/WorkFlowServer600238.html +15 -15
- package/documention/WorkFlowServer600239.html +16 -16
- package/documention/WorkFlowServer600307.html +14 -14
- package/documention/WorkFlowServer600308.html +2 -2
- package/documention/WorkFlowServer600309.html +12 -12
- package/documention/WorkFlowServer600314.html +12 -12
- package/documention/WorkFlowServer600334.html +12 -12
- package/documention/WorkFlowServer600336.html +12 -12
- package/documention/WorkFlowServer600340.html +12 -12
- package/documention/WorkFlowServer600354.html +12 -12
- package/documention/WorkFlowServer600368.html +12 -12
- package/documention/WorkFlowServer600369.html +12 -12
- package/documention/WorkFlowServer600370.html +12 -12
- package/documention/global.html +344 -1644
- package/documention/index.html +40 -37
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAllOtherDataItemInfoSource.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAnnInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartLabelFormat.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeRepresentInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartType.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CDotDensityTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CFourColorTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CGraduatedSymbolTheme.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CLinInfo.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CMultiClassTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CPntInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRandomTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRegInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CSimpleTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CThemeInfo.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ExpInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfoAttribute.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ItemValue.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ThemesInfo.html +2 -2
- package/package.json +2 -1
package/documention/Extent.html
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>几何范围对象,即左下角和右上角组成的矩形范围几何对象,参考示例:<a href='#Extent'>[几何范围对象]</a>
|
|
39
39
|
<br><br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.geometry.Extent() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { Extent } from "@mapgis/webclient-common" <br/>
|
|
43
43
|
<br/></p>
|
|
@@ -323,7 +323,7 @@ import { Extent } from "@mapgis/webclient-common" <br/>
|
|
|
323
323
|
|
|
324
324
|
<td class="default">
|
|
325
325
|
|
|
326
|
-
new
|
|
326
|
+
new zondy.SpatialReference('EPSG:4326')
|
|
327
327
|
|
|
328
328
|
</td>
|
|
329
329
|
|
|
@@ -424,7 +424,7 @@ import { Extent } from "@mapgis/webclient-common" <br/>
|
|
|
424
424
|
|
|
425
425
|
|
|
426
426
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
427
|
-
const { Extent } =
|
|
427
|
+
const { Extent } = zondy.geometry
|
|
428
428
|
// ES6引入方式
|
|
429
429
|
import { Extent } from "@mapgis/webclient-common"
|
|
430
430
|
new Extent({
|
|
@@ -439,8 +439,8 @@ new Extent({
|
|
|
439
439
|
|
|
440
440
|
|
|
441
441
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
442
|
-
const { Extent } =
|
|
443
|
-
const { SpatialReference } =
|
|
442
|
+
const { Extent } = zondy.geometry
|
|
443
|
+
const { SpatialReference } = zondy
|
|
444
444
|
// ES6引入方式
|
|
445
445
|
import { Extent, SpatialReference } from "@mapgis/webclient-common"
|
|
446
446
|
new Extent({
|
|
@@ -2319,7 +2319,7 @@ new Extent({
|
|
|
2319
2319
|
|
|
2320
2320
|
|
|
2321
2321
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2322
|
-
const { Extent } =
|
|
2322
|
+
const { Extent } = zondy.geometry
|
|
2323
2323
|
// ES6引入方式
|
|
2324
2324
|
import { Extent } from "@mapgis/webclient-common"
|
|
2325
2325
|
const json = {
|
|
@@ -2513,7 +2513,7 @@ const extent = Extent.fromJSON(json)</code></pre>
|
|
|
2513
2513
|
|
|
2514
2514
|
|
|
2515
2515
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2516
|
-
const { Extent, Point } =
|
|
2516
|
+
const { Extent, Point } = zondy.geometry
|
|
2517
2517
|
// ES6引入方式
|
|
2518
2518
|
import { Extent, Point } from "@mapgis/webclient-common"
|
|
2519
2519
|
const extent = new Extent({
|
|
@@ -2843,7 +2843,7 @@ const newConst = extent.centerAt(point)</code></pre>
|
|
|
2843
2843
|
|
|
2844
2844
|
|
|
2845
2845
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2846
|
-
const { Extent, Point } =
|
|
2846
|
+
const { Extent, Point } = zondy.geometry
|
|
2847
2847
|
// ES6引入方式
|
|
2848
2848
|
import { Extent, Point } from "@mapgis/webclient-common"
|
|
2849
2849
|
const extent = new Extent({
|
|
@@ -3040,7 +3040,7 @@ const isIn = extent.contains(point)</code></pre>
|
|
|
3040
3040
|
|
|
3041
3041
|
|
|
3042
3042
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3043
|
-
const { Extent } =
|
|
3043
|
+
const { Extent } = zondy.geometry
|
|
3044
3044
|
// ES6引入方式
|
|
3045
3045
|
import { Extent } from "@mapgis/webclient-common"
|
|
3046
3046
|
const extent = new Extent({
|
|
@@ -3240,7 +3240,7 @@ const isEqual = extent.equals(extent2)</code></pre>
|
|
|
3240
3240
|
|
|
3241
3241
|
|
|
3242
3242
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3243
|
-
const { Extent } =
|
|
3243
|
+
const { Extent } = zondy.geometry
|
|
3244
3244
|
// ES6引入方式
|
|
3245
3245
|
import { Extent } from "@mapgis/webclient-common"
|
|
3246
3246
|
const extent = new Extent({
|
|
@@ -3949,7 +3949,7 @@ extent.expand(1.5)</code></pre>
|
|
|
3949
3949
|
|
|
3950
3950
|
|
|
3951
3951
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3952
|
-
const { Extent } =
|
|
3952
|
+
const { Extent } = zondy.geometry
|
|
3953
3953
|
// ES6引入方式
|
|
3954
3954
|
import { Extent } from "@mapgis/webclient-common"
|
|
3955
3955
|
const extent = new Extent({
|
|
@@ -4149,7 +4149,7 @@ const newExtent = extent.intersection(extent2)</code></pre>
|
|
|
4149
4149
|
|
|
4150
4150
|
|
|
4151
4151
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4152
|
-
const { Extent, Point } =
|
|
4152
|
+
const { Extent, Point } = zondy.geometry
|
|
4153
4153
|
// ES6引入方式
|
|
4154
4154
|
import { Extent, Point } from "@mapgis/webclient-common"
|
|
4155
4155
|
const extent = new Extent({
|
|
@@ -4292,7 +4292,7 @@ const isIntersect = extent.intersects(point)</code></pre>
|
|
|
4292
4292
|
|
|
4293
4293
|
|
|
4294
4294
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4295
|
-
const { Extent } =
|
|
4295
|
+
const { Extent } = zondy.geometry
|
|
4296
4296
|
// ES6引入方式
|
|
4297
4297
|
import { Extent } from "@mapgis/webclient-common"
|
|
4298
4298
|
const extent = new Extent({
|
|
@@ -4544,7 +4544,7 @@ const normalize = extent.normalize()</code></pre>
|
|
|
4544
4544
|
|
|
4545
4545
|
|
|
4546
4546
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
4547
|
-
const { Extent } =
|
|
4547
|
+
const { Extent } = zondy.geometry
|
|
4548
4548
|
// ES6引入方式
|
|
4549
4549
|
import { Extent } from "@mapgis/webclient-common"
|
|
4550
4550
|
const extent = new Extent({
|
|
@@ -5453,7 +5453,7 @@ extent.offset(0, 1, 0)</code></pre>
|
|
|
5453
5453
|
|
|
5454
5454
|
|
|
5455
5455
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
5456
|
-
const { Extent } =
|
|
5456
|
+
const { Extent } = zondy.geometry
|
|
5457
5457
|
// ES6引入方式
|
|
5458
5458
|
import { Extent } from "@mapgis/webclient-common"
|
|
5459
5459
|
const extent = new Extent({
|
|
@@ -316,8 +316,8 @@ ColorMaterial: 纯色材质,通过设置纯色材质来改变拉伸区区的
|
|
|
316
316
|
|
|
317
317
|
|
|
318
318
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
319
|
-
const { Color } =
|
|
320
|
-
const { ExtrudeSymbol3DLayer, ColorMaterial } =
|
|
319
|
+
const { Color } = zondy
|
|
320
|
+
const { ExtrudeSymbol3DLayer, ColorMaterial } = zondy.symbol
|
|
321
321
|
// ES6引入方式
|
|
322
322
|
import { ExtrudeSymbol3DLayer, ColorMaterial, Color } from "@mapgis/webclient-common"
|
|
323
323
|
|
package/documention/Feature.html
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>要素对象,示例如下:<a id='add-Feature'>[初始化要素对象]</a>
|
|
39
39
|
<br><br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.Feature() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { Feature } from "@mapgis/webclient-common" <br/>
|
|
43
43
|
<br/></p>
|
|
@@ -390,9 +390,9 @@ import { Feature } from "@mapgis/webclient-common" <br/>
|
|
|
390
390
|
|
|
391
391
|
|
|
392
392
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
393
|
-
const { Feature, Color } =
|
|
394
|
-
const { LineString } =
|
|
395
|
-
const { SimpleLineSymbol } =
|
|
393
|
+
const { Feature, Color } = zondy
|
|
394
|
+
const { LineString } = zondy.geometry
|
|
395
|
+
const { SimpleLineSymbol } = zondy.symbol
|
|
396
396
|
// ES6引入方式
|
|
397
397
|
import { Feature, Color, LineString, SimpleLineSymbol } from "@mapgis/webclient-common"
|
|
398
398
|
let feature = new Feature({
|
|
@@ -1543,8 +1543,8 @@ default = true</p>
|
|
|
1543
1543
|
|
|
1544
1544
|
<pre class="prettyprint"><code><caption><h7>通过传入的json构造并返回一个新的几何对象</h7></caption>\
|
|
1545
1545
|
// ES5引入方式
|
|
1546
|
-
const { LineString } =
|
|
1547
|
-
const { Feature } =
|
|
1546
|
+
const { LineString } = zondy.geometry
|
|
1547
|
+
const { Feature } = zondy
|
|
1548
1548
|
// ES6引入方式
|
|
1549
1549
|
import { LineString, Feature } from "@mapgis/webclient-common"
|
|
1550
1550
|
const json = {
|
|
@@ -1821,7 +1821,7 @@ const feature = new Feature.fromJSON(json)</code></pre>
|
|
|
1821
1821
|
|
|
1822
1822
|
|
|
1823
1823
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1824
|
-
const { Feature } =
|
|
1824
|
+
const { Feature } = zondy
|
|
1825
1825
|
// ES6引入方式
|
|
1826
1826
|
import { Feature } from "@mapgis/webclient-common"
|
|
1827
1827
|
//数据格式参考https://geojson.org/
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
|
|
197
197
|
<pre class="prettyprint"><code>//igs2.0的要素服务
|
|
198
198
|
// ES5引入方式
|
|
199
|
-
const { FeatureServer } =
|
|
199
|
+
const { FeatureServer } = zondy.service
|
|
200
200
|
// ES6引入方式
|
|
201
201
|
import { FeatureServer } from "@mapgis/webclient-common"
|
|
202
202
|
const featureServer = new FeatureServer({
|
|
@@ -615,7 +615,7 @@ const featureServer = new FeatureServer({
|
|
|
615
615
|
|
|
616
616
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
617
617
|
// ES5引入方式
|
|
618
|
-
const { BaseServer } =
|
|
618
|
+
const { BaseServer } = zondy.service
|
|
619
619
|
// ES6引入方式
|
|
620
620
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
621
621
|
let BaseServer = new BaseServer({
|
|
@@ -716,7 +716,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
716
716
|
|
|
717
717
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
718
718
|
// ES5引入方式
|
|
719
|
-
const { BaseServer } =
|
|
719
|
+
const { BaseServer } = zondy.service
|
|
720
720
|
// ES6引入方式
|
|
721
721
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
722
722
|
let BaseServer = new BaseServer({
|
|
@@ -818,7 +818,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
818
818
|
|
|
819
819
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
820
820
|
// ES5引入方式
|
|
821
|
-
const { BaseServer,RequestInterceptor } =
|
|
821
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
822
822
|
// ES6引入方式
|
|
823
823
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
824
824
|
let BaseServer = new BaseServer({
|
|
@@ -927,7 +927,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
927
927
|
<pre class="prettyprint"><code>//设置超时时间
|
|
928
928
|
//初始化AddressServer服务对象
|
|
929
929
|
// ES5引入方式
|
|
930
|
-
const { BaseServer } =
|
|
930
|
+
const { BaseServer } = zondy.service
|
|
931
931
|
// ES6引入方式
|
|
932
932
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
933
933
|
let BaseServer = new BaseServer({
|
|
@@ -1024,7 +1024,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1024
1024
|
|
|
1025
1025
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1026
1026
|
// ES5引入方式
|
|
1027
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1027
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1028
1028
|
// ES6引入方式
|
|
1029
1029
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1030
1030
|
let BaseServer = new BaseServer({
|
|
@@ -1134,8 +1134,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1134
1134
|
|
|
1135
1135
|
<pre class="prettyprint"><code>//设置token值
|
|
1136
1136
|
// ES5引入方式
|
|
1137
|
-
const { BaseServer } =
|
|
1138
|
-
const { TokenAttachType } =
|
|
1137
|
+
const { BaseServer } = zondy.service
|
|
1138
|
+
const { TokenAttachType } = zondy.enum
|
|
1139
1139
|
// ES6引入方式
|
|
1140
1140
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1141
1141
|
let BaseServer = new BaseServer({
|
|
@@ -1236,7 +1236,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1236
1236
|
|
|
1237
1237
|
<pre class="prettyprint"><code>//设置token名
|
|
1238
1238
|
// ES5引入方式
|
|
1239
|
-
const { BaseServer } =
|
|
1239
|
+
const { BaseServer } = zondy.service
|
|
1240
1240
|
// ES6引入方式
|
|
1241
1241
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1242
1242
|
let BaseServer = new BaseServer({
|
|
@@ -1333,7 +1333,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
1333
1333
|
|
|
1334
1334
|
<pre class="prettyprint"><code>//设置token值
|
|
1335
1335
|
// ES5引入方式
|
|
1336
|
-
const { BaseServer } =
|
|
1336
|
+
const { BaseServer } = zondy.service
|
|
1337
1337
|
// ES6引入方式
|
|
1338
1338
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1339
1339
|
let BaseServer = new BaseServer({
|
|
@@ -1430,7 +1430,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
1430
1430
|
|
|
1431
1431
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1432
1432
|
// ES5引入方式
|
|
1433
|
-
const { BaseServer } =
|
|
1433
|
+
const { BaseServer } = zondy.service
|
|
1434
1434
|
// ES6引入方式
|
|
1435
1435
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1436
1436
|
let BaseServer = new BaseServer({
|
|
@@ -2135,7 +2135,7 @@ BaseServer.url = '新URL';</code></pre>
|
|
|
2135
2135
|
|
|
2136
2136
|
<pre class="prettyprint"><code>// 创建一个线要素
|
|
2137
2137
|
// ES5引入方式
|
|
2138
|
-
const { Feature } =
|
|
2138
|
+
const { Feature } = zondy
|
|
2139
2139
|
// ES6引入方式
|
|
2140
2140
|
import { Feature } from "@mapgis/webclient-common"
|
|
2141
2141
|
const lineString = new Feature({
|
|
@@ -2144,7 +2144,7 @@ const lineString = new Feature({
|
|
|
2144
2144
|
//可填空或者和系统库中的样式一一对应
|
|
2145
2145
|
symbol: {},
|
|
2146
2146
|
//设置几何
|
|
2147
|
-
geometry: new
|
|
2147
|
+
geometry: new zondy.geometry.LineString({
|
|
2148
2148
|
coordinates: [
|
|
2149
2149
|
[110.74, 32.41],
|
|
2150
2150
|
[112.89, 31.06],
|
|
@@ -2175,9 +2175,9 @@ featureServer.addFeature({
|
|
|
2175
2175
|
|
|
2176
2176
|
<pre class="prettyprint"><code>// 初始化资源服务
|
|
2177
2177
|
// ES5引入方式
|
|
2178
|
-
const { ResourceServer} =
|
|
2179
|
-
const { Point} =
|
|
2180
|
-
const { Feature } =
|
|
2178
|
+
const { ResourceServer} = zondy.service
|
|
2179
|
+
const { Point} = zondy.geometry
|
|
2180
|
+
const { Feature } = zondy
|
|
2181
2181
|
// ES6引入方式
|
|
2182
2182
|
import { ResourceServer,Point,Feature } from "@mapgis/webclient-common"
|
|
2183
2183
|
const resourceServer = new ResourceServer({
|
|
@@ -2253,8 +2253,8 @@ resourceServer.queryGDBPInfo({
|
|
|
2253
2253
|
|
|
2254
2254
|
<pre class="prettyprint"><code>// 初始化资源服务
|
|
2255
2255
|
// ES5引入方式
|
|
2256
|
-
const { MultiPoint} =
|
|
2257
|
-
const { Feature } =
|
|
2256
|
+
const { MultiPoint} = zondy.geometry
|
|
2257
|
+
const { Feature } = zondy
|
|
2258
2258
|
// ES6引入方式
|
|
2259
2259
|
import { MultiPoint,Feature } from "@mapgis/webclient-common"
|
|
2260
2260
|
const resourceServer = new ResourceServer({
|
|
@@ -5936,7 +5936,7 @@ CompareRectOnly表示是否仅比较要素的外包矩形,来判定是否与
|
|
|
5936
5936
|
|
|
5937
5937
|
<pre class="prettyprint"><code>featureServer.queryFeaturesInLayers({
|
|
5938
5938
|
// ES5引入方式
|
|
5939
|
-
const { Polygon } =
|
|
5939
|
+
const { Polygon } = zondy.geometry
|
|
5940
5940
|
// ES6引入方式
|
|
5941
5941
|
import { Polygon } from "@mapgis/webclient-common"
|
|
5942
5942
|
// 几何查询条件
|
|
@@ -6934,8 +6934,8 @@ import { Polygon } from "@mapgis/webclient-common"
|
|
|
6934
6934
|
|
|
6935
6935
|
<pre class="prettyprint"><code>// 创建线要素
|
|
6936
6936
|
// ES5引入方式
|
|
6937
|
-
const { Feature } =
|
|
6938
|
-
const { LineString } =
|
|
6937
|
+
const { Feature } = zondy
|
|
6938
|
+
const { LineString } = zondy.geometry
|
|
6939
6939
|
// ES6引入方式
|
|
6940
6940
|
import { Feature } from "@mapgis/webclient-common"
|
|
6941
6941
|
const lineString = new Feature({
|
|
@@ -6972,9 +6972,9 @@ featureServer.updateFeature({
|
|
|
6972
6972
|
|
|
6973
6973
|
<pre class="prettyprint"><code>// 初始化资源服务
|
|
6974
6974
|
// ES5引入方式
|
|
6975
|
-
const { ResourceServer } =
|
|
6976
|
-
const { Feature } =
|
|
6977
|
-
const { Point } =
|
|
6975
|
+
const { ResourceServer } = zondy.service
|
|
6976
|
+
const { Feature } = zondy
|
|
6977
|
+
const { Point } = zondy.geometry
|
|
6978
6978
|
// ES6引入方式
|
|
6979
6979
|
import { ResourceServer,Feature, Point} from "@mapgis/webclient-common"
|
|
6980
6980
|
const resourceServer = new ResourceServer({
|
|
@@ -7050,9 +7050,9 @@ resourceServer.queryGDBPInfo({
|
|
|
7050
7050
|
|
|
7051
7051
|
<pre class="prettyprint"><code>// 初始化资源服务
|
|
7052
7052
|
// ES5引入方式
|
|
7053
|
-
const { ResourceServer } =
|
|
7054
|
-
const { Feature } =
|
|
7055
|
-
const { MultiPoint } =
|
|
7053
|
+
const { ResourceServer } = zondy.service
|
|
7054
|
+
const { Feature } = zondy
|
|
7055
|
+
const { MultiPoint } = zondy.geometry
|
|
7056
7056
|
// ES6引入方式
|
|
7057
7057
|
import { ResourceServer,Feature,MultiPoint } from "@mapgis/webclient-common"
|
|
7058
7058
|
const resourceServer = new ResourceServer({
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>要素集合类,示例如下:<a id='add-FeatureSet'>[初始化要素集合对象]</a>
|
|
39
39
|
<br><br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.FeatureSet() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { FeatureSet } from "@mapgis/webclient-common" <br/>
|
|
43
43
|
<br/></p>
|
|
@@ -193,7 +193,7 @@ import { FeatureSet } from "@mapgis/webclient-common" <br/>
|
|
|
193
193
|
|
|
194
194
|
<td class="default">
|
|
195
195
|
|
|
196
|
-
new
|
|
196
|
+
new zondy.SpatialReference('EPSG:4326')
|
|
197
197
|
|
|
198
198
|
</td>
|
|
199
199
|
|
|
@@ -288,7 +288,7 @@ import { FeatureSet } from "@mapgis/webclient-common" <br/>
|
|
|
288
288
|
|
|
289
289
|
|
|
290
290
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
291
|
-
const { FeatureSet } =
|
|
291
|
+
const { FeatureSet } = zondy
|
|
292
292
|
// ES6引入方式
|
|
293
293
|
import { FeatureSet } from "@mapgis/webclient-common"
|
|
294
294
|
//创建要素集合
|
|
@@ -390,7 +390,7 @@ default 随机id</p></code></td>
|
|
|
390
390
|
</code>
|
|
391
391
|
</td>
|
|
392
392
|
<td class="name"><code><p>要素集合的参考系
|
|
393
|
-
default new
|
|
393
|
+
default new zondy.SpatialReference('EPSG:4326')</p></code></td>
|
|
394
394
|
</tr>
|
|
395
395
|
|
|
396
396
|
<tr class="deep-level-0">
|
|
@@ -599,7 +599,7 @@ default 随机id</p>
|
|
|
599
599
|
|
|
600
600
|
<div class="description">
|
|
601
601
|
<p>要素集合的参考系
|
|
602
|
-
default new
|
|
602
|
+
default new zondy.SpatialReference('EPSG:4326')</p>
|
|
603
603
|
</div>
|
|
604
604
|
|
|
605
605
|
|
|
@@ -1061,7 +1061,7 @@ default FeatureCollection</p>
|
|
|
1061
1061
|
|
|
1062
1062
|
|
|
1063
1063
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1064
|
-
const { FeatureSet } =
|
|
1064
|
+
const { FeatureSet } = zondy
|
|
1065
1065
|
// ES6引入方式
|
|
1066
1066
|
import { FeatureSet } from "@mapgis/webclient-common"
|
|
1067
1067
|
featureSet = FeatureSet.fromArray(
|
|
@@ -1397,7 +1397,7 @@ FeatureSet.fromGeoJSON({
|
|
|
1397
1397
|
|
|
1398
1398
|
|
|
1399
1399
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1400
|
-
const { FeatureSet } =
|
|
1400
|
+
const { FeatureSet } = zondy
|
|
1401
1401
|
// ES6引入方式
|
|
1402
1402
|
import { FeatureSet } from "@mapgis/webclient-common"
|
|
1403
1403
|
const json = {
|
|
@@ -316,8 +316,8 @@ ColorMaterial: 纯色材质,通过设置纯色材质来改变平面区的颜
|
|
|
316
316
|
|
|
317
317
|
|
|
318
318
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
319
|
-
const { Color } =
|
|
320
|
-
const { FillSymbol3DLayer, ColorMaterial } =
|
|
319
|
+
const { Color } = zondy
|
|
320
|
+
const { FillSymbol3DLayer, ColorMaterial } = zondy.symbol
|
|
321
321
|
// ES6引入方式
|
|
322
322
|
import { FillSymbol3DLayer, ColorMaterial, Color } from "@mapgis/webclient-common"
|
|
323
323
|
|
package/documention/Font.html
CHANGED
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
<p class="code-caption"><h7 id='new-Font'>创建字体样式</h7></p>
|
|
346
346
|
|
|
347
347
|
|
|
348
|
-
<pre class="prettyprint"><code>const font = new
|
|
348
|
+
<pre class="prettyprint"><code>const font = new zondy.symbol.Font({
|
|
349
349
|
// 字体
|
|
350
350
|
family: "微软雅黑",
|
|
351
351
|
// 文字大小,单位像素
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
参考示例:<br/>
|
|
41
41
|
<a href='#add-GeoJSONLayer'>[加载GeoJSON图层]</a>
|
|
42
42
|
<br><br>[ES5引入方式]:<br/>
|
|
43
|
-
|
|
43
|
+
zondy.layer.GraphicsLayer() <br/>
|
|
44
44
|
[ES6引入方式]:<br/>
|
|
45
45
|
import { GraphicsLayer } from "@mapgis/webclient-common"</p>
|
|
46
46
|
</div>
|
|
@@ -677,7 +677,7 @@ import { GraphicsLayer } from "@mapgis/webclient-common"</p>
|
|
|
677
677
|
|
|
678
678
|
<pre class="prettyprint"><code>// 初始化图层管理容器
|
|
679
679
|
// ES5引入方式
|
|
680
|
-
const { GeoJSONLayer } =
|
|
680
|
+
const { GeoJSONLayer } = zondy.layer
|
|
681
681
|
// ES6引入方式
|
|
682
682
|
import { GeoJSONLayer } from "@mapgis/webclient-common"
|
|
683
683
|
// 创建图层
|
|
@@ -691,8 +691,8 @@ const geojsonLayer = new GeoJSONLayer({
|
|
|
691
691
|
|
|
692
692
|
|
|
693
693
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
694
|
-
const { SpatialReference } =
|
|
695
|
-
const { GeoJSONLayer } =
|
|
694
|
+
const { SpatialReference } = zondy
|
|
695
|
+
const { GeoJSONLayer } = zondy.layer
|
|
696
696
|
// ES6引入方式
|
|
697
697
|
import { SpatialReference, GeoJSONLayer } from "@mapgis/webclient-common"
|
|
698
698
|
// 创建图层
|
|
@@ -717,10 +717,10 @@ map.remove(geojsonLayer)</code></pre>
|
|
|
717
717
|
|
|
718
718
|
|
|
719
719
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
720
|
-
const { Color} =
|
|
721
|
-
const { GeoJSONLayer } =
|
|
722
|
-
const { UniqueValueRenderer } =
|
|
723
|
-
const { SimpleLineSymbol,SimpleFillSymbol } =
|
|
720
|
+
const { Color} = zondy
|
|
721
|
+
const { GeoJSONLayer } = zondy.layer
|
|
722
|
+
const { UniqueValueRenderer } = zondy.renderer
|
|
723
|
+
const { SimpleLineSymbol,SimpleFillSymbol } = zondy.symbol
|
|
724
724
|
// ES6引入方式
|
|
725
725
|
import { Color,GeoJSONLayer,UniqueValueRenderer,SimpleLineSymbol,SimpleFillSymbol } from "@mapgis/webclient-common"
|
|
726
726
|
// 创建图层
|
|
@@ -732,9 +732,9 @@ const geojsonLayer = new GeoJSONLayer({
|
|
|
732
732
|
//字段名
|
|
733
733
|
field: '你的字段名',
|
|
734
734
|
// 默认符号,不在专题图指定范围内的会采用该样式,可不设置
|
|
735
|
-
defaultSymbol: new
|
|
735
|
+
defaultSymbol: new zondy.symbol.SimpleFillSymbol({
|
|
736
736
|
// 填充颜色
|
|
737
|
-
color:
|
|
737
|
+
color: zondy.Color(1 , 1, 252),
|
|
738
738
|
// 外边线样式
|
|
739
739
|
outline: new SimpleLineSymbol({
|
|
740
740
|
//线颜色
|
|
@@ -776,10 +776,10 @@ const geojsonLayer = new GeoJSONLayer({
|
|
|
776
776
|
|
|
777
777
|
|
|
778
778
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
779
|
-
const { Color} =
|
|
780
|
-
const { GeoJSONLayer } =
|
|
781
|
-
const { ClassBreakRenderer } =
|
|
782
|
-
const { SimpleLineSymbol,SimpleFillSymbol } =
|
|
779
|
+
const { Color} = zondy
|
|
780
|
+
const { GeoJSONLayer } = zondy.layer
|
|
781
|
+
const { ClassBreakRenderer } = zondy.renderer
|
|
782
|
+
const { SimpleLineSymbol,SimpleFillSymbol } = zondy.symbol
|
|
783
783
|
// ES6引入方式
|
|
784
784
|
import { Color,GeoJSONLayer,ClassBreakRenderer, SimpleLineSymbol,SimpleFillSymbol} from "@mapgis/webclient-common"
|
|
785
785
|
// 创建图层
|
|
@@ -797,7 +797,7 @@ const geojsonLayer = new GeoJSONLayer({
|
|
|
797
797
|
// 线符号样式
|
|
798
798
|
outline: new SimpleLineSymbol({
|
|
799
799
|
//线符号颜色
|
|
800
|
-
color: new
|
|
800
|
+
color: new zondy.Color(255, 1, 0),
|
|
801
801
|
//线宽
|
|
802
802
|
width: 1
|
|
803
803
|
})
|
|
@@ -829,10 +829,10 @@ const geojsonLayer = new GeoJSONLayer({
|
|
|
829
829
|
|
|
830
830
|
|
|
831
831
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
832
|
-
const { GeoJSONLayer } =
|
|
833
|
-
const { SimpleRenderer } =
|
|
834
|
-
const { SimpleFillSymbol,SimpleLineSymbol } =
|
|
835
|
-
const { Color } =
|
|
832
|
+
const { GeoJSONLayer } = zondy.layer
|
|
833
|
+
const { SimpleRenderer } = zondy.renderer
|
|
834
|
+
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
|
|
835
|
+
const { Color } = zondy
|
|
836
836
|
// ES6引入方式
|
|
837
837
|
import { Color,GeoJSONLayer, SimpleRenderer,SimpleLineSymbol,SimpleFillSymbol} from "@mapgis/webclient-common"
|
|
838
838
|
const geojsonLayer = new GeoJSONLayer({
|
|
@@ -868,7 +868,7 @@ map.reorder(geojsonLayer, '要移动到的index');</code></pre>
|
|
|
868
868
|
|
|
869
869
|
<pre class="prettyprint"><code>// 创建图层
|
|
870
870
|
// ES5引入方式
|
|
871
|
-
const { GeoJSONLayer } =
|
|
871
|
+
const { GeoJSONLayer } = zondy.layer
|
|
872
872
|
// ES6引入方式
|
|
873
873
|
import { GeoJSONLayer } from "@mapgis/webclient-common"
|
|
874
874
|
const geojsonLayer = new GeoJSONLayer({
|
|
@@ -887,10 +887,10 @@ geojsonLayer.visible = !geojsonLayer.visible</code></pre>
|
|
|
887
887
|
|
|
888
888
|
<pre class="prettyprint"><code>// 创建图层
|
|
889
889
|
// ES5引入方式
|
|
890
|
-
const { GeoJSONLayer } =
|
|
890
|
+
const { GeoJSONLayer } = zondy.layer
|
|
891
891
|
// ES6引入方式
|
|
892
892
|
import { GeoJSONLayer } from "@mapgis/webclient-common"
|
|
893
|
-
const geojsonLayer = new
|
|
893
|
+
const geojsonLayer = new zondy.layer.GeoJSONLayer({
|
|
894
894
|
// 服务基地址
|
|
895
895
|
url: 'json数据地址',
|
|
896
896
|
// 设置图层透明度
|
|
@@ -905,9 +905,9 @@ geojsonLayer.opacity = 0.5</code></pre>
|
|
|
905
905
|
|
|
906
906
|
|
|
907
907
|
<pre class="prettyprint"><code> // ES5引入方式
|
|
908
|
-
const { LabelClass,Font } =
|
|
909
|
-
const { TextSymbol } =
|
|
910
|
-
const { GeoJSONLayer } =
|
|
908
|
+
const { LabelClass,Font } = zondy
|
|
909
|
+
const { TextSymbol } = zondy.symbol
|
|
910
|
+
const { GeoJSONLayer } = zondy.layer
|
|
911
911
|
// ES6引入方式
|
|
912
912
|
import { LabelClass,Font,TextSymbol,GeoJSONLayer } from "@mapgis/webclient-common"
|
|
913
913
|
// 初始化LabelClass
|
|
@@ -4063,7 +4063,7 @@ const geojsonLayer = new GeoJSONLayer({
|
|
|
4063
4063
|
// 服务基地址
|
|
4064
4064
|
url: 'json数据地址'
|
|
4065
4065
|
}
|
|
4066
|
-
const geojsonLayer = new
|
|
4066
|
+
const geojsonLayer = new zondy.layer.GeoJSONLayer.fromJSON(json)</code></pre>
|
|
4067
4067
|
|
|
4068
4068
|
|
|
4069
4069
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<div class="description">
|
|
38
38
|
<p>几何图形对象基类
|
|
39
39
|
<br><br>[ES5引入方式]:<br/>
|
|
40
|
-
|
|
40
|
+
zondy.geometry.Geometry() <br/>
|
|
41
41
|
[ES6引入方式]:<br/>
|
|
42
42
|
import { Geometry } from "@mapgis/webclient-common" <br/>
|
|
43
43
|
<br/></p>
|
|
@@ -129,7 +129,7 @@ import { Geometry } from "@mapgis/webclient-common" <br/>
|
|
|
129
129
|
|
|
130
130
|
<td class="default">
|
|
131
131
|
|
|
132
|
-
new
|
|
132
|
+
new zondy.SpatialReference('EPSG:4326')
|
|
133
133
|
|
|
134
134
|
</td>
|
|
135
135
|
|
|
@@ -1162,8 +1162,8 @@ import { Geometry } from "@mapgis/webclient-common" <br/>
|
|
|
1162
1162
|
|
|
1163
1163
|
|
|
1164
1164
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1165
|
-
const { Geometry } =
|
|
1166
|
-
const { GeometryType } =
|
|
1165
|
+
const { Geometry } = zondy
|
|
1166
|
+
const { GeometryType } = zondy.enum
|
|
1167
1167
|
// ES6引入方式
|
|
1168
1168
|
import { Geometry, GeometryType } from "@mapgis/webclient-common"
|
|
1169
1169
|
// 通过json构造一个几何对象
|
|
@@ -1401,7 +1401,7 @@ const polygon = Geometry.fromJSON({
|
|
|
1401
1401
|
|
|
1402
1402
|
|
|
1403
1403
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1404
|
-
const { Geometry} =
|
|
1404
|
+
const { Geometry} = zondy.geometry
|
|
1405
1405
|
// ES6引入方式
|
|
1406
1406
|
import { Geometry } from "@mapgis/webclient-common"
|
|
1407
1407
|
// 输入三维点数组
|
|
@@ -1437,7 +1437,7 @@ console.log("构建的多边形对象:", fromRings)</code></pre>
|
|
|
1437
1437
|
|
|
1438
1438
|
|
|
1439
1439
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1440
|
-
const { Geometry,SpatialReference} =
|
|
1440
|
+
const { Geometry,SpatialReference} = zondy.geometry
|
|
1441
1441
|
// ES6引入方式
|
|
1442
1442
|
import { Geometry,SpatialReference } from "@mapgis/webclient-common"
|
|
1443
1443
|
// 输入指定坐标系的点数组
|
|
@@ -1670,7 +1670,7 @@ console.log("构建的指定坐标系的多边形对象:", fromRings)</code></pr
|
|
|
1670
1670
|
|
|
1671
1671
|
|
|
1672
1672
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1673
|
-
const { Geometry } =
|
|
1673
|
+
const { Geometry } = zondy.geometry
|
|
1674
1674
|
// ES6引入方式
|
|
1675
1675
|
import { Geometry } from "@mapgis/webclient-common"
|
|
1676
1676
|
// 构造线几何对象
|