@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
|
@@ -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
|
// 构造线几何对象
|