@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
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
|
|
268
268
|
</code>
|
|
269
269
|
</td>
|
|
270
|
-
<td class="name"><code><p
|
|
270
|
+
<td class="name"><code><p>数组集合中的元素</p></code></td>
|
|
271
271
|
</tr>
|
|
272
272
|
|
|
273
273
|
<tr class="deep-level-0">
|
|
@@ -288,6 +288,24 @@
|
|
|
288
288
|
<td class="name"><code><p>items</p></code></td>
|
|
289
289
|
</tr>
|
|
290
290
|
|
|
291
|
+
<tr class="deep-level-0">
|
|
292
|
+
<td class="name"><code><a href="#length">length</a></code></td>
|
|
293
|
+
<td class="name">
|
|
294
|
+
<code>
|
|
295
|
+
|
|
296
|
+
<span class="param-type">
|
|
297
|
+
|
|
298
|
+
Number
|
|
299
|
+
|
|
300
|
+
</span>
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
</code>
|
|
305
|
+
</td>
|
|
306
|
+
<td class="name"><code><p>数组集合的长度</p></code></td>
|
|
307
|
+
</tr>
|
|
308
|
+
|
|
291
309
|
</tbody>
|
|
292
310
|
</table>
|
|
293
311
|
</div>
|
|
@@ -322,7 +340,7 @@
|
|
|
322
340
|
|
|
323
341
|
|
|
324
342
|
<div class="description">
|
|
325
|
-
<p
|
|
343
|
+
<p>数组集合中的元素</p>
|
|
326
344
|
</div>
|
|
327
345
|
|
|
328
346
|
|
|
@@ -429,6 +447,85 @@
|
|
|
429
447
|
|
|
430
448
|
|
|
431
449
|
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
</dl>
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
</div>
|
|
468
|
+
|
|
469
|
+
<div class="member">
|
|
470
|
+
|
|
471
|
+
<span class="method-parameter is-pulled-right">
|
|
472
|
+
<label>类型:</label>
|
|
473
|
+
|
|
474
|
+
<span class="param-type">
|
|
475
|
+
|
|
476
|
+
Number
|
|
477
|
+
|
|
478
|
+
</span>
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
</span>
|
|
483
|
+
|
|
484
|
+
<h4 class="name" id="length">
|
|
485
|
+
<a class="href-link" href="#length">#</a>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
<span class='tag'>readonly</span>
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
<span class="code-name">
|
|
492
|
+
length
|
|
493
|
+
</span>
|
|
494
|
+
|
|
495
|
+
</h4>
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
<div class="description">
|
|
501
|
+
<p>数组集合的长度</p>
|
|
502
|
+
</div>
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
<dl class="details">
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
432
529
|
|
|
433
530
|
|
|
434
531
|
|
|
@@ -8352,7 +8449,7 @@ collection.unshift(1, 2)</code></pre>
|
|
|
8352
8449
|
|
|
8353
8450
|
</code>
|
|
8354
8451
|
</td>
|
|
8355
|
-
<td class="name"><code><p
|
|
8452
|
+
<td class="name"><code><p>数组集合中的元素</p></code></td>
|
|
8356
8453
|
</tr>
|
|
8357
8454
|
|
|
8358
8455
|
<tr class="deep-level-0">
|
|
@@ -8373,6 +8470,24 @@ collection.unshift(1, 2)</code></pre>
|
|
|
8373
8470
|
<td class="name"><code><p>items</p></code></td>
|
|
8374
8471
|
</tr>
|
|
8375
8472
|
|
|
8473
|
+
<tr class="deep-level-0">
|
|
8474
|
+
<td class="name"><code><a href="#length">length</a></code></td>
|
|
8475
|
+
<td class="name">
|
|
8476
|
+
<code>
|
|
8477
|
+
|
|
8478
|
+
<span class="param-type">
|
|
8479
|
+
|
|
8480
|
+
Number
|
|
8481
|
+
|
|
8482
|
+
</span>
|
|
8483
|
+
|
|
8484
|
+
|
|
8485
|
+
|
|
8486
|
+
</code>
|
|
8487
|
+
</td>
|
|
8488
|
+
<td class="name"><code><p>数组集合的长度</p></code></td>
|
|
8489
|
+
</tr>
|
|
8490
|
+
|
|
8376
8491
|
</tbody>
|
|
8377
8492
|
</table>
|
|
8378
8493
|
</div>
|
|
@@ -8407,7 +8522,7 @@ collection.unshift(1, 2)</code></pre>
|
|
|
8407
8522
|
|
|
8408
8523
|
|
|
8409
8524
|
<div class="description">
|
|
8410
|
-
<p
|
|
8525
|
+
<p>数组集合中的元素</p>
|
|
8411
8526
|
</div>
|
|
8412
8527
|
|
|
8413
8528
|
|
|
@@ -8514,6 +8629,85 @@ collection.unshift(1, 2)</code></pre>
|
|
|
8514
8629
|
|
|
8515
8630
|
|
|
8516
8631
|
|
|
8632
|
+
|
|
8633
|
+
|
|
8634
|
+
|
|
8635
|
+
|
|
8636
|
+
|
|
8637
|
+
|
|
8638
|
+
|
|
8639
|
+
|
|
8640
|
+
|
|
8641
|
+
|
|
8642
|
+
|
|
8643
|
+
</dl>
|
|
8644
|
+
|
|
8645
|
+
|
|
8646
|
+
|
|
8647
|
+
|
|
8648
|
+
|
|
8649
|
+
</div>
|
|
8650
|
+
|
|
8651
|
+
<div class="member">
|
|
8652
|
+
|
|
8653
|
+
<span class="method-parameter is-pulled-right">
|
|
8654
|
+
<label>类型:</label>
|
|
8655
|
+
|
|
8656
|
+
<span class="param-type">
|
|
8657
|
+
|
|
8658
|
+
Number
|
|
8659
|
+
|
|
8660
|
+
</span>
|
|
8661
|
+
|
|
8662
|
+
|
|
8663
|
+
|
|
8664
|
+
</span>
|
|
8665
|
+
|
|
8666
|
+
<h4 class="name" id="length">
|
|
8667
|
+
<a class="href-link" href="#length">#</a>
|
|
8668
|
+
|
|
8669
|
+
|
|
8670
|
+
<span class='tag'>readonly</span>
|
|
8671
|
+
|
|
8672
|
+
|
|
8673
|
+
<span class="code-name">
|
|
8674
|
+
length
|
|
8675
|
+
</span>
|
|
8676
|
+
|
|
8677
|
+
</h4>
|
|
8678
|
+
|
|
8679
|
+
|
|
8680
|
+
|
|
8681
|
+
|
|
8682
|
+
<div class="description">
|
|
8683
|
+
<p>数组集合的长度</p>
|
|
8684
|
+
</div>
|
|
8685
|
+
|
|
8686
|
+
|
|
8687
|
+
|
|
8688
|
+
|
|
8689
|
+
|
|
8690
|
+
<dl class="details">
|
|
8691
|
+
|
|
8692
|
+
|
|
8693
|
+
|
|
8694
|
+
|
|
8695
|
+
|
|
8696
|
+
|
|
8697
|
+
|
|
8698
|
+
|
|
8699
|
+
|
|
8700
|
+
|
|
8701
|
+
|
|
8702
|
+
|
|
8703
|
+
|
|
8704
|
+
|
|
8705
|
+
|
|
8706
|
+
|
|
8707
|
+
|
|
8708
|
+
|
|
8709
|
+
|
|
8710
|
+
|
|
8517
8711
|
|
|
8518
8712
|
|
|
8519
8713
|
|
package/documention/Config.html
CHANGED
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
|
|
314
314
|
|
|
315
315
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
316
|
-
const { Config } =
|
|
316
|
+
const { Config } = zondy.service
|
|
317
317
|
// ES6引入方式
|
|
318
318
|
import { Config } from "@mapgis/webclient-common
|
|
319
319
|
// 设置token名,如果不设置就默认维token
|
|
@@ -326,7 +326,7 @@ Config.tokenValue = '新token值'</code></pre>
|
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
329
|
-
const { Config } =
|
|
329
|
+
const { Config } = zondy.service
|
|
330
330
|
// ES6引入方式
|
|
331
331
|
import { Config } from "@mapgis/webclient-common
|
|
332
332
|
// 设置请求头,设置后,所有由基础库发出的链接都会带有该请求头
|
|
@@ -339,7 +339,7 @@ Config.headers = {
|
|
|
339
339
|
|
|
340
340
|
|
|
341
341
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
342
|
-
const { Config } =
|
|
342
|
+
const { Config } = zondy.service
|
|
343
343
|
// ES6引入方式
|
|
344
344
|
import { Config } from "@mapgis/webclient-common
|
|
345
345
|
// 当urls为''或undefined或者空数组时,设置的拦截器会应用到所有发送的请求上
|
|
@@ -363,7 +363,7 @@ Config.request.interceptors.push({
|
|
|
363
363
|
|
|
364
364
|
|
|
365
365
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
366
|
-
const { Config } =
|
|
366
|
+
const { Config } = zondy.service
|
|
367
367
|
// ES6引入方式
|
|
368
368
|
import { Config } from "@mapgis/webclient-common
|
|
369
369
|
// 指定要拦截的url
|
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({
|