@mapgis/webclient-mapboxgl-plugin 17.4.0 → 17.4.8
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 +62 -2
- package/dist/es5/webclient-common.min.js +37 -5
- package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -1
- package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -1
- package/documention/EchartsLayer.html +5 -3
- package/documention/MapView.html +2606 -9
- package/documention/MapViewMapboxgl.html +935 -287
- package/documention/Popup.html +6 -4
- package/documention/Screenshot.html +5 -3
- package/documention/SketchEditor.html +3210 -0
- package/documention/SketchEditorMapboxgl.html +477 -241
- package/documention/global.html +30 -236
- package/documention/index.html +5 -3
- package/documention/initializeOptions.html +454 -0
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapvLayer.html +9 -3
- package/package.json +1 -1
package/documention/global.html
CHANGED
|
@@ -104,7 +104,8 @@
|
|
|
104
104
|
|
|
105
105
|
<nav>
|
|
106
106
|
|
|
107
|
-
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapView"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapView.html">MapView</a><span style="display: none;"><p>二维场景视图(mapboxgl引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<code>Map</code>,<br/>
|
|
107
|
+
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="initializeOptions"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="initializeOptions.html">initializeOptions</a><span style="display: none;"><p>根据图层获取对应的mapboxgl内的sources和layers</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapView"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapView.html">MapView</a><span style="display: none;"><p>二维场景视图(mapboxgl引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<code>Map</code>,<br/>
|
|
108
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/MapView.html' target='_blank'>zondy.MapView</a><br/>
|
|
108
109
|
参考示例:
|
|
109
110
|
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
110
111
|
<br>[ES5引入方式]:<br/>
|
|
@@ -116,11 +117,12 @@ import { MapView } from '@mapgis/webclient-mapboxgl-plugin' <br/></p></span></li
|
|
|
116
117
|
[ES6引入方式]:<br/>
|
|
117
118
|
import { Popup } from '@mapgis/webclient-mapboxgl-plugin' <br/>
|
|
118
119
|
自定义样式说明:<br/>
|
|
119
|
-
zondy-
|
|
120
|
+
zondy-popup__container 弹窗容器样式<br/>
|
|
120
121
|
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
121
122
|
zondy-popup__header 弹窗头部样式<br/>
|
|
122
123
|
zondy-popup__content 弹窗主体样式<br/>
|
|
123
|
-
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Screenshot"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="
|
|
124
|
+
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Screenshot"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SketchEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditor.html">SketchEditor</a><span style="display: none;"><p>二维Mapboxgl引擎草图编辑类<br/>
|
|
125
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/SketchEditor.html' target='_blank'>zondy.SketchEditor</a><br/>
|
|
124
126
|
<br>[ES5引入方式]:<br/>
|
|
125
127
|
const { SketchEditor } = zondy.mapboxgl.tool.sketch <br/>
|
|
126
128
|
[ES6引入方式]:<br/>
|
|
@@ -2334,7 +2336,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
2334
2336
|
|
|
2335
2337
|
<span class="code-name" style="font-size:30px">
|
|
2336
2338
|
|
|
2337
|
-
getRasterSource<span class="signature">(url, tileSize, renderMode, subDomains, requestParams, clippingArea)</span>
|
|
2339
|
+
getRasterSource<span class="signature">(url, tileSize, renderMode, subDomains, requestParams, clippingArea, extent)</span>
|
|
2338
2340
|
|
|
2339
2341
|
</span>
|
|
2340
2342
|
</h4>
|
|
@@ -2518,6 +2520,30 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
2518
2520
|
|
|
2519
2521
|
|
|
2520
2522
|
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
<tr class="deep-level-0">
|
|
2526
|
+
|
|
2527
|
+
<td class="name"><code>extent</code></td>
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
<td class="type">
|
|
2531
|
+
|
|
2532
|
+
|
|
2533
|
+
<span class="param-type">Extent</span>
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
</td>
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
|
|
2541
|
+
<td class="description last"><p>数据源范围</p></td>
|
|
2542
|
+
</tr>
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
|
|
2521
2547
|
</tbody>
|
|
2522
2548
|
</table>
|
|
2523
2549
|
</div>
|
|
@@ -3583,238 +3609,6 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
3583
3609
|
|
|
3584
3610
|
|
|
3585
3611
|
|
|
3586
|
-
</div>
|
|
3587
|
-
|
|
3588
|
-
<div class="member">
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
<h4 class="name" id="initializeOptions">
|
|
3593
|
-
<a class="href-link" href="#initializeOptions">#</a>
|
|
3594
|
-
|
|
3595
|
-
<span class="code-name" style="font-size:30px">
|
|
3596
|
-
|
|
3597
|
-
initializeOptions<span class="signature">(layer, options)</span>
|
|
3598
|
-
|
|
3599
|
-
</span>
|
|
3600
|
-
</h4>
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
<h4>参数:</h4>
|
|
3614
|
-
|
|
3615
|
-
<div class="table-container">
|
|
3616
|
-
<table class="params table">
|
|
3617
|
-
<thead>
|
|
3618
|
-
<tr>
|
|
3619
|
-
|
|
3620
|
-
<th>名称</th>
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
<th>类型</th>
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
<th class="last">描述</th>
|
|
3628
|
-
</tr>
|
|
3629
|
-
</thead>
|
|
3630
|
-
|
|
3631
|
-
<tbody>
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
<tr class="deep-level-0">
|
|
3636
|
-
|
|
3637
|
-
<td class="name"><code>layer</code></td>
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
<td class="type">
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
<span class="param-type">Layer</span>
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
</td>
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
<td class="description last"><p>common层定义的图层对象</p></td>
|
|
3652
|
-
</tr>
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
<tr class="deep-level-0">
|
|
3660
|
-
|
|
3661
|
-
<td class="name"><code>options</code></td>
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
<td class="type">
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
<span class="param-type">Object</span>
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
</td>
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
<td class="description last"><p>构造传入参数</p></td>
|
|
3676
|
-
</tr>
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
<tr class="deep-level-1">
|
|
3682
|
-
|
|
3683
|
-
<td class="name"><code>featureSet</code></td>
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
<td class="type">
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
<span class="param-type">FeatureSet</span>
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
</td>
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
<td class="description last"><p>要素数据集对象。仅在使用矢量图层(IGSFeatureLayer、GeoJSONLayer、WFSLayer)时有效,外部必须传入FeatureSet对象</p></td>
|
|
3698
|
-
</tr>
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
<tr class="deep-level-1">
|
|
3704
|
-
|
|
3705
|
-
<td class="name"><code>mapboxglMap</code></td>
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
<td class="type">
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
<span class="param-type">Object</span>
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
</td>
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
<td class="description last"><p>mapboxglMap地图对象。矢量图层(IGSFeatureLayer、GeoJSONLayer、WFSLayer)以及几何图层(GraphicsLayer)必传。传入主要是构建图片资源管理器,保证符号正常加载。</p></td>
|
|
3720
|
-
</tr>
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
</tbody>
|
|
3729
|
-
</table>
|
|
3730
|
-
</div>
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
<dl class="details">
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
</dl>
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
<div class='columns method-parameter'>
|
|
3789
|
-
<div class="column is-2"><label>返回值:</label></div>
|
|
3790
|
-
<div class="column is-10">
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
<div class="columns">
|
|
3795
|
-
|
|
3796
|
-
<div class='param-desc column is-7'><p>返回JSON对象</p></div>
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
<div class='column is-5 has-text-left'>
|
|
3800
|
-
<label>类型: </label>
|
|
3801
|
-
|
|
3802
|
-
<span class="param-type">Object</span>
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
</div>
|
|
3806
|
-
|
|
3807
|
-
</div>
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
</div>
|
|
3811
|
-
</div>
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
3612
|
</div>
|
|
3819
3613
|
|
|
3820
3614
|
<div class="member">
|
package/documention/index.html
CHANGED
|
@@ -104,7 +104,8 @@
|
|
|
104
104
|
|
|
105
105
|
<nav>
|
|
106
106
|
|
|
107
|
-
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapView"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapView.html">MapView</a><span style="display: none;"><p>二维场景视图(mapboxgl引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<code>Map</code>,<br/>
|
|
107
|
+
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="initializeOptions"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="initializeOptions.html">initializeOptions</a><span style="display: none;"><p>根据图层获取对应的mapboxgl内的sources和layers</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapView"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapView.html">MapView</a><span style="display: none;"><p>二维场景视图(mapboxgl引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<code>Map</code>,<br/>
|
|
108
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/MapView.html' target='_blank'>zondy.MapView</a><br/>
|
|
108
109
|
参考示例:
|
|
109
110
|
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
110
111
|
<br>[ES5引入方式]:<br/>
|
|
@@ -116,11 +117,12 @@ import { MapView } from '@mapgis/webclient-mapboxgl-plugin' <br/></p></span></li
|
|
|
116
117
|
[ES6引入方式]:<br/>
|
|
117
118
|
import { Popup } from '@mapgis/webclient-mapboxgl-plugin' <br/>
|
|
118
119
|
自定义样式说明:<br/>
|
|
119
|
-
zondy-
|
|
120
|
+
zondy-popup__container 弹窗容器样式<br/>
|
|
120
121
|
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
121
122
|
zondy-popup__header 弹窗头部样式<br/>
|
|
122
123
|
zondy-popup__content 弹窗主体样式<br/>
|
|
123
|
-
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Screenshot"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="
|
|
124
|
+
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Screenshot"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SketchEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditor.html">SketchEditor</a><span style="display: none;"><p>二维Mapboxgl引擎草图编辑类<br/>
|
|
125
|
+
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/SketchEditor.html' target='_blank'>zondy.SketchEditor</a><br/>
|
|
124
126
|
<br>[ES5引入方式]:<br/>
|
|
125
127
|
const { SketchEditor } = zondy.mapboxgl.tool.sketch <br/>
|
|
126
128
|
[ES6引入方式]:<br/>
|