@mapgis/webclient-leaflet-plugin 17.4.0 → 17.6.0

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.
Files changed (45) hide show
  1. package/README.md +104 -43
  2. package/dist/es5/webclient-common.min.js +63 -5
  3. package/dist/es5/webclient-leaflet-plugin.min.js +6 -6
  4. package/dist/webclient-leaflet-plugin-es6.min.js +6 -11
  5. package/documention/ArcGISMapImageLayer.html +53 -5
  6. package/documention/ArcGISTileLayer.html +45 -5
  7. package/documention/EchartsLayer.html +15 -5
  8. package/documention/FeatureLayer.html +5 -3
  9. package/documention/FeatureLayerUtil.html +6 -4
  10. package/documention/IGSImageryLayer.html +851 -0
  11. package/documention/IGSImageryTileLayer.html +741 -0
  12. package/documention/IGSMapImageLayer.html +57 -32
  13. package/documention/IGSTileLayer.html +106 -26
  14. package/documention/L.zondy.MapvBaseLayer.html +9 -3
  15. package/documention/MapLayer.html +33 -3
  16. package/documention/MapVLayer.html +15 -5
  17. package/documention/MapView.html +3860 -56
  18. package/documention/MapViewLeaflet.html +1413 -369
  19. package/documention/Popup.html +6 -4
  20. package/documention/Screenshot.html +5 -3
  21. package/documention/SketchEditor.html +3211 -0
  22. package/documention/SketchEditorLeaflet.html +477 -241
  23. package/documention/TileLayer.html +135 -3
  24. package/documention/TileLayerWMS.html +5 -3
  25. package/documention/VectorTileLayer.html +49 -5
  26. package/documention/WMSLayerView.html +5 -3
  27. package/documention/WebMapServiceLayer.html +51 -5
  28. package/documention/WebMapTileServiceLayer.html +41 -21
  29. package/documention/WebTileLayer.html +45 -5
  30. package/documention/global.html +511 -1869
  31. package/documention/index.html +5 -3
  32. package/documention/initializeOptions.html +384 -0
  33. package/documention/{Zondy.ThemeLayer.GeoFeatureThemeLayer.html → zondy.themelayer.GeoFeatureThemeLayer.html} +9 -3
  34. package/documention/{Zondy.ThemeLayer.GraphThemeLayer.html → zondy.themelayer.GraphThemeLayer.html} +5 -3
  35. package/documention/{Zondy.ThemeLayer.RandomThemeLayer.html → zondy.themelayer.RandomThemeLayer.html} +5 -3
  36. package/documention/{Zondy.ThemeLayer.ThemeLayer.html → zondy.themelayer.ThemeLayer.html} +9 -3
  37. package/documention/{Zondy.ThemeLayer.ThemeStyle.html → zondy.themelayer.ThemeStyle.html} +9 -3
  38. package/documention/{Zondy.ThemeLayer.rangeThemeLayer.html → zondy.themelayer.rangeThemeLayer.html} +5 -3
  39. package/documention/{Zondy.ThemeLayer.rankSymbolThemeLayer.html → zondy.themelayer.rankSymbolThemeLayer.html} +5 -3
  40. package/documention/{Zondy.ThemeLayer.simpleThemeLayer.html → zondy.themelayer.simpleThemeLayer.html} +5 -3
  41. package/documention/{Zondy.ThemeLayer.uniqueThemeLayer.html → zondy.themelayer.uniqueThemeLayer.html} +5 -3
  42. package/documention/{Zondy.view.UI.html → zondy.view.UI.html} +10 -4
  43. package/documention/{Zondy.Widget.html → zondy.widget.html} +6 -4
  44. package/package.json +7 -8
  45. package/documention/DrawControl.html +0 -802
@@ -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="ArcGISMapImageLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapImageLayer.html">ArcGISMapImageLayer</a><span style="display: none;"><p>ArcGIS地图图片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISTileLayer.html">ArcGISTileLayer</a><span style="display: none;"><p>ArcGIS瓦片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="EchartsLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="EchartsLayer.html">EchartsLayer</a><span style="display: none;"><p>Echarts图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FeatureLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureLayer.html">FeatureLayer</a><span style="display: none;"><p>要素图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSMapImageLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSMapImageLayer.html">IGSMapImageLayer</a><span style="display: none;"><p>地图图片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSTileLayer.html">IGSTileLayer</a><span style="display: none;"><p>IGS瓦片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapLayer.html">MapLayer</a><span style="display: none;"><p>屏幕出一张图图层基类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapVLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapVLayer.html">MapVLayer</a><span style="display: none;"><p>MapV图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TileLayer.html">TileLayer</a><span style="display: none;"><p>带裁剪功能的瓦片图层基类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TileLayerWMS"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TileLayerWMS.html">TileLayerWMS</a><span style="display: none;"><p>WMS图层基类(相比于原生的L.TileLayer.WMS, 此图层支持空间裁剪功能)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="VectorTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VectorTileLayer.html">VectorTileLayer</a><span style="display: none;"><p>矢量瓦片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapServiceLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapServiceLayer.html">WebMapServiceLayer</a><span style="display: none;"><p>WMS图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapTileServiceLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapTileServiceLayer.html">WebMapTileServiceLayer</a><span style="display: none;"><p>WMTS图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebTileLayer.html">WebTileLayer</a><span style="display: none;"><p>网络瓦片图层(Leaflet)</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="FeatureLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureLayerUtil.html">FeatureLayerUtil</a><span style="display: none;"><p>要素图层工具类(Leaflet)</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>二维场景视图(leaflet引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<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="ArcGISMapImageLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapImageLayer.html">ArcGISMapImageLayer</a><span style="display: none;"><p>ArcGIS地图服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="ArcGISTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISTileLayer.html">ArcGISTileLayer</a><span style="display: none;"><p>ArcGIS瓦片服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="EchartsLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="EchartsLayer.html">EchartsLayer</a><span style="display: none;"><p>Echarts图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="FeatureLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureLayer.html">FeatureLayer</a><span style="display: none;"><p>要素图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSImageryLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSImageryLayer.html">IGSImageryLayer</a><span style="display: none;"><p>IGS影像图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSImageryTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSImageryTileLayer.html">IGSImageryTileLayer</a><span style="display: none;"><p>IGS影像瓦片图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSMapImageLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSMapImageLayer.html">IGSMapImageLayer</a><span style="display: none;"><p>IGS地图服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="IGSTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSTileLayer.html">IGSTileLayer</a><span style="display: none;"><p>IGS瓦片服务接入类</p></span></li><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>通过Common的图层对象构建Leaflet图层对象的初始化参数</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapLayer.html">MapLayer</a><span style="display: none;"><p>屏幕出一张图图层基类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="MapVLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapVLayer.html">MapVLayer</a><span style="display: none;"><p>MapV图层(Leaflet)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TileLayer.html">TileLayer</a><span style="display: none;"><p>带裁剪功能的瓦片图层基类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="TileLayerWMS"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TileLayerWMS.html">TileLayerWMS</a><span style="display: none;"><p>WMS图层基类(相比于原生的L.TileLayer.WMS, 此图层支持空间裁剪功能)</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="VectorTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VectorTileLayer.html">VectorTileLayer</a><span style="display: none;"><p>矢量瓦片服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapServiceLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapServiceLayer.html">WebMapServiceLayer</a><span style="display: none;"><p>WMS服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebMapTileServiceLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebMapTileServiceLayer.html">WebMapTileServiceLayer</a><span style="display: none;"><p>WMTS服务接入类</p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="WebTileLayer"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WebTileLayer.html">WebTileLayer</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="FeatureLayerUtil"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureLayerUtil.html">FeatureLayerUtil</a><span style="display: none;"><p>要素图层工具类(Leaflet)</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>二维场景视图(leaflet引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<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-leaflet-plugin' <br/></p></span></li>
116
117
  [ES6引入方式]:<br/>
117
118
  import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
118
119
  自定义样式说明:<br/>
119
- zondy-popup__content 弹窗容器样式<br/>
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="SketchEditorLeaflet"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorLeaflet.html">SketchEditorLeaflet</a><span style="display: none;"><p>二维Leaflet引擎草图编辑类<br/>
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>二维Leaflet引擎草图编辑类<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.leaflet.tool.sketch <br/>
126
128
  [ES6引入方式]:<br/>
@@ -166,6 +168,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
166
168
 
167
169
  <div class="description">
168
170
  <p>二维场景视图(leaflet引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<code>Map</code>,<br/>
171
+ 继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/MapView.html' target='_blank'>zondy.MapView</a><br/>
169
172
  参考示例:
170
173
  <a href='#MapView'>[初始化二维场景视图]</a>
171
174
  <br>[ES5引入方式]:<br/>
@@ -287,13 +290,13 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
287
290
 
288
291
  <tr class="deep-level-1">
289
292
 
290
- <td class="name"><code>limitedMinZoom</code></td>
293
+ <td class="name"><code>spatialReference</code></td>
291
294
 
292
295
 
293
296
  <td class="type">
294
297
 
295
298
 
296
- <span class="param-type">Number</span>
299
+ <span class="param-type">SpatialReference</span>
297
300
 
298
301
 
299
302
 
@@ -305,7 +308,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
305
308
  </td>
306
309
 
307
310
 
308
- <td class="description last"><p>视图加载最小缩放级数</p></td>
311
+ <td class="description last"><p>视图空间参考系</p></td>
309
312
  </tr>
310
313
 
311
314
 
@@ -846,7 +849,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
846
849
  </td>
847
850
 
848
851
 
849
- <td class="description last"><p>地图视图中心点</p></td>
852
+ <td class="description last"><p>地图视图中心点。如果有中心点,看是否存在zoom/scale,使用center和zoom/scale定位(同时设置scale和zoom时,scale优先于zoom),否则默认zoom为到第0级。如果没有设置center,但设置了extent,则以extent定位。</p></td>
850
853
  </tr>
851
854
 
852
855
 
@@ -872,7 +875,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
872
875
  </td>
873
876
 
874
877
 
875
- <td class="description last"><p>地图视图可视范围</p></td>
878
+ <td class="description last"><p>地图视图初始所在的范围。如果没有设置center,但设置extent了,则地图视图定位到extent范围内。</p></td>
876
879
  </tr>
877
880
 
878
881
 
@@ -924,7 +927,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
924
927
  </td>
925
928
 
926
929
 
927
- <td class="description last"><p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,视图的最大比例尺不受限制。maxScale的值应该始终小于minScale的值。</p></td>
930
+ <td class="description last"><p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。maxScale的值应该始终小于minScale的值。</p></td>
928
931
  </tr>
929
932
 
930
933
 
@@ -950,7 +953,59 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
950
953
  </td>
951
954
 
952
955
 
953
- <td class="description last"><p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据全图范围,计算视图的最小比例尺。如果用户设置了该值,则地图将直接采用用户设置的值。minScale的值应该始终大于maxScale的值。</p></td>
956
+ <td class="description last"><p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。minScale的值应该始终大于maxScale的值。</p></td>
957
+ </tr>
958
+
959
+
960
+
961
+
962
+ <tr class="deep-level-1">
963
+
964
+ <td class="name"><code>maxZoom</code></td>
965
+
966
+
967
+ <td class="type">
968
+
969
+
970
+ <span class="param-type">Number</span>
971
+
972
+
973
+
974
+ </td>
975
+
976
+
977
+ <td class="default">
978
+
979
+ </td>
980
+
981
+
982
+ <td class="description last"><p>最大缩放级数 。优先级低于maxScale</p></td>
983
+ </tr>
984
+
985
+
986
+
987
+
988
+ <tr class="deep-level-1">
989
+
990
+ <td class="name"><code>minZoom</code></td>
991
+
992
+
993
+ <td class="type">
994
+
995
+
996
+ <span class="param-type">Number</span>
997
+
998
+
999
+
1000
+ </td>
1001
+
1002
+
1003
+ <td class="default">
1004
+
1005
+ </td>
1006
+
1007
+
1008
+ <td class="description last"><p>最小缩放级数。优先级低于minScale</p></td>
954
1009
  </tr>
955
1010
 
956
1011
 
@@ -1009,6 +1064,32 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
1009
1064
 
1010
1065
 
1011
1066
 
1067
+
1068
+ <tr class="deep-level-1">
1069
+
1070
+ <td class="name"><code>fullExtent</code></td>
1071
+
1072
+
1073
+ <td class="type">
1074
+
1075
+
1076
+ <span class="param-type">Number</span>
1077
+
1078
+
1079
+
1080
+ </td>
1081
+
1082
+
1083
+ <td class="default">
1084
+
1085
+ </td>
1086
+
1087
+
1088
+ <td class="description last"><p>地图视图最大显示范围。用户不设置时,将地图范围作为地图视图的最大显示范围,用户设置时采用用户设置的。地图视图初始化时,会根据此范围计算地图视图的最小比例尺,当瓦片数据的最大比例尺小于此比例尺时,无法显示。在相同视图大小下,fullExtent越大,地图视图的最小比例尺越小。</p></td>
1089
+ </tr>
1090
+
1091
+
1092
+
1012
1093
 
1013
1094
 
1014
1095
 
@@ -1145,7 +1226,21 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
1145
1226
  <p class="code-caption"><h7 id='MapView'>初始化一个二维场景视图</h7></p>
1146
1227
 
1147
1228
 
1148
- <pre class="prettyprint"><code>// ES5引入方式
1149
1229
  // 二维场景视图的容器(html的div标签)ID
1150
1230
  viewId: "二维场景视图的容器的id",
1151
1231
  // 图层管理容器
1152
1232
  map: map
1233
+ <pre class="prettyprint"><code>// ES5引入方式
1234
+ const { Map } = zondy
1235
+ const { MapView } = zondy.leaflet
1236
+ // ES6引入方式
1237
+ import { Map } from "@mapgis/webclient-common"
1238
+ import { MapView } from "@mapgis/webclient-leaflet-plugin"
1239
+ // 初始化图层管理容器
1240
+ const map = new Map();
1241
+ // 初始化地图视图对象
1242
+ const mapView = new MapView({
1243
+ // 二维场景视图的容器(html的div标签)ID
1244
+ viewId: "二维场景视图的容器的id",
1245
+ // 图层管理容器
1246
+ map: map
1247
+ });</code></pre>
1153
1248
 
1154
1249
 
1155
1250
 
@@ -1164,7 +1259,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
1164
1259
 
1165
1260
 
1166
1261
  <ul>
1167
- <li>Evented</li>
1262
+ <li>zondy.MapView</li>
1168
1263
  </ul>
1169
1264
 
1170
1265
 
@@ -1330,7 +1425,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
1330
1425
  <span class="method-parameter is-pulled-right">
1331
1426
  <label>类型:</label>
1332
1427
 
1333
- <span class="param-type">Object</span>
1428
+ <span class="param-type">EngineType</span>
1334
1429
 
1335
1430
 
1336
1431
  </span>
@@ -1636,7 +1731,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
1636
1731
 
1637
1732
 
1638
1733
  <div class="description">
1639
- <p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,视图的最大比例尺不受限制。maxScale的值应该始终小于minScale的值。</p>
1734
+ <p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。maxScale的值应该始终小于minScale的值。</p>
1640
1735
  </div>
1641
1736
 
1642
1737
 
@@ -1706,7 +1801,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
1706
1801
 
1707
1802
 
1708
1803
  <div class="description">
1709
- <p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据全图范围,计算视图的最小比例尺。如果用户设置了该值,则地图将直接采用用户设置的值。minScale的值应该始终大于maxScale的值。</p>
1804
+ <p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。minScale的值应该始终大于maxScale的值。</p>
1710
1805
  </div>
1711
1806
 
1712
1807
 
@@ -2038,20 +2133,16 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2038
2133
  <span class="method-parameter is-pulled-right">
2039
2134
  <label>类型:</label>
2040
2135
 
2041
- <span class="param-type">SpatialReference</span>
2136
+ <span class="param-type">Boolean</span>
2042
2137
 
2043
2138
 
2044
2139
  </span>
2045
2140
 
2046
- <h4 class="name" id="spatialReference">
2047
- <a class="href-link" href="#spatialReference">#</a>
2048
-
2049
-
2050
- <span class='tag'>readonly</span>
2051
-
2141
+ <h4 class="name" id="spatialReferenceLocked">
2142
+ <a class="href-link" href="#spatialReferenceLocked">#</a>
2052
2143
 
2053
2144
  <span class="code-name">
2054
- spatialReference
2145
+ spatialReferenceLocked
2055
2146
  </span>
2056
2147
 
2057
2148
  </h4>
@@ -2060,7 +2151,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2060
2151
 
2061
2152
 
2062
2153
  <div class="description">
2063
- <p>视图空间参考系</p>
2154
+ <p>是否锁定视图空间参考系</p>
2064
2155
  </div>
2065
2156
 
2066
2157
 
@@ -2117,11 +2208,15 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2117
2208
 
2118
2209
  </span>
2119
2210
 
2120
- <h4 class="name" id="spatialReferenceLocked">
2121
- <a class="href-link" href="#spatialReferenceLocked">#</a>
2211
+ <h4 class="name" id="stationary">
2212
+ <a class="href-link" href="#stationary">#</a>
2213
+
2214
+
2215
+ <span class='tag'>readonly</span>
2216
+
2122
2217
 
2123
2218
  <span class="code-name">
2124
- spatialReferenceLocked
2219
+ stationary
2125
2220
  </span>
2126
2221
 
2127
2222
  </h4>
@@ -2130,7 +2225,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2130
2225
 
2131
2226
 
2132
2227
  <div class="description">
2133
- <p>是否锁定视图空间参考系</p>
2228
+ <p>试图是否静止</p>
2134
2229
  </div>
2135
2230
 
2136
2231
 
@@ -2182,20 +2277,20 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2182
2277
  <span class="method-parameter is-pulled-right">
2183
2278
  <label>类型:</label>
2184
2279
 
2185
- <span class="param-type">Boolean</span>
2280
+ <span class="param-type">Number</span>
2186
2281
 
2187
2282
 
2188
2283
  </span>
2189
2284
 
2190
- <h4 class="name" id="stationary">
2191
- <a class="href-link" href="#stationary">#</a>
2285
+ <h4 class="name" id="width">
2286
+ <a class="href-link" href="#width">#</a>
2192
2287
 
2193
2288
 
2194
2289
  <span class='tag'>readonly</span>
2195
2290
 
2196
2291
 
2197
2292
  <span class="code-name">
2198
- stationary
2293
+ width
2199
2294
  </span>
2200
2295
 
2201
2296
  </h4>
@@ -2204,7 +2299,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2204
2299
 
2205
2300
 
2206
2301
  <div class="description">
2207
- <p>试图是否静止</p>
2302
+ <p>地图视图宽度</p>
2208
2303
  </div>
2209
2304
 
2210
2305
 
@@ -2261,15 +2356,11 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2261
2356
 
2262
2357
  </span>
2263
2358
 
2264
- <h4 class="name" id="width">
2265
- <a class="href-link" href="#width">#</a>
2266
-
2267
-
2268
- <span class='tag'>readonly</span>
2269
-
2359
+ <h4 class="name" id="zoom">
2360
+ <a class="href-link" href="#zoom">#</a>
2270
2361
 
2271
2362
  <span class="code-name">
2272
- width
2363
+ zoom
2273
2364
  </span>
2274
2365
 
2275
2366
  </h4>
@@ -2278,7 +2369,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2278
2369
 
2279
2370
 
2280
2371
  <div class="description">
2281
- <p>地图视图宽度</p>
2372
+ <p>视图层级</p>
2282
2373
  </div>
2283
2374
 
2284
2375
 
@@ -2325,36 +2416,101 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2325
2416
 
2326
2417
  </div>
2327
2418
 
2419
+ </div>
2420
+ </div>
2421
+
2422
+
2423
+
2424
+ <div class='vertical-section'>
2425
+ <h3 id='function'>方法</h3>
2426
+ <div class="members">
2427
+
2328
2428
  <div class="member">
2329
2429
 
2330
- <span class="method-parameter is-pulled-right">
2331
- <label>类型:</label>
2430
+
2431
+
2432
+ <h4 class="name" id=".fromJSON">
2433
+ <a class="href-link" href="#.fromJSON">#</a>
2332
2434
 
2333
- <span class="param-type">Number</span>
2435
+
2436
+ <span class='tag'>static</span>
2437
+
2438
+
2439
+ <span class="code-name" style="font-size:30px">
2440
+
2441
+ fromJSON<span class="signature">(json)</span>
2442
+
2443
+ </span>
2444
+ </h4>
2445
+
2446
+
2447
+
2448
+ <div class="description">
2449
+ <p>通过json构造并返回一个新的场景视图对象<a id='fromJSON'></a></p>
2450
+ </div>
2451
+
2334
2452
 
2335
2453
 
2336
- </span>
2337
2454
 
2338
- <h4 class="name" id="zoom">
2339
- <a class="href-link" href="#zoom">#</a>
2340
-
2341
- <span class="code-name">
2342
- zoom
2343
- </span>
2455
+
2456
+
2457
+
2458
+
2459
+
2460
+
2461
+ <h4>参数:</h4>
2344
2462
 
2345
- </h4>
2463
+ <div class="table-container">
2464
+ <table class="params table">
2465
+ <thead>
2466
+ <tr>
2467
+
2468
+ <th>名称</th>
2469
+
2346
2470
 
2471
+ <th>类型</th>
2347
2472
 
2473
+
2348
2474
 
2475
+ <th class="last">描述</th>
2476
+ </tr>
2477
+ </thead>
2349
2478
 
2350
- <div class="description">
2351
- <p>视图层级</p>
2479
+ <tbody>
2480
+
2481
+
2482
+
2483
+ <tr class="deep-level-0">
2484
+
2485
+ <td class="name"><code>json</code></td>
2486
+
2487
+
2488
+ <td class="type">
2489
+
2490
+
2491
+ <span class="param-type">Object</span>
2492
+
2493
+
2494
+
2495
+ </td>
2496
+
2497
+
2498
+
2499
+ <td class="description last"><p>json对象</p></td>
2500
+ </tr>
2501
+
2502
+
2503
+
2504
+
2505
+ </tbody>
2506
+ </table>
2352
2507
  </div>
2353
2508
 
2354
2509
 
2355
2510
 
2356
2511
 
2357
2512
 
2513
+
2358
2514
  <dl class="details">
2359
2515
 
2360
2516
 
@@ -2393,13 +2549,3661 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
2393
2549
 
2394
2550
 
2395
2551
 
2396
- </div>
2552
+
2553
+
2554
+
2555
+
2556
+
2557
+
2558
+
2559
+
2560
+
2561
+
2562
+
2563
+
2564
+
2565
+ <div class='columns method-parameter'>
2566
+ <div class="column is-2"><label>返回值:</label></div>
2567
+ <div class="column is-10">
2397
2568
 
2398
- </div>
2569
+
2570
+
2571
+ <div class="columns">
2572
+
2573
+ <div class='param-desc column is-7'><p>一个新的场景视图对象</p></div>
2574
+
2575
+
2576
+ <div class='column is-5 has-text-left'>
2577
+ <label>类型: </label>
2578
+
2579
+ <span class="param-type"><a href="MapView.html">MapView</a></span>
2580
+
2581
+
2582
+ </div>
2583
+
2584
+ </div>
2585
+
2586
+
2399
2587
  </div>
2588
+ </div>
2589
+
2590
+
2591
+
2592
+
2593
+
2594
+
2595
+ </div>
2596
+
2597
+ <div class="member">
2598
+
2599
+
2600
+
2601
+ <h4 class="name" id=".fromJSON">
2602
+ <a class="href-link" href="#.fromJSON">#</a>
2603
+
2604
+
2605
+ <span class='tag'>static</span>
2606
+
2607
+
2608
+ <span class="code-name" style="font-size:30px">
2609
+
2610
+ fromJSON<span class="signature">(json)</span>
2611
+
2612
+ </span>
2613
+ </h4>
2400
2614
 
2401
2615
 
2402
2616
 
2617
+ <div class="description">
2618
+ <p>通过一个配置生成一个场景视图对象</p>
2619
+ </div>
2620
+
2621
+
2622
+
2623
+
2624
+
2625
+
2626
+
2627
+
2628
+
2629
+
2630
+ <h4>参数:</h4>
2631
+
2632
+ <div class="table-container">
2633
+ <table class="params table">
2634
+ <thead>
2635
+ <tr>
2636
+
2637
+ <th>名称</th>
2638
+
2639
+
2640
+ <th>类型</th>
2641
+
2642
+
2643
+
2644
+ <th class="last">描述</th>
2645
+ </tr>
2646
+ </thead>
2647
+
2648
+ <tbody>
2649
+
2650
+
2651
+
2652
+ <tr class="deep-level-0">
2653
+
2654
+ <td class="name"><code>json</code></td>
2655
+
2656
+
2657
+ <td class="type">
2658
+
2659
+
2660
+ <span class="param-type">Object</span>
2661
+
2662
+
2663
+
2664
+ </td>
2665
+
2666
+
2667
+
2668
+ <td class="description last"><p>场景视图配置</p></td>
2669
+ </tr>
2670
+
2671
+
2672
+
2673
+
2674
+ </tbody>
2675
+ </table>
2676
+ </div>
2677
+
2678
+
2679
+
2680
+
2681
+
2682
+
2683
+ <dl class="details">
2684
+
2685
+
2686
+
2687
+
2688
+
2689
+
2690
+
2691
+
2692
+
2693
+
2694
+
2695
+
2696
+
2697
+
2698
+
2699
+
2700
+
2701
+
2702
+
2703
+
2704
+
2705
+
2706
+
2707
+
2708
+
2709
+
2710
+
2711
+
2712
+
2713
+
2714
+
2715
+ </dl>
2716
+
2717
+
2718
+
2719
+
2720
+
2721
+
2722
+
2723
+
2724
+
2725
+
2726
+
2727
+
2728
+
2729
+
2730
+
2731
+
2732
+
2733
+
2734
+ <div class='columns method-parameter'>
2735
+ <div class="column is-2"><label>返回值:</label></div>
2736
+ <div class="column is-10">
2737
+
2738
+
2739
+
2740
+ <div class="columns">
2741
+
2742
+
2743
+ <div class='column is-5 has-text-left'>
2744
+ <label>类型: </label>
2745
+
2746
+ <span class="param-type"><a href="MapView.html">MapView</a></span>
2747
+
2748
+
2749
+ </div>
2750
+
2751
+ </div>
2752
+
2753
+
2754
+ </div>
2755
+ </div>
2756
+
2757
+
2758
+
2759
+
2760
+
2761
+
2762
+ </div>
2763
+
2764
+ <div class="member">
2765
+
2766
+
2767
+
2768
+ <h4 class="name" id="clone">
2769
+ <a class="href-link" href="#clone">#</a>
2770
+
2771
+ <span class="code-name" style="font-size:30px">
2772
+
2773
+ clone<span class="signature">()</span>
2774
+
2775
+ </span>
2776
+ </h4>
2777
+
2778
+
2779
+
2780
+ <div class="description">
2781
+ <p>克隆并返回一个新的视图对象<a id='clone'></a></p>
2782
+ </div>
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+
2789
+
2790
+
2791
+
2792
+
2793
+
2794
+
2795
+
2796
+
2797
+ <dl class="details">
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+
2813
+
2814
+
2815
+
2816
+
2817
+
2818
+
2819
+
2820
+
2821
+
2822
+
2823
+
2824
+
2825
+
2826
+
2827
+
2828
+
2829
+ </dl>
2830
+
2831
+
2832
+
2833
+
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+
2843
+
2844
+
2845
+
2846
+
2847
+
2848
+ <div class='columns method-parameter'>
2849
+ <div class="column is-2"><label>返回值:</label></div>
2850
+ <div class="column is-10">
2851
+
2852
+
2853
+
2854
+ <div class="columns">
2855
+
2856
+ <div class='param-desc column is-7'><p>一个新的场景视图对象</p></div>
2857
+
2858
+
2859
+ <div class='column is-5 has-text-left'>
2860
+ <label>类型: </label>
2861
+
2862
+ <span class="param-type"><a href="MapView.html">MapView</a></span>
2863
+
2864
+
2865
+ </div>
2866
+
2867
+ </div>
2868
+
2869
+
2870
+ </div>
2871
+ </div>
2872
+
2873
+
2874
+
2875
+
2876
+
2877
+
2878
+ </div>
2879
+
2880
+ <div class="member">
2881
+
2882
+
2883
+
2884
+ <h4 class="name" id="destroy">
2885
+ <a class="href-link" href="#destroy">#</a>
2886
+
2887
+ <span class="code-name" style="font-size:30px">
2888
+
2889
+ destroy<span class="signature">()</span>
2890
+
2891
+ </span>
2892
+ </h4>
2893
+
2894
+
2895
+
2896
+ <div class="description">
2897
+ <p>销毁视图对象<a id='destroy'></a></p>
2898
+ </div>
2899
+
2900
+
2901
+
2902
+
2903
+
2904
+
2905
+
2906
+
2907
+
2908
+
2909
+
2910
+
2911
+
2912
+
2913
+ <dl class="details">
2914
+
2915
+
2916
+
2917
+
2918
+
2919
+
2920
+
2921
+
2922
+
2923
+
2924
+
2925
+
2926
+
2927
+
2928
+
2929
+
2930
+
2931
+
2932
+
2933
+
2934
+
2935
+
2936
+
2937
+
2938
+
2939
+
2940
+
2941
+
2942
+
2943
+
2944
+
2945
+ </dl>
2946
+
2947
+
2948
+
2949
+
2950
+
2951
+
2952
+
2953
+
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+
2960
+
2961
+
2962
+
2963
+
2964
+
2965
+
2966
+
2967
+
2968
+
2969
+ </div>
2970
+
2971
+ <div class="member">
2972
+
2973
+
2974
+
2975
+ <h4 class="name" id="flyTo">
2976
+ <a class="href-link" href="#flyTo">#</a>
2977
+
2978
+ <span class="code-name" style="font-size:30px">
2979
+
2980
+ flyTo<span class="signature">(options)</span>
2981
+
2982
+ </span>
2983
+ </h4>
2984
+
2985
+
2986
+
2987
+ <div class="description">
2988
+ <p>视点跳转<a id='flyTo'></a></p>
2989
+ </div>
2990
+
2991
+
2992
+
2993
+
2994
+
2995
+
2996
+
2997
+
2998
+
2999
+
3000
+ <h4>参数:</h4>
3001
+
3002
+ <div class="table-container">
3003
+ <table class="params table">
3004
+ <thead>
3005
+ <tr>
3006
+
3007
+ <th>名称</th>
3008
+
3009
+
3010
+ <th>类型</th>
3011
+
3012
+
3013
+ <th style="min-width: 100px;">默认值</th>
3014
+
3015
+
3016
+ <th class="last">描述</th>
3017
+ </tr>
3018
+ </thead>
3019
+
3020
+ <tbody>
3021
+
3022
+
3023
+
3024
+ <tr class="deep-level-0">
3025
+
3026
+ <td class="name"><code>options</code></td>
3027
+
3028
+
3029
+ <td class="type">
3030
+
3031
+ </td>
3032
+
3033
+
3034
+ <td class="default">
3035
+
3036
+ </td>
3037
+
3038
+
3039
+ <td class="description last"><p>跳转参数</p></td>
3040
+ </tr>
3041
+
3042
+
3043
+
3044
+
3045
+ <tr class="deep-level-1">
3046
+
3047
+ <td class="name"><code>center</code></td>
3048
+
3049
+
3050
+ <td class="type">
3051
+
3052
+
3053
+ <span class="param-type">Array</span>
3054
+
3055
+
3056
+
3057
+ </td>
3058
+
3059
+
3060
+ <td class="default">
3061
+
3062
+ </td>
3063
+
3064
+
3065
+ <td class="description last"><p>跳转中心点</p></td>
3066
+ </tr>
3067
+
3068
+
3069
+
3070
+
3071
+ <tr class="deep-level-1">
3072
+
3073
+ <td class="name"><code>zoom</code></td>
3074
+
3075
+
3076
+ <td class="type">
3077
+
3078
+
3079
+ <span class="param-type">Number</span>
3080
+
3081
+
3082
+
3083
+ </td>
3084
+
3085
+
3086
+ <td class="default">
3087
+
3088
+ 1
3089
+
3090
+ </td>
3091
+
3092
+
3093
+ <td class="description last"><p>地图层级</p></td>
3094
+ </tr>
3095
+
3096
+
3097
+
3098
+
3099
+ <tr class="deep-level-1">
3100
+
3101
+ <td class="name"><code>extent</code></td>
3102
+
3103
+
3104
+ <td class="type">
3105
+
3106
+
3107
+ <span class="param-type">Extent</span>
3108
+
3109
+
3110
+
3111
+ </td>
3112
+
3113
+
3114
+ <td class="default">
3115
+
3116
+ </td>
3117
+
3118
+
3119
+ <td class="description last"><p>按范围跳转</p></td>
3120
+ </tr>
3121
+
3122
+
3123
+
3124
+
3125
+
3126
+
3127
+
3128
+ </tbody>
3129
+ </table>
3130
+ </div>
3131
+
3132
+
3133
+
3134
+
3135
+
3136
+
3137
+ <dl class="details">
3138
+
3139
+
3140
+
3141
+
3142
+
3143
+
3144
+
3145
+
3146
+
3147
+
3148
+
3149
+
3150
+
3151
+
3152
+
3153
+
3154
+
3155
+
3156
+
3157
+
3158
+
3159
+
3160
+
3161
+
3162
+
3163
+
3164
+
3165
+
3166
+
3167
+
3168
+
3169
+ </dl>
3170
+
3171
+
3172
+
3173
+
3174
+
3175
+
3176
+
3177
+
3178
+
3179
+
3180
+
3181
+
3182
+
3183
+
3184
+
3185
+
3186
+
3187
+
3188
+
3189
+
3190
+
3191
+
3192
+
3193
+ <h5>示例</h5>
3194
+
3195
+ <p class="code-caption"><h7>中心点跳转示例</h7></p>
3196
+
3197
+
3198
+ <pre class="prettyprint"><code>// ES5引入方式
3199
+ const { Map } = zondy
3200
+ const { MapView } = zondy.leaflet
3201
+ // ES6引入方式
3202
+ import { Map } from "@mapgis/webclient-common"
3203
+ import { MapView } from "@mapgis/webclient-leaflet-plugin"
3204
+ // 初始化图层管理容器
3205
+ map = new .Map();
3206
+ // 初始化地图视图对象
3207
+ mapView = new MapView({
3208
+ // 视图id
3209
+ viewId: "view-id",
3210
+ // 图层管理容器
3211
+ map: map
3212
+ });
3213
+ // 视点跳转
3214
+ mapView.flyTo({
3215
+ // 跳转中心点
3216
+ center: [{x}, {y}],
3217
+ // 地图层级
3218
+ zoom: {zoom}
3219
+ });</code></pre>
3220
+
3221
+
3222
+ <p class="code-caption"><h7>按范围跳转示例</h7></p>
3223
+
3224
+
3225
+ <pre class="prettyprint"><code>// ES5引入方式
3226
+ const { Map } = zondy
3227
+ const { Extent } = zondy.geometry
3228
+ const { MapView } = zondy.leaflet
3229
+ // ES6引入方式
3230
+ import { Map, Extent } from "@mapgis/webclient-common"
3231
+ import { MapView } from "@mapgis/webclient-leaflet-plugin"
3232
+ // 初始化图层管理容器
3233
+ map = new Map();
3234
+ // 初始化地图视图对象
3235
+ mapView = new MapView({
3236
+ // 视图id
3237
+ viewId: "view-id",
3238
+ // 图层管理容器
3239
+ map: map
3240
+ });
3241
+ mapView.flyTo({
3242
+ // 范围几何
3243
+ extent: new Extent({
3244
+ "xmin":10,
3245
+ "xmax":210,
3246
+ "ymin":0,
3247
+ "ymax":100,
3248
+ })
3249
+ });</code></pre>
3250
+
3251
+
3252
+ <p class="code-caption"><h7>按范围跳转示例-拿到图层信息后跳转</h7></p>
3253
+
3254
+
3255
+ <pre class="prettyprint"><code>// ES5引入方式
3256
+ const { IGSMapImageLayer } = zondy.layer
3257
+ // ES6引入方式
3258
+ import { IGSMapImageLayer } from "@mapgis/webclient-common"
3259
+ const igsMapImageLayer = new IGSMapImageLayer({
3260
+ url: 'http://192.168.82.89:8089/igs/rest/services/Map/Hubei4326/MapServer'
3261
+ });
3262
+ map.add(igsMapImageLayer);
3263
+ // 图层加载完毕
3264
+ igsMapImageLayer.on('layer-view-created', function (result) {
3265
+ console.log("加载完毕:", result.layer)
3266
+ //视点跳转
3267
+ mapView.flyTo({
3268
+ extent: result.layer.extent
3269
+ });
3270
+ })</code></pre>
3271
+
3272
+
3273
+
3274
+ </div>
3275
+
3276
+ <div class="member">
3277
+
3278
+
3279
+
3280
+ <h4 class="name" id="getCenter">
3281
+ <a class="href-link" href="#getCenter">#</a>
3282
+
3283
+ <span class="code-name" style="font-size:30px">
3284
+
3285
+ getCenter<span class="signature">()</span>
3286
+
3287
+ </span>
3288
+ </h4>
3289
+
3290
+
3291
+
3292
+ <div class="description">
3293
+ <p>获取当前视图的中心点<a id='getCenter'></a></p>
3294
+ </div>
3295
+
3296
+
3297
+
3298
+
3299
+
3300
+
3301
+
3302
+
3303
+
3304
+
3305
+
3306
+
3307
+
3308
+
3309
+ <dl class="details">
3310
+
3311
+
3312
+
3313
+
3314
+
3315
+
3316
+
3317
+
3318
+
3319
+
3320
+
3321
+
3322
+
3323
+
3324
+
3325
+
3326
+
3327
+
3328
+
3329
+
3330
+
3331
+
3332
+
3333
+
3334
+
3335
+
3336
+
3337
+
3338
+
3339
+
3340
+
3341
+ </dl>
3342
+
3343
+
3344
+
3345
+
3346
+
3347
+
3348
+
3349
+
3350
+
3351
+
3352
+
3353
+
3354
+
3355
+
3356
+
3357
+
3358
+
3359
+
3360
+ <div class='columns method-parameter'>
3361
+ <div class="column is-2"><label>返回值:</label></div>
3362
+ <div class="column is-10">
3363
+
3364
+
3365
+
3366
+ <div class="columns">
3367
+
3368
+ <div class='param-desc column is-7'><p>中心点对象</p></div>
3369
+
3370
+
3371
+ <div class='column is-5 has-text-left'>
3372
+ <label>类型: </label>
3373
+
3374
+ <span class="param-type">Object</span>
3375
+
3376
+
3377
+ </div>
3378
+
3379
+ </div>
3380
+
3381
+
3382
+ </div>
3383
+ </div>
3384
+
3385
+
3386
+
3387
+
3388
+
3389
+
3390
+ </div>
3391
+
3392
+ <div class="member">
3393
+
3394
+
3395
+
3396
+ <h4 class="name" id="getExtent">
3397
+ <a class="href-link" href="#getExtent">#</a>
3398
+
3399
+ <span class="code-name" style="font-size:30px">
3400
+
3401
+ getExtent<span class="signature">()</span>
3402
+
3403
+ </span>
3404
+ </h4>
3405
+
3406
+
3407
+
3408
+ <div class="description">
3409
+ <p>获取当前视图的地理范围<a id='getExtent'></a></p>
3410
+ </div>
3411
+
3412
+
3413
+
3414
+
3415
+
3416
+
3417
+
3418
+
3419
+
3420
+
3421
+
3422
+
3423
+
3424
+
3425
+ <dl class="details">
3426
+
3427
+
3428
+
3429
+
3430
+
3431
+
3432
+
3433
+
3434
+
3435
+
3436
+
3437
+
3438
+
3439
+
3440
+
3441
+
3442
+
3443
+
3444
+
3445
+
3446
+
3447
+
3448
+
3449
+
3450
+
3451
+
3452
+
3453
+
3454
+
3455
+
3456
+
3457
+ </dl>
3458
+
3459
+
3460
+
3461
+
3462
+
3463
+
3464
+
3465
+
3466
+
3467
+
3468
+
3469
+
3470
+
3471
+
3472
+
3473
+
3474
+
3475
+
3476
+ <div class='columns method-parameter'>
3477
+ <div class="column is-2"><label>返回值:</label></div>
3478
+ <div class="column is-10">
3479
+
3480
+
3481
+
3482
+ <div class="columns">
3483
+
3484
+ <div class='param-desc column is-7'><p>获取当前视图的地理范围</p></div>
3485
+
3486
+
3487
+ <div class='column is-5 has-text-left'>
3488
+ <label>类型: </label>
3489
+
3490
+ <span class="param-type">Extent</span>
3491
+
3492
+
3493
+ </div>
3494
+
3495
+ </div>
3496
+
3497
+
3498
+ </div>
3499
+ </div>
3500
+
3501
+
3502
+
3503
+
3504
+
3505
+
3506
+ </div>
3507
+
3508
+ <div class="member">
3509
+
3510
+
3511
+
3512
+ <h4 class="name" id="getMaxZoom">
3513
+ <a class="href-link" href="#getMaxZoom">#</a>
3514
+
3515
+ <span class="code-name" style="font-size:30px">
3516
+
3517
+ getMaxZoom<span class="signature">()</span>
3518
+
3519
+ </span>
3520
+ </h4>
3521
+
3522
+
3523
+
3524
+ <div class="description">
3525
+ <p>获取最大缩放级数<a id='getMaxZoom'></a></p>
3526
+ </div>
3527
+
3528
+
3529
+
3530
+
3531
+
3532
+
3533
+
3534
+
3535
+
3536
+
3537
+
3538
+
3539
+
3540
+
3541
+ <dl class="details">
3542
+
3543
+
3544
+
3545
+
3546
+
3547
+
3548
+
3549
+
3550
+
3551
+
3552
+
3553
+
3554
+
3555
+
3556
+
3557
+
3558
+
3559
+
3560
+
3561
+
3562
+
3563
+
3564
+
3565
+
3566
+
3567
+
3568
+
3569
+
3570
+
3571
+
3572
+
3573
+ </dl>
3574
+
3575
+
3576
+
3577
+
3578
+
3579
+
3580
+
3581
+
3582
+
3583
+
3584
+
3585
+
3586
+
3587
+
3588
+
3589
+
3590
+
3591
+
3592
+ <div class='columns method-parameter'>
3593
+ <div class="column is-2"><label>返回值:</label></div>
3594
+ <div class="column is-10">
3595
+
3596
+
3597
+
3598
+ <div class="columns">
3599
+
3600
+ <div class='param-desc column is-7'><p>最大缩放级数</p></div>
3601
+
3602
+
3603
+ <div class='column is-5 has-text-left'>
3604
+ <label>类型: </label>
3605
+
3606
+ <span class="param-type">Number</span>
3607
+
3608
+
3609
+ </div>
3610
+
3611
+ </div>
3612
+
3613
+
3614
+ </div>
3615
+ </div>
3616
+
3617
+
3618
+
3619
+
3620
+
3621
+
3622
+ </div>
3623
+
3624
+ <div class="member">
3625
+
3626
+
3627
+
3628
+ <h4 class="name" id="getMinZoom">
3629
+ <a class="href-link" href="#getMinZoom">#</a>
3630
+
3631
+ <span class="code-name" style="font-size:30px">
3632
+
3633
+ getMinZoom<span class="signature">()</span>
3634
+
3635
+ </span>
3636
+ </h4>
3637
+
3638
+
3639
+
3640
+ <div class="description">
3641
+ <p>获取最小缩放级数<a id='getMinZoom'></a></p>
3642
+ </div>
3643
+
3644
+
3645
+
3646
+
3647
+
3648
+
3649
+
3650
+
3651
+
3652
+
3653
+
3654
+
3655
+
3656
+
3657
+ <dl class="details">
3658
+
3659
+
3660
+
3661
+
3662
+
3663
+
3664
+
3665
+
3666
+
3667
+
3668
+
3669
+
3670
+
3671
+
3672
+
3673
+
3674
+
3675
+
3676
+
3677
+
3678
+
3679
+
3680
+
3681
+
3682
+
3683
+
3684
+
3685
+
3686
+
3687
+
3688
+
3689
+ </dl>
3690
+
3691
+
3692
+
3693
+
3694
+
3695
+
3696
+
3697
+
3698
+
3699
+
3700
+
3701
+
3702
+
3703
+
3704
+
3705
+
3706
+
3707
+
3708
+ <div class='columns method-parameter'>
3709
+ <div class="column is-2"><label>返回值:</label></div>
3710
+ <div class="column is-10">
3711
+
3712
+
3713
+
3714
+ <div class="columns">
3715
+
3716
+ <div class='param-desc column is-7'><p>最小缩放级数</p></div>
3717
+
3718
+
3719
+ <div class='column is-5 has-text-left'>
3720
+ <label>类型: </label>
3721
+
3722
+ <span class="param-type">Number</span>
3723
+
3724
+
3725
+ </div>
3726
+
3727
+ </div>
3728
+
3729
+
3730
+ </div>
3731
+ </div>
3732
+
3733
+
3734
+
3735
+
3736
+
3737
+
3738
+ </div>
3739
+
3740
+ <div class="member">
3741
+
3742
+
3743
+
3744
+ <h4 class="name" id="getPixelCenter">
3745
+ <a class="href-link" href="#getPixelCenter">#</a>
3746
+
3747
+ <span class="code-name" style="font-size:30px">
3748
+
3749
+ getPixelCenter<span class="signature">()</span>
3750
+
3751
+ </span>
3752
+ </h4>
3753
+
3754
+
3755
+
3756
+ <div class="description">
3757
+ <p>获取当前视图的像素中心点<a id='getPixelCenter'></a></p>
3758
+ </div>
3759
+
3760
+
3761
+
3762
+
3763
+
3764
+
3765
+
3766
+
3767
+
3768
+
3769
+
3770
+
3771
+
3772
+
3773
+ <dl class="details">
3774
+
3775
+
3776
+
3777
+
3778
+
3779
+
3780
+
3781
+
3782
+
3783
+
3784
+
3785
+
3786
+
3787
+
3788
+
3789
+
3790
+
3791
+
3792
+
3793
+
3794
+
3795
+
3796
+
3797
+
3798
+
3799
+
3800
+
3801
+
3802
+
3803
+
3804
+
3805
+ </dl>
3806
+
3807
+
3808
+
3809
+
3810
+
3811
+
3812
+
3813
+
3814
+
3815
+
3816
+
3817
+
3818
+
3819
+
3820
+
3821
+
3822
+
3823
+
3824
+ <div class='columns method-parameter'>
3825
+ <div class="column is-2"><label>返回值:</label></div>
3826
+ <div class="column is-10">
3827
+
3828
+
3829
+
3830
+ <div class="columns">
3831
+
3832
+ <div class='param-desc column is-7'><p>像素中心点对象</p></div>
3833
+
3834
+
3835
+ <div class='column is-5 has-text-left'>
3836
+ <label>类型: </label>
3837
+
3838
+ <span class="param-type">Object</span>
3839
+
3840
+
3841
+ </div>
3842
+
3843
+ </div>
3844
+
3845
+
3846
+ </div>
3847
+ </div>
3848
+
3849
+
3850
+
3851
+
3852
+
3853
+
3854
+ </div>
3855
+
3856
+ <div class="member">
3857
+
3858
+
3859
+
3860
+ <h4 class="name" id="getPixelExtent">
3861
+ <a class="href-link" href="#getPixelExtent">#</a>
3862
+
3863
+ <span class="code-name" style="font-size:30px">
3864
+
3865
+ getPixelExtent<span class="signature">()</span>
3866
+
3867
+ </span>
3868
+ </h4>
3869
+
3870
+
3871
+
3872
+ <div class="description">
3873
+ <p>获取当前视图的宽高范围,单位像素<a id='getPixelExtent'></a></p>
3874
+ </div>
3875
+
3876
+
3877
+
3878
+
3879
+
3880
+
3881
+
3882
+
3883
+
3884
+
3885
+
3886
+
3887
+
3888
+
3889
+ <dl class="details">
3890
+
3891
+
3892
+
3893
+
3894
+
3895
+
3896
+
3897
+
3898
+
3899
+
3900
+
3901
+
3902
+
3903
+
3904
+
3905
+
3906
+
3907
+
3908
+
3909
+
3910
+
3911
+
3912
+
3913
+
3914
+
3915
+
3916
+
3917
+
3918
+
3919
+
3920
+
3921
+ </dl>
3922
+
3923
+
3924
+
3925
+
3926
+
3927
+
3928
+
3929
+
3930
+
3931
+
3932
+
3933
+
3934
+
3935
+
3936
+
3937
+
3938
+
3939
+
3940
+ <div class='columns method-parameter'>
3941
+ <div class="column is-2"><label>返回值:</label></div>
3942
+ <div class="column is-10">
3943
+
3944
+
3945
+
3946
+ <div class="columns">
3947
+
3948
+ <div class='param-desc column is-7'><p>视图宽高对象</p></div>
3949
+
3950
+
3951
+ <div class='column is-5 has-text-left'>
3952
+ <label>类型: </label>
3953
+
3954
+ <span class="param-type">Object</span>
3955
+
3956
+
3957
+ </div>
3958
+
3959
+ </div>
3960
+
3961
+
3962
+ </div>
3963
+ </div>
3964
+
3965
+
3966
+
3967
+
3968
+
3969
+
3970
+ </div>
3971
+
3972
+ <div class="member">
3973
+
3974
+
3975
+
3976
+ <h4 class="name" id="getPixelWorldExtent">
3977
+ <a class="href-link" href="#getPixelWorldExtent">#</a>
3978
+
3979
+ <span class="code-name" style="font-size:30px">
3980
+
3981
+ getPixelWorldExtent<span class="signature">()</span>
3982
+
3983
+ </span>
3984
+ </h4>
3985
+
3986
+
3987
+
3988
+ <div class="description">
3989
+ <p>获取当前视图的像素范围<a id='getPixelWorldExtent'></a></p>
3990
+ </div>
3991
+
3992
+
3993
+
3994
+
3995
+
3996
+
3997
+
3998
+
3999
+
4000
+
4001
+
4002
+
4003
+
4004
+
4005
+ <dl class="details">
4006
+
4007
+
4008
+
4009
+
4010
+
4011
+
4012
+
4013
+
4014
+
4015
+
4016
+
4017
+
4018
+
4019
+
4020
+
4021
+
4022
+
4023
+
4024
+
4025
+
4026
+
4027
+
4028
+
4029
+
4030
+
4031
+
4032
+
4033
+
4034
+
4035
+
4036
+
4037
+ </dl>
4038
+
4039
+
4040
+
4041
+
4042
+
4043
+
4044
+
4045
+
4046
+
4047
+
4048
+
4049
+
4050
+
4051
+
4052
+
4053
+
4054
+
4055
+
4056
+ <div class='columns method-parameter'>
4057
+ <div class="column is-2"><label>返回值:</label></div>
4058
+ <div class="column is-10">
4059
+
4060
+
4061
+
4062
+ <div class="columns">
4063
+
4064
+ <div class='param-desc column is-7'><p>当前视图的像素范围</p></div>
4065
+
4066
+
4067
+ <div class='column is-5 has-text-left'>
4068
+ <label>类型: </label>
4069
+
4070
+ <span class="param-type">Object</span>
4071
+
4072
+
4073
+ </div>
4074
+
4075
+ </div>
4076
+
4077
+
4078
+ </div>
4079
+ </div>
4080
+
4081
+
4082
+
4083
+
4084
+
4085
+
4086
+ </div>
4087
+
4088
+ <div class="member">
4089
+
4090
+
4091
+
4092
+ <h4 class="name" id="getScale">
4093
+ <a class="href-link" href="#getScale">#</a>
4094
+
4095
+ <span class="code-name" style="font-size:30px">
4096
+
4097
+ getScale<span class="signature">()</span>
4098
+
4099
+ </span>
4100
+ </h4>
4101
+
4102
+
4103
+
4104
+ <div class="description">
4105
+ <p><a id='getScale'></a>
4106
+ 获取当前比例尺</p>
4107
+ </div>
4108
+
4109
+
4110
+
4111
+
4112
+
4113
+
4114
+
4115
+
4116
+
4117
+
4118
+
4119
+
4120
+
4121
+
4122
+ <dl class="details">
4123
+
4124
+
4125
+
4126
+
4127
+
4128
+
4129
+
4130
+
4131
+
4132
+
4133
+
4134
+
4135
+
4136
+
4137
+
4138
+
4139
+
4140
+
4141
+
4142
+
4143
+
4144
+
4145
+
4146
+
4147
+
4148
+
4149
+
4150
+
4151
+
4152
+
4153
+
4154
+ </dl>
4155
+
4156
+
4157
+
4158
+
4159
+
4160
+
4161
+
4162
+
4163
+
4164
+
4165
+
4166
+
4167
+
4168
+
4169
+
4170
+
4171
+
4172
+
4173
+ <div class='columns method-parameter'>
4174
+ <div class="column is-2"><label>返回值:</label></div>
4175
+ <div class="column is-10">
4176
+
4177
+
4178
+
4179
+ <div class="columns">
4180
+
4181
+ <div class='param-desc column is-7'><p>比例尺 实际10000米:地图1米</p></div>
4182
+
4183
+
4184
+ <div class='column is-5 has-text-left'>
4185
+ <label>类型: </label>
4186
+
4187
+ <span class="param-type">Number</span>
4188
+
4189
+
4190
+ </div>
4191
+
4192
+ </div>
4193
+
4194
+
4195
+ </div>
4196
+ </div>
4197
+
4198
+
4199
+
4200
+
4201
+
4202
+
4203
+ </div>
4204
+
4205
+ <div class="member">
4206
+
4207
+
4208
+
4209
+ <h4 class="name" id="getSize">
4210
+ <a class="href-link" href="#getSize">#</a>
4211
+
4212
+ <span class="code-name" style="font-size:30px">
4213
+
4214
+ getSize<span class="signature">()</span>
4215
+
4216
+ </span>
4217
+ </h4>
4218
+
4219
+
4220
+
4221
+ <div class="description">
4222
+ <p>获取当前视图容器的宽高,单位像素<a id='getSize'></a></p>
4223
+ </div>
4224
+
4225
+
4226
+
4227
+
4228
+
4229
+
4230
+
4231
+
4232
+
4233
+
4234
+
4235
+
4236
+
4237
+
4238
+ <dl class="details">
4239
+
4240
+
4241
+
4242
+
4243
+
4244
+
4245
+
4246
+
4247
+
4248
+
4249
+
4250
+
4251
+
4252
+
4253
+
4254
+
4255
+
4256
+
4257
+
4258
+
4259
+
4260
+
4261
+
4262
+
4263
+
4264
+
4265
+
4266
+
4267
+
4268
+
4269
+
4270
+ </dl>
4271
+
4272
+
4273
+
4274
+
4275
+
4276
+
4277
+
4278
+
4279
+
4280
+
4281
+
4282
+
4283
+
4284
+
4285
+
4286
+
4287
+
4288
+
4289
+ <div class='columns method-parameter'>
4290
+ <div class="column is-2"><label>返回值:</label></div>
4291
+ <div class="column is-10">
4292
+
4293
+
4294
+
4295
+ <div class="columns">
4296
+
4297
+ <div class='param-desc column is-7'><p>当前视图容器的宽高对象</p></div>
4298
+
4299
+
4300
+ <div class='column is-5 has-text-left'>
4301
+ <label>类型: </label>
4302
+
4303
+ <span class="param-type">Object</span>
4304
+
4305
+
4306
+ </div>
4307
+
4308
+ </div>
4309
+
4310
+
4311
+ </div>
4312
+ </div>
4313
+
4314
+
4315
+
4316
+
4317
+
4318
+
4319
+ </div>
4320
+
4321
+ <div class="member">
4322
+
4323
+
4324
+
4325
+ <h4 class="name" id="getZoom">
4326
+ <a class="href-link" href="#getZoom">#</a>
4327
+
4328
+ <span class="code-name" style="font-size:30px">
4329
+
4330
+ getZoom<span class="signature">()</span>
4331
+
4332
+ </span>
4333
+ </h4>
4334
+
4335
+
4336
+
4337
+ <div class="description">
4338
+ <p>获取当前缩放级数<a id='getZoom'></a></p>
4339
+ </div>
4340
+
4341
+
4342
+
4343
+
4344
+
4345
+
4346
+
4347
+
4348
+
4349
+
4350
+
4351
+
4352
+
4353
+
4354
+ <dl class="details">
4355
+
4356
+
4357
+
4358
+
4359
+
4360
+
4361
+
4362
+
4363
+
4364
+
4365
+
4366
+
4367
+
4368
+
4369
+
4370
+
4371
+
4372
+
4373
+
4374
+
4375
+
4376
+
4377
+
4378
+
4379
+
4380
+
4381
+
4382
+
4383
+
4384
+
4385
+
4386
+ </dl>
4387
+
4388
+
4389
+
4390
+
4391
+
4392
+
4393
+
4394
+
4395
+
4396
+
4397
+
4398
+
4399
+
4400
+
4401
+
4402
+
4403
+
4404
+
4405
+ <div class='columns method-parameter'>
4406
+ <div class="column is-2"><label>返回值:</label></div>
4407
+ <div class="column is-10">
4408
+
4409
+
4410
+
4411
+ <div class="columns">
4412
+
4413
+ <div class='param-desc column is-7'><p>当前缩放级数</p></div>
4414
+
4415
+
4416
+ <div class='column is-5 has-text-left'>
4417
+ <label>类型: </label>
4418
+
4419
+ <span class="param-type">Number</span>
4420
+
4421
+
4422
+ </div>
4423
+
4424
+ </div>
4425
+
4426
+
4427
+ </div>
4428
+ </div>
4429
+
4430
+
4431
+
4432
+
4433
+
4434
+
4435
+ </div>
4436
+
4437
+ <div class="member">
4438
+
4439
+
4440
+
4441
+ <h4 class="name" id="getZoomByExtent">
4442
+ <a class="href-link" href="#getZoomByExtent">#</a>
4443
+
4444
+ <span class="code-name" style="font-size:30px">
4445
+
4446
+ getZoomByExtent<span class="signature">(value)</span>
4447
+
4448
+ </span>
4449
+ </h4>
4450
+
4451
+
4452
+
4453
+ <div class="description">
4454
+ <p><a id='getZoomByExtent'></a>
4455
+ 根据视野范围获取对应的层级</p>
4456
+ </div>
4457
+
4458
+
4459
+
4460
+
4461
+
4462
+
4463
+
4464
+
4465
+
4466
+
4467
+ <h4>参数:</h4>
4468
+
4469
+ <div class="table-container">
4470
+ <table class="params table">
4471
+ <thead>
4472
+ <tr>
4473
+
4474
+ <th>名称</th>
4475
+
4476
+
4477
+ <th>类型</th>
4478
+
4479
+
4480
+
4481
+ <th class="last">描述</th>
4482
+ </tr>
4483
+ </thead>
4484
+
4485
+ <tbody>
4486
+
4487
+
4488
+
4489
+ <tr class="deep-level-0">
4490
+
4491
+ <td class="name"><code>value</code></td>
4492
+
4493
+
4494
+ <td class="type">
4495
+
4496
+
4497
+ <span class="param-type">Extent</span>
4498
+
4499
+
4500
+
4501
+ </td>
4502
+
4503
+
4504
+
4505
+ <td class="description last"><p>范围对象</p></td>
4506
+ </tr>
4507
+
4508
+
4509
+
4510
+
4511
+ </tbody>
4512
+ </table>
4513
+ </div>
4514
+
4515
+
4516
+
4517
+
4518
+
4519
+
4520
+ <dl class="details">
4521
+
4522
+
4523
+
4524
+
4525
+
4526
+
4527
+
4528
+
4529
+
4530
+
4531
+
4532
+
4533
+
4534
+
4535
+
4536
+
4537
+
4538
+
4539
+
4540
+
4541
+
4542
+
4543
+
4544
+
4545
+
4546
+
4547
+
4548
+
4549
+
4550
+
4551
+
4552
+ </dl>
4553
+
4554
+
4555
+
4556
+
4557
+
4558
+
4559
+
4560
+
4561
+
4562
+
4563
+
4564
+
4565
+
4566
+
4567
+
4568
+
4569
+
4570
+
4571
+ <div class='columns method-parameter'>
4572
+ <div class="column is-2"><label>返回值:</label></div>
4573
+ <div class="column is-10">
4574
+
4575
+
4576
+
4577
+ <div class="columns">
4578
+
4579
+ <div class='param-desc column is-7'><p>视野范围获取对应的层级</p></div>
4580
+
4581
+
4582
+ <div class='column is-5 has-text-left'>
4583
+ <label>类型: </label>
4584
+
4585
+ <span class="param-type">Number</span>
4586
+
4587
+
4588
+ </div>
4589
+
4590
+ </div>
4591
+
4592
+
4593
+ </div>
4594
+ </div>
4595
+
4596
+
4597
+
4598
+
4599
+
4600
+
4601
+ </div>
4602
+
4603
+ <div class="member">
4604
+
4605
+
4606
+
4607
+ <h4 class="name" id="goTo">
4608
+ <a class="href-link" href="#goTo">#</a>
4609
+
4610
+ <span class="code-name" style="font-size:30px">
4611
+
4612
+ goTo<span class="signature">(goToTarget, options)</span>
4613
+
4614
+ </span>
4615
+ </h4>
4616
+
4617
+
4618
+
4619
+ <div class="description">
4620
+ <p>视点跳转为给定的目标<a id='goTo'></a></p>
4621
+ </div>
4622
+
4623
+
4624
+
4625
+
4626
+
4627
+
4628
+
4629
+
4630
+
4631
+
4632
+ <h4>参数:</h4>
4633
+
4634
+ <div class="table-container">
4635
+ <table class="params table">
4636
+ <thead>
4637
+ <tr>
4638
+
4639
+ <th>名称</th>
4640
+
4641
+
4642
+ <th>类型</th>
4643
+
4644
+
4645
+ <th style="min-width: 100px;">默认值</th>
4646
+
4647
+
4648
+ <th class="last">描述</th>
4649
+ </tr>
4650
+ </thead>
4651
+
4652
+ <tbody>
4653
+
4654
+
4655
+
4656
+ <tr class="deep-level-0">
4657
+
4658
+ <td class="name"><code>goToTarget</code></td>
4659
+
4660
+
4661
+ <td class="type">
4662
+
4663
+ </td>
4664
+
4665
+
4666
+ <td class="default">
4667
+
4668
+ </td>
4669
+
4670
+
4671
+ <td class="description last"><p>跳转参数</p></td>
4672
+ </tr>
4673
+
4674
+
4675
+
4676
+
4677
+ <tr class="deep-level-1">
4678
+
4679
+ <td class="name"><code>center</code></td>
4680
+
4681
+
4682
+ <td class="type">
4683
+
4684
+
4685
+ <span class="param-type">Point</span>
4686
+ |
4687
+
4688
+ <span class="param-type">Array</span>
4689
+
4690
+
4691
+
4692
+ </td>
4693
+
4694
+
4695
+ <td class="default">
4696
+
4697
+ </td>
4698
+
4699
+
4700
+ <td class="description last"><p>视图跳转中心点</p></td>
4701
+ </tr>
4702
+
4703
+
4704
+
4705
+
4706
+ <tr class="deep-level-1">
4707
+
4708
+ <td class="name"><code>zoom</code></td>
4709
+
4710
+
4711
+ <td class="type">
4712
+
4713
+
4714
+ <span class="param-type">Number</span>
4715
+
4716
+
4717
+
4718
+ </td>
4719
+
4720
+
4721
+ <td class="default">
4722
+
4723
+ </td>
4724
+
4725
+
4726
+ <td class="description last"><p>视图跳转层级</p></td>
4727
+ </tr>
4728
+
4729
+
4730
+
4731
+
4732
+ <tr class="deep-level-1">
4733
+
4734
+ <td class="name"><code>scale</code></td>
4735
+
4736
+
4737
+ <td class="type">
4738
+
4739
+
4740
+ <span class="param-type">Number</span>
4741
+
4742
+
4743
+
4744
+ </td>
4745
+
4746
+
4747
+ <td class="default">
4748
+
4749
+ </td>
4750
+
4751
+
4752
+ <td class="description last"><p>视图跳转比例尺</p></td>
4753
+ </tr>
4754
+
4755
+
4756
+
4757
+
4758
+ <tr class="deep-level-1">
4759
+
4760
+ <td class="name"><code>layer</code></td>
4761
+
4762
+
4763
+ <td class="type">
4764
+
4765
+
4766
+ <span class="param-type">Layer</span>
4767
+ |
4768
+
4769
+ <span class="param-type">SubLayer</span>
4770
+ |
4771
+
4772
+ <span class="param-type">undefined</span>
4773
+
4774
+
4775
+
4776
+ </td>
4777
+
4778
+
4779
+ <td class="default">
4780
+
4781
+ </td>
4782
+
4783
+
4784
+ <td class="description last"><p>跳转的图层</p></td>
4785
+ </tr>
4786
+
4787
+
4788
+
4789
+
4790
+ <tr class="deep-level-1">
4791
+
4792
+ <td class="name"><code>target</code></td>
4793
+
4794
+
4795
+ <td class="type">
4796
+
4797
+
4798
+ <span class="param-type">Geometry</span>
4799
+ |
4800
+
4801
+ <span class="param-type">Array.&lt;Geometry></span>
4802
+ |
4803
+
4804
+ <span class="param-type">Collection.&lt;Geometry></span>
4805
+
4806
+
4807
+
4808
+ </td>
4809
+
4810
+
4811
+ <td class="default">
4812
+
4813
+ </td>
4814
+
4815
+
4816
+ <td class="description last"><p>按范围跳转</p></td>
4817
+ </tr>
4818
+
4819
+
4820
+
4821
+
4822
+
4823
+
4824
+
4825
+
4826
+
4827
+ <tr class="deep-level-0">
4828
+
4829
+ <td class="name"><code>options</code></td>
4830
+
4831
+
4832
+ <td class="type">
4833
+
4834
+ </td>
4835
+
4836
+
4837
+ <td class="default">
4838
+
4839
+ </td>
4840
+
4841
+
4842
+ <td class="description last"><p>动画参数</p></td>
4843
+ </tr>
4844
+
4845
+
4846
+
4847
+
4848
+ <tr class="deep-level-1">
4849
+
4850
+ <td class="name"><code>animate</code></td>
4851
+
4852
+
4853
+ <td class="type">
4854
+
4855
+
4856
+ <span class="param-type">Boolean</span>
4857
+
4858
+
4859
+
4860
+ </td>
4861
+
4862
+
4863
+ <td class="default">
4864
+
4865
+ true
4866
+
4867
+ </td>
4868
+
4869
+
4870
+ <td class="description last"><p>新视图的过渡是否开启动画,默认开启动画</p></td>
4871
+ </tr>
4872
+
4873
+
4874
+
4875
+
4876
+ <tr class="deep-level-1">
4877
+
4878
+ <td class="name"><code>duration</code></td>
4879
+
4880
+
4881
+ <td class="type">
4882
+
4883
+
4884
+ <span class="param-type">Number</span>
4885
+
4886
+
4887
+
4888
+ </td>
4889
+
4890
+
4891
+ <td class="default">
4892
+
4893
+ 200
4894
+
4895
+ </td>
4896
+
4897
+
4898
+ <td class="description last"><p>动画的持续时间,以毫秒为单位,默认200毫秒</p></td>
4899
+ </tr>
4900
+
4901
+
4902
+
4903
+
4904
+
4905
+
4906
+
4907
+ </tbody>
4908
+ </table>
4909
+ </div>
4910
+
4911
+
4912
+
4913
+
4914
+
4915
+
4916
+ <dl class="details">
4917
+
4918
+
4919
+
4920
+
4921
+
4922
+
4923
+
4924
+
4925
+
4926
+
4927
+
4928
+
4929
+
4930
+
4931
+
4932
+
4933
+
4934
+
4935
+
4936
+
4937
+
4938
+
4939
+
4940
+
4941
+
4942
+
4943
+
4944
+
4945
+
4946
+
4947
+
4948
+ </dl>
4949
+
4950
+
4951
+
4952
+
4953
+
4954
+
4955
+
4956
+
4957
+
4958
+
4959
+
4960
+
4961
+
4962
+
4963
+
4964
+
4965
+
4966
+
4967
+ <div class='columns method-parameter'>
4968
+ <div class="column is-2"><label>返回值:</label></div>
4969
+ <div class="column is-10">
4970
+
4971
+
4972
+
4973
+ <div class="columns">
4974
+
4975
+ <div class='param-desc column is-7'><p>视图跳转是否成功</p></div>
4976
+
4977
+
4978
+ <div class='column is-5 has-text-left'>
4979
+ <label>类型: </label>
4980
+
4981
+ <span class="param-type">Promise.&lt;Boolean></span>
4982
+
4983
+
4984
+ </div>
4985
+
4986
+ </div>
4987
+
4988
+
4989
+ </div>
4990
+ </div>
4991
+
4992
+
4993
+
4994
+
4995
+
4996
+
4997
+ <h5>示例</h5>
4998
+
4999
+ <p class="code-caption"><h7>中心点跳转示例</h7></p>
5000
+
5001
+
5002
+ <pre class="prettyprint"><code>// ES5引入方式
5003
+ const { Map } = zondy
5004
+ const { MapView } = zondy.leaflet
5005
+ // ES6引入方式
5006
+ import { Map } from "@mapgis/webclient-common"
5007
+ import { MapView } from "@mapgis/webclient-leaflet-plugin"
5008
+ // 初始化图层管理容器
5009
+ map = new .Map();
5010
+ // 初始化地图视图对象
5011
+ mapView = new MapView({
5012
+ // 视图id
5013
+ viewId: "view-id",
5014
+ // 图层管理容器
5015
+ map: map
5016
+ });
5017
+ // 视点跳转
5018
+ mapView.goTo({
5019
+ // 跳转中心点
5020
+ center: [115.47643872463577, 30.980700423496124],
5021
+ // 地图层级
5022
+ zoom: 8
5023
+ });</code></pre>
5024
+
5025
+
5026
+ <p class="code-caption"><h7>按范围跳转示例</h7></p>
5027
+
5028
+
5029
+ <pre class="prettyprint"><code>// ES5引入方式
5030
+ const { Map } = zondy
5031
+ const { Extent, Circle } = zondy.geometry
5032
+ const { MapView } = zondy.leaflet
5033
+ // ES6引入方式
5034
+ import { Map, Extent, Circle } from "@mapgis/webclient-common"
5035
+ import { MapView } from "@mapgis/webclient-leaflet-plugin"
5036
+ // 初始化图层管理容器
5037
+ map = new Map();
5038
+ // 初始化地图视图对象
5039
+ mapView = new MapView({
5040
+ // 视图id
5041
+ viewId: "view-id",
5042
+ // 图层管理容器
5043
+ map: map
5044
+ });
5045
+ const extent1 = new Extent({
5046
+ xmin: 111.88463529230717,
5047
+ ymin: 28.646934514163803,
5048
+ xmax: 116.89989408129225,
5049
+ ymax: 33.07991791253288,
5050
+ })
5051
+ const geometry2 = new Circle({
5052
+ center: [111, 29],
5053
+ radius: 100,
5054
+ radiusUnit: "kilometers",
5055
+ })
5056
+ mapView
5057
+ .goTo({
5058
+ target: [extent1, geometry2],
5059
+ })
5060
+ .then(() => {
5061
+ console.log("gotoExtent callback")
5062
+ })</code></pre>
5063
+
5064
+
5065
+
5066
+ </div>
5067
+
5068
+ <div class="member">
5069
+
5070
+
5071
+
5072
+ <h4 class="name" id="hitTest">
5073
+ <a class="href-link" href="#hitTest">#</a>
5074
+
5075
+ <span class="code-name" style="font-size:30px">
5076
+
5077
+ hitTest<span class="signature">(screenPoint)</span>
5078
+
5079
+ </span>
5080
+ </h4>
5081
+
5082
+
5083
+
5084
+ <div class="description">
5085
+ <p>穿透检测,图元拾取。目前支持graphic类型拾取结果,支持图层类型GraphicLayer,FeatureLayer。</p>
5086
+ </div>
5087
+
5088
+
5089
+
5090
+
5091
+
5092
+
5093
+
5094
+
5095
+
5096
+
5097
+ <h4>参数:</h4>
5098
+
5099
+ <div class="table-container">
5100
+ <table class="params table">
5101
+ <thead>
5102
+ <tr>
5103
+
5104
+ <th>名称</th>
5105
+
5106
+
5107
+ <th>类型</th>
5108
+
5109
+
5110
+
5111
+ <th class="last">描述</th>
5112
+ </tr>
5113
+ </thead>
5114
+
5115
+ <tbody>
5116
+
5117
+
5118
+
5119
+ <tr class="deep-level-0">
5120
+
5121
+ <td class="name"><code>screenPoint</code></td>
5122
+
5123
+
5124
+ <td class="type">
5125
+
5126
+
5127
+ <span class="param-type">Object</span>
5128
+
5129
+
5130
+
5131
+ </td>
5132
+
5133
+
5134
+
5135
+ <td class="description last"><p>屏幕像素坐标点,例如{ x: 900, y: 500 }</p></td>
5136
+ </tr>
5137
+
5138
+
5139
+
5140
+
5141
+ </tbody>
5142
+ </table>
5143
+ </div>
5144
+
5145
+
5146
+
5147
+
5148
+
5149
+
5150
+ <dl class="details">
5151
+
5152
+
5153
+
5154
+
5155
+
5156
+
5157
+
5158
+
5159
+
5160
+
5161
+
5162
+
5163
+
5164
+
5165
+
5166
+
5167
+
5168
+
5169
+
5170
+
5171
+
5172
+
5173
+
5174
+
5175
+
5176
+
5177
+
5178
+
5179
+
5180
+
5181
+
5182
+ </dl>
5183
+
5184
+
5185
+
5186
+
5187
+
5188
+
5189
+
5190
+
5191
+
5192
+
5193
+
5194
+
5195
+
5196
+
5197
+
5198
+
5199
+
5200
+
5201
+ <div class='columns method-parameter'>
5202
+ <div class="column is-2"><label>返回值:</label></div>
5203
+ <div class="column is-10">
5204
+
5205
+
5206
+
5207
+ <div class="columns">
5208
+
5209
+ <div class='param-desc column is-7'><p>图元检测结果</p></div>
5210
+
5211
+
5212
+ <div class='column is-5 has-text-left'>
5213
+ <label>类型: </label>
5214
+
5215
+ <span class="param-type">Array</span>
5216
+
5217
+
5218
+ </div>
5219
+
5220
+ </div>
5221
+
5222
+
5223
+ </div>
5224
+ </div>
5225
+
5226
+
5227
+
5228
+
5229
+
5230
+
5231
+ <h5>示例</h5>
5232
+
5233
+ <p class="code-caption"><h7>根据基础图层对象或者图层id查询并返回实际图层</h7></p>
5234
+
5235
+
5236
+ <pre class="prettyprint"><code>// ES5引入方式
5237
+ const { Map, Feature } = zondy
5238
+ const { Point, Polygon, MultiPolygon ,Extent, Circle } = zondy.geometry
5239
+ const { GraphicsLayer, IGSFeatureLayer, IGSTileLayer } = zondy.layer
5240
+ const { MapView } = zondy.leaflet
5241
+ // ES6引入方式
5242
+ import { MapView } from "@mapgis/webclient-leaflet-plugin";
5243
+ import { Map, Point, Polygon, MultiPolygon ,Extent, GraphicsLayer, Feature, Circle, IGSFeatureLayer, IGSTileLayer } from "@mapgis/webclient-common";
5244
+ // 初始化图层管理容器
5245
+ const map = new Map();
5246
+ // 初始化地图视图对象
5247
+ this.mapView = new MapView({
5248
+ // 视图id
5249
+ viewId: "mapgis-2d-viewer",
5250
+ // 图层管理容器
5251
+ map: map,
5252
+ })
5253
+ // 创建一个要素
5254
+ const feature = [
5255
+ new Feature({
5256
+ id: '11113',
5257
+ geometry: new Circle({
5258
+ center: [113, 35],
5259
+ radius: 10000,
5260
+ radiusUnit: 'kilometers',
5261
+ })
5262
+ }),
5263
+ new Feature({
5264
+ id: '11114',
5265
+ geometry: new Polygon({
5266
+ coordinates: [
5267
+ // 外圈
5268
+ [
5269
+ [113.0, 29.0],
5270
+ [116.0, 29.0],
5271
+ [116.0, 35.0],
5272
+ [113.0, 35.0],
5273
+ [113.0, 29.0]
5274
+ ]
5275
+ ]
5276
+ })
5277
+ }),
5278
+ new Feature({
5279
+ id: '11115',
5280
+ geometry:new MultiPolygon({
5281
+ coordinates: [
5282
+ [
5283
+ // 外圈
5284
+ [
5285
+ [112.0, 28.0],
5286
+ [115.0, 28.0],
5287
+ [115.0, 30.0],
5288
+ [112.0, 30.0],
5289
+ [112.0, 28.0]
5290
+ ],
5291
+ // 第一个内圈
5292
+ [
5293
+ [112.2, 28.2],
5294
+ [112.2, 29.8],
5295
+ [114.8, 29.8],
5296
+ [114.8, 28.2],
5297
+ [112.2, 28.2]
5298
+ ]
5299
+ ]
5300
+ ]
5301
+ })
5302
+ })
5303
+ ]
5304
+ // 初始化几何图层
5305
+ const graphicsLayer = new GraphicsLayer({
5306
+ graphics:feature
5307
+ })
5308
+ map.add(this.graphicsLayer)
5309
+ const result = this.mapView.hitTest({x:1100,y:600})</code></pre>
5310
+
5311
+
5312
+
5313
+ </div>
5314
+
5315
+ <div class="member">
5316
+
5317
+
5318
+
5319
+ <h4 class="name" id="takeScreenshot">
5320
+ <a class="href-link" href="#takeScreenshot">#</a>
5321
+
5322
+ <span class="code-name" style="font-size:30px">
5323
+
5324
+ takeScreenshot<span class="signature">(options<span class="signature-attributes">opt</span>)</span>
5325
+
5326
+ </span>
5327
+ </h4>
5328
+
5329
+
5330
+
5331
+ <div class="description">
5332
+ <p>屏幕快照</p>
5333
+ </div>
5334
+
5335
+
5336
+
5337
+
5338
+
5339
+
5340
+
5341
+
5342
+
5343
+
5344
+ <h4>参数:</h4>
5345
+
5346
+ <div class="table-container">
5347
+ <table class="params table">
5348
+ <thead>
5349
+ <tr>
5350
+
5351
+ <th>名称</th>
5352
+
5353
+
5354
+ <th>类型</th>
5355
+
5356
+
5357
+ <th style="min-width: 100px;">默认值</th>
5358
+
5359
+
5360
+ <th class="last">描述</th>
5361
+ </tr>
5362
+ </thead>
5363
+
5364
+ <tbody>
5365
+
5366
+
5367
+
5368
+ <tr class="deep-level-0">
5369
+
5370
+ <td class="name"><code>options</code></td>
5371
+
5372
+
5373
+ <td class="type">
5374
+
5375
+
5376
+ <span class="param-type">Object</span>
5377
+
5378
+
5379
+
5380
+ </td>
5381
+
5382
+
5383
+ <td class="default">
5384
+
5385
+ {}
5386
+
5387
+ </td>
5388
+
5389
+
5390
+ <td class="description last"><p>屏幕快照配置配置</p></td>
5391
+ </tr>
5392
+
5393
+
5394
+
5395
+
5396
+ <tr class="deep-level-1">
5397
+
5398
+ <td class="name"><code>format</code></td>
5399
+
5400
+
5401
+ <td class="type">
5402
+
5403
+
5404
+ <span class="param-type">PictureFormat</span>
5405
+
5406
+
5407
+
5408
+ </td>
5409
+
5410
+
5411
+ <td class="default">
5412
+
5413
+ PictureFormat.PNG
5414
+
5415
+ </td>
5416
+
5417
+
5418
+ <td class="description last"><p>照片格式,支持png,jpeg格式</p></td>
5419
+ </tr>
5420
+
5421
+
5422
+
5423
+
5424
+ <tr class="deep-level-1">
5425
+
5426
+ <td class="name"><code>filename</code></td>
5427
+
5428
+
5429
+ <td class="type">
5430
+
5431
+
5432
+ <span class="param-type">String</span>
5433
+
5434
+
5435
+
5436
+ </td>
5437
+
5438
+
5439
+ <td class="default">
5440
+
5441
+ 'screenshotFile'
5442
+
5443
+ </td>
5444
+
5445
+
5446
+ <td class="description last"><p>下载文件名</p></td>
5447
+ </tr>
5448
+
5449
+
5450
+
5451
+
5452
+ <tr class="deep-level-1">
5453
+
5454
+ <td class="name"><code>width</code></td>
5455
+
5456
+
5457
+ <td class="type">
5458
+
5459
+
5460
+ <span class="param-type">Number</span>
5461
+
5462
+
5463
+
5464
+ </td>
5465
+
5466
+
5467
+ <td class="default">
5468
+
5469
+ </td>
5470
+
5471
+
5472
+ <td class="description last"><p>图片宽度</p></td>
5473
+ </tr>
5474
+
5475
+
5476
+
5477
+
5478
+ <tr class="deep-level-1">
5479
+
5480
+ <td class="name"><code>height</code></td>
5481
+
5482
+
5483
+ <td class="type">
5484
+
5485
+
5486
+ <span class="param-type">Number</span>
5487
+
5488
+
5489
+
5490
+ </td>
5491
+
5492
+
5493
+ <td class="default">
5494
+
5495
+ </td>
5496
+
5497
+
5498
+ <td class="description last"><p>图片高度</p></td>
5499
+ </tr>
5500
+
5501
+
5502
+
5503
+
5504
+ <tr class="deep-level-1">
5505
+
5506
+ <td class="name"><code>x</code></td>
5507
+
5508
+
5509
+ <td class="type">
5510
+
5511
+
5512
+ <span class="param-type">Number</span>
5513
+
5514
+
5515
+
5516
+ </td>
5517
+
5518
+
5519
+ <td class="default">
5520
+
5521
+ </td>
5522
+
5523
+
5524
+ <td class="description last"><p>图片原点x</p></td>
5525
+ </tr>
5526
+
5527
+
5528
+
5529
+
5530
+ <tr class="deep-level-1">
5531
+
5532
+ <td class="name"><code>y</code></td>
5533
+
5534
+
5535
+ <td class="type">
5536
+
5537
+
5538
+ <span class="param-type">Number</span>
5539
+
5540
+
5541
+
5542
+ </td>
5543
+
5544
+
5545
+ <td class="default">
5546
+
5547
+ </td>
5548
+
5549
+
5550
+ <td class="description last"><p>图片原点y</p></td>
5551
+ </tr>
5552
+
5553
+
5554
+
5555
+
5556
+ <tr class="deep-level-1">
5557
+
5558
+ <td class="name"><code>isDownload</code></td>
5559
+
5560
+
5561
+ <td class="type">
5562
+
5563
+
5564
+ <span class="param-type">Boolean</span>
5565
+
5566
+
5567
+
5568
+ </td>
5569
+
5570
+
5571
+ <td class="default">
5572
+
5573
+ true
5574
+
5575
+ </td>
5576
+
5577
+
5578
+ <td class="description last"><p>是否下载图片</p></td>
5579
+ </tr>
5580
+
5581
+
5582
+
5583
+
5584
+
5585
+
5586
+
5587
+ </tbody>
5588
+ </table>
5589
+ </div>
5590
+
5591
+
5592
+
5593
+
5594
+
5595
+
5596
+ <dl class="details">
5597
+
5598
+
5599
+
5600
+
5601
+
5602
+
5603
+
5604
+
5605
+
5606
+
5607
+
5608
+
5609
+
5610
+
5611
+
5612
+
5613
+
5614
+
5615
+
5616
+
5617
+
5618
+
5619
+
5620
+
5621
+
5622
+
5623
+
5624
+
5625
+
5626
+
5627
+
5628
+ </dl>
5629
+
5630
+
5631
+
5632
+
5633
+
5634
+
5635
+
5636
+
5637
+
5638
+
5639
+
5640
+
5641
+
5642
+
5643
+
5644
+
5645
+
5646
+
5647
+ <div class='columns method-parameter'>
5648
+ <div class="column is-2"><label>返回值:</label></div>
5649
+ <div class="column is-10">
5650
+
5651
+
5652
+
5653
+ <div class="columns">
5654
+
5655
+ <div class='param-desc column is-7'><p>屏幕快照 {dataUrl String },且浏览器会下载图片</p></div>
5656
+
5657
+
5658
+ <div class='column is-5 has-text-left'>
5659
+ <label>类型: </label>
5660
+
5661
+ <span class="param-type">Object</span>
5662
+
5663
+
5664
+ </div>
5665
+
5666
+ </div>
5667
+
5668
+
5669
+ </div>
5670
+ </div>
5671
+
5672
+
5673
+
5674
+
5675
+
5676
+
5677
+ <h5>示例</h5>
5678
+
5679
+ <p class="code-caption"><h7>屏幕快照</h7></p>
5680
+
5681
+
5682
+ <pre class="prettyprint"><code>// ES5引入方式
5683
+ const { Map } = zondy
5684
+ const { MapView } = zondy.leaflet
5685
+ const { PictureFormat } = zondy.Enum
5686
+ // ES6引入方式
5687
+ import { Map, PictureFormat } from "@mapgis/webclient-common"
5688
+ import { MapView } from "@mapgis/webclient-leaflet-plugin"
5689
+ // 初始化图层管理容器
5690
+ const map = new Map();
5691
+ // 初始化地图视图对象
5692
+ const mapView = new MapView({
5693
+ // 二维场景视图的容器(html的div标签)ID
5694
+ viewId: "二维场景视图的容器的id",
5695
+ // 图层管理容器
5696
+ map: map
5697
+ })
5698
+ // 设置屏幕快照参数
5699
+ const screenshotOptions: {
5700
+ format: PictureFormat.PNG
5701
+ }
5702
+ // 开始屏幕快照
5703
+ mapView.takeScreenshot(screenshotOptions).then((result) => {
5704
+ // 获取base64格式的url字符串
5705
+ console.log("dataUrl:", result.dataUrl)
5706
+ })</code></pre>
5707
+
5708
+
5709
+
5710
+ </div>
5711
+
5712
+ <div class="member">
5713
+
5714
+
5715
+
5716
+ <h4 class="name" id="toJSON">
5717
+ <a class="href-link" href="#toJSON">#</a>
5718
+
5719
+ <span class="code-name" style="font-size:30px">
5720
+
5721
+ toJSON<span class="signature">()</span>
5722
+
5723
+ </span>
5724
+ </h4>
5725
+
5726
+
5727
+
5728
+ <div class="description">
5729
+ <p>导出场景视图的配置文件<a id='toJSON'></a></p>
5730
+ </div>
5731
+
5732
+
5733
+
5734
+
5735
+
5736
+
5737
+
5738
+
5739
+
5740
+
5741
+
5742
+
5743
+
5744
+
5745
+ <dl class="details">
5746
+
5747
+
5748
+
5749
+
5750
+
5751
+
5752
+
5753
+
5754
+
5755
+
5756
+
5757
+
5758
+
5759
+
5760
+
5761
+
5762
+
5763
+
5764
+
5765
+
5766
+
5767
+
5768
+
5769
+
5770
+
5771
+
5772
+
5773
+
5774
+
5775
+
5776
+
5777
+ </dl>
5778
+
5779
+
5780
+
5781
+
5782
+
5783
+
5784
+
5785
+
5786
+
5787
+
5788
+
5789
+
5790
+
5791
+
5792
+
5793
+
5794
+
5795
+
5796
+ <div class='columns method-parameter'>
5797
+ <div class="column is-2"><label>返回值:</label></div>
5798
+ <div class="column is-10">
5799
+
5800
+
5801
+
5802
+ <div class="columns">
5803
+
5804
+ <div class='param-desc column is-7'><p>导出的配置文件</p></div>
5805
+
5806
+
5807
+ <div class='column is-5 has-text-left'>
5808
+ <label>类型: </label>
5809
+
5810
+ <span class="param-type">Object</span>
5811
+
5812
+
5813
+ </div>
5814
+
5815
+ </div>
5816
+
5817
+
5818
+ </div>
5819
+ </div>
5820
+
5821
+
5822
+
5823
+
5824
+
5825
+
5826
+ </div>
5827
+
5828
+ <div class="member">
5829
+
5830
+
5831
+
5832
+ <h4 class="name" id="toMap">
5833
+ <a class="href-link" href="#toMap">#</a>
5834
+
5835
+ <span class="code-name" style="font-size:30px">
5836
+
5837
+ toMap<span class="signature">(screenPoint)</span>
5838
+
5839
+ </span>
5840
+ </h4>
5841
+
5842
+
5843
+
5844
+ <div class="description">
5845
+ <p><a id='toMap'></a>
5846
+ 屏幕像素坐标点转地理坐标点</p>
5847
+ </div>
5848
+
5849
+
5850
+
5851
+
5852
+
5853
+
5854
+
5855
+
5856
+
5857
+
5858
+ <h4>参数:</h4>
5859
+
5860
+ <div class="table-container">
5861
+ <table class="params table">
5862
+ <thead>
5863
+ <tr>
5864
+
5865
+ <th>名称</th>
5866
+
5867
+
5868
+ <th>类型</th>
5869
+
5870
+
5871
+
5872
+ <th class="last">描述</th>
5873
+ </tr>
5874
+ </thead>
5875
+
5876
+ <tbody>
5877
+
5878
+
5879
+
5880
+ <tr class="deep-level-0">
5881
+
5882
+ <td class="name"><code>screenPoint</code></td>
5883
+
5884
+
5885
+ <td class="type">
5886
+
5887
+
5888
+ <span class="param-type">Object</span>
5889
+
5890
+
5891
+
5892
+ </td>
5893
+
5894
+
5895
+
5896
+ <td class="description last"><p>屏幕像素坐标点,例如{ x: 900, y: 500 }</p></td>
5897
+ </tr>
5898
+
5899
+
5900
+
5901
+
5902
+ </tbody>
5903
+ </table>
5904
+ </div>
5905
+
5906
+
5907
+
5908
+
5909
+
5910
+
5911
+ <dl class="details">
5912
+
5913
+
5914
+
5915
+
5916
+
5917
+
5918
+
5919
+
5920
+
5921
+
5922
+
5923
+
5924
+
5925
+
5926
+
5927
+
5928
+
5929
+
5930
+
5931
+
5932
+
5933
+
5934
+
5935
+
5936
+
5937
+
5938
+
5939
+
5940
+
5941
+
5942
+
5943
+ </dl>
5944
+
5945
+
5946
+
5947
+
5948
+
5949
+
5950
+
5951
+
5952
+
5953
+
5954
+
5955
+
5956
+
5957
+
5958
+
5959
+
5960
+
5961
+
5962
+ <div class='columns method-parameter'>
5963
+ <div class="column is-2"><label>返回值:</label></div>
5964
+ <div class="column is-10">
5965
+
5966
+
5967
+
5968
+ <div class="columns">
5969
+
5970
+ <div class='param-desc column is-7'><p>地理坐标点</p></div>
5971
+
5972
+
5973
+ <div class='column is-5 has-text-left'>
5974
+ <label>类型: </label>
5975
+
5976
+ <span class="param-type">Point</span>
5977
+
5978
+
5979
+ </div>
5980
+
5981
+ </div>
5982
+
5983
+
5984
+ </div>
5985
+ </div>
5986
+
5987
+
5988
+
5989
+
5990
+
5991
+
5992
+ <h5>示例</h5>
5993
+
5994
+ <p class="code-caption"><h5>屏幕像素坐标点转地理坐标示例</h5></p>
5995
+
5996
+
5997
+ <pre class="prettyprint"><code>// ES6引入方式
5998
+ import { MapView } from "@mapgis/webclient-leaflet-plugin"
5999
+ import { Map, Point, Extent } from "@mapgis/webclient-common"
6000
+ // 初始化图层管理容器
6001
+ const map = new Map();
6002
+ // 初始化地图视图对象
6003
+ const mapView = new MapView({
6004
+ // 视图id
6005
+ viewId: "mapgis-2d-viewer",
6006
+ // 图层管理容器
6007
+ map: map
6008
+ });
6009
+ const screenPoint = { x: 900, y: 500 }
6010
+ mapView.toMap(screenPoint)</code></pre>
6011
+
6012
+
6013
+
6014
+ </div>
6015
+
6016
+ <div class="member">
6017
+
6018
+
6019
+
6020
+ <h4 class="name" id="toScreen">
6021
+ <a class="href-link" href="#toScreen">#</a>
6022
+
6023
+ <span class="code-name" style="font-size:30px">
6024
+
6025
+ toScreen<span class="signature">(point)</span>
6026
+
6027
+ </span>
6028
+ </h4>
6029
+
6030
+
6031
+
6032
+ <div class="description">
6033
+ <p><a id='toScreen'></a>
6034
+ 地理坐标点转屏幕像素坐标点</p>
6035
+ </div>
6036
+
6037
+
6038
+
6039
+
6040
+
6041
+
6042
+
6043
+
6044
+
6045
+
6046
+ <h4>参数:</h4>
6047
+
6048
+ <div class="table-container">
6049
+ <table class="params table">
6050
+ <thead>
6051
+ <tr>
6052
+
6053
+ <th>名称</th>
6054
+
6055
+
6056
+ <th>类型</th>
6057
+
6058
+
6059
+
6060
+ <th class="last">描述</th>
6061
+ </tr>
6062
+ </thead>
6063
+
6064
+ <tbody>
6065
+
6066
+
6067
+
6068
+ <tr class="deep-level-0">
6069
+
6070
+ <td class="name"><code>point</code></td>
6071
+
6072
+
6073
+ <td class="type">
6074
+
6075
+
6076
+ <span class="param-type">Point</span>
6077
+
6078
+
6079
+
6080
+ </td>
6081
+
6082
+
6083
+
6084
+ <td class="description last"><p>地理坐标点</p></td>
6085
+ </tr>
6086
+
6087
+
6088
+
6089
+
6090
+ </tbody>
6091
+ </table>
6092
+ </div>
6093
+
6094
+
6095
+
6096
+
6097
+
6098
+
6099
+ <dl class="details">
6100
+
6101
+
6102
+
6103
+
6104
+
6105
+
6106
+
6107
+
6108
+
6109
+
6110
+
6111
+
6112
+
6113
+
6114
+
6115
+
6116
+
6117
+
6118
+
6119
+
6120
+
6121
+
6122
+
6123
+
6124
+
6125
+
6126
+
6127
+
6128
+
6129
+
6130
+
6131
+ </dl>
6132
+
6133
+
6134
+
6135
+
6136
+
6137
+
6138
+
6139
+
6140
+
6141
+
6142
+
6143
+
6144
+
6145
+
6146
+
6147
+
6148
+
6149
+
6150
+ <div class='columns method-parameter'>
6151
+ <div class="column is-2"><label>返回值:</label></div>
6152
+ <div class="column is-10">
6153
+
6154
+
6155
+
6156
+ <div class="columns">
6157
+
6158
+ <div class='param-desc column is-7'><p>屏幕像素坐标点</p></div>
6159
+
6160
+
6161
+ <div class='column is-5 has-text-left'>
6162
+ <label>类型: </label>
6163
+
6164
+ <span class="param-type">Object</span>
6165
+
6166
+
6167
+ </div>
6168
+
6169
+ </div>
6170
+
6171
+
6172
+ </div>
6173
+ </div>
6174
+
6175
+
6176
+
6177
+
6178
+
6179
+
6180
+ <h5>示例</h5>
6181
+
6182
+ <p class="code-caption"><h5>地理坐标点转屏幕像素坐标示例</h5></p>
6183
+
6184
+
6185
+ <pre class="prettyprint"><code>// ES6引入方式
6186
+ import { MapView } from "@mapgis/webclient-leaflet-plugin"
6187
+ import { Map, Point, Extent } from "@mapgis/webclient-common"
6188
+ // 初始化图层管理容器
6189
+ const map = new Map();
6190
+ // 初始化地图视图对象
6191
+ const mapView = new MapView({
6192
+ // 视图id
6193
+ viewId: "mapgis-2d-viewer",
6194
+ // 图层管理容器
6195
+ map: map
6196
+ });
6197
+ const geoPoint = new Point({ coordinates: [123, 23, 0] })
6198
+ mapView.toScreen(geoPoint)</code></pre>
6199
+
6200
+
6201
+
6202
+ </div>
6203
+
6204
+ </div>
6205
+ </div>
6206
+
2403
6207
 
2404
6208
 
2405
6209