@mapgis/webclient-leaflet-plugin 17.4.1 → 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.
- package/README.md +93 -41
- package/dist/es5/webclient-common.min.js +32 -6
- package/dist/es5/webclient-leaflet-plugin.min.js +6 -6
- package/dist/webclient-leaflet-plugin-es6.min.js +6 -11
- package/documention/ArcGISMapImageLayer.html +50 -4
- package/documention/ArcGISTileLayer.html +42 -4
- package/documention/EchartsLayer.html +3 -3
- package/documention/FeatureLayer.html +2 -2
- package/documention/FeatureLayerUtil.html +3 -3
- package/documention/IGSImageryLayer.html +851 -0
- package/documention/IGSImageryTileLayer.html +741 -0
- package/documention/IGSMapImageLayer.html +54 -31
- package/documention/IGSTileLayer.html +103 -25
- package/documention/L.zondy.MapvBaseLayer.html +6 -2
- package/documention/MapLayer.html +30 -2
- package/documention/MapVLayer.html +3 -3
- package/documention/MapView.html +153 -91
- package/documention/MapViewLeaflet.html +1413 -369
- package/documention/Popup.html +3 -3
- package/documention/Screenshot.html +2 -2
- package/documention/SketchEditor.html +12 -12
- package/documention/SketchEditorLeaflet.html +477 -241
- package/documention/TileLayer.html +132 -2
- package/documention/TileLayerWMS.html +2 -2
- package/documention/VectorTileLayer.html +46 -4
- package/documention/WMSLayerView.html +2 -2
- package/documention/WebMapServiceLayer.html +48 -4
- package/documention/WebMapTileServiceLayer.html +38 -20
- package/documention/WebTileLayer.html +42 -4
- package/documention/global.html +508 -1868
- package/documention/index.html +2 -2
- package/documention/initializeOptions.html +384 -0
- package/documention/{Zondy.ThemeLayer.GeoFeatureThemeLayer.html → zondy.themelayer.GeoFeatureThemeLayer.html} +6 -2
- package/documention/{Zondy.ThemeLayer.GraphThemeLayer.html → zondy.themelayer.GraphThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.RandomThemeLayer.html → zondy.themelayer.RandomThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.ThemeLayer.html → zondy.themelayer.ThemeLayer.html} +6 -2
- package/documention/{Zondy.ThemeLayer.ThemeStyle.html → zondy.themelayer.ThemeStyle.html} +6 -2
- package/documention/{Zondy.ThemeLayer.rangeThemeLayer.html → zondy.themelayer.rangeThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.rankSymbolThemeLayer.html → zondy.themelayer.rankSymbolThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.simpleThemeLayer.html → zondy.themelayer.simpleThemeLayer.html} +2 -2
- package/documention/{Zondy.ThemeLayer.uniqueThemeLayer.html → zondy.themelayer.uniqueThemeLayer.html} +2 -2
- package/documention/{Zondy.view.UI.html → zondy.view.UI.html} +7 -3
- package/documention/{Zondy.Widget.html → zondy.widget.html} +3 -3
- package/package.json +7 -8
- package/documention/DrawControl.html +0 -802
|
@@ -104,7 +104,7 @@
|
|
|
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
|
|
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
108
|
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/MapView.html' target='_blank'>zondy.MapView</a><br/>
|
|
109
109
|
参考示例:
|
|
110
110
|
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
@@ -117,7 +117,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p></span></li>
|
|
|
117
117
|
[ES6引入方式]:<br/>
|
|
118
118
|
import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
|
|
119
119
|
自定义样式说明:<br/>
|
|
120
|
-
zondy-
|
|
120
|
+
zondy-popup__container 弹窗容器样式<br/>
|
|
121
121
|
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
122
122
|
zondy-popup__header 弹窗头部样式<br/>
|
|
123
123
|
zondy-popup__content 弹窗主体样式<br/>
|
|
@@ -336,6 +336,34 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
336
336
|
|
|
337
337
|
|
|
338
338
|
|
|
339
|
+
|
|
340
|
+
<tr class="deep-level-1">
|
|
341
|
+
|
|
342
|
+
<td class="name"><code>headers</code></td>
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
<td class="type">
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
<span class="param-type">Object</span>
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
</td>
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
<td class="default">
|
|
356
|
+
|
|
357
|
+
null
|
|
358
|
+
|
|
359
|
+
</td>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
<td class="description last"><p>请求头参数</p></td>
|
|
363
|
+
</tr>
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
339
367
|
|
|
340
368
|
|
|
341
369
|
|
|
@@ -104,7 +104,7 @@
|
|
|
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
|
|
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
108
|
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/MapView.html' target='_blank'>zondy.MapView</a><br/>
|
|
109
109
|
参考示例:
|
|
110
110
|
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
@@ -117,7 +117,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p></span></li>
|
|
|
117
117
|
[ES6引入方式]:<br/>
|
|
118
118
|
import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
|
|
119
119
|
自定义样式说明:<br/>
|
|
120
|
-
zondy-
|
|
120
|
+
zondy-popup__container 弹窗容器样式<br/>
|
|
121
121
|
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
122
122
|
zondy-popup__header 弹窗头部样式<br/>
|
|
123
123
|
zondy-popup__content 弹窗主体样式<br/>
|
|
@@ -371,7 +371,7 @@ const { WebTileLayer, MapVLayer, leaflet } = zondy
|
|
|
371
371
|
// ES6引入方式
|
|
372
372
|
import { WebTileLayer } from "@mapgis/webclient-common"
|
|
373
373
|
import { WebTileLayer, MapVLayer } from "@mapgis/webclient-leaflet-plugin"
|
|
374
|
-
import * as leaflet from '
|
|
374
|
+
import * as leaflet from 'leaflet'
|
|
375
375
|
// 请先确保引入了MapV库
|
|
376
376
|
<script src="http://{ip}:{port}/mapv.min.js"></script>
|
|
377
377
|
// 构造一个WebTileLayer图层对象作为底图
|
package/documention/MapView.html
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
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
|
|
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
108
|
继承自<a href='http://webclient.smaryun.com/static/modules/common/api/common-mapgis/MapView.html' target='_blank'>zondy.MapView</a><br/>
|
|
109
109
|
参考示例:
|
|
110
110
|
<a href='#MapView'>[初始化二维场景视图]</a>
|
|
@@ -117,7 +117,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p></span></li>
|
|
|
117
117
|
[ES6引入方式]:<br/>
|
|
118
118
|
import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
|
|
119
119
|
自定义样式说明:<br/>
|
|
120
|
-
zondy-
|
|
120
|
+
zondy-popup__container 弹窗容器样式<br/>
|
|
121
121
|
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
122
122
|
zondy-popup__header 弹窗头部样式<br/>
|
|
123
123
|
zondy-popup__content 弹窗主体样式<br/>
|
|
@@ -290,13 +290,13 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
290
290
|
|
|
291
291
|
<tr class="deep-level-1">
|
|
292
292
|
|
|
293
|
-
<td class="name"><code>
|
|
293
|
+
<td class="name"><code>spatialReference</code></td>
|
|
294
294
|
|
|
295
295
|
|
|
296
296
|
<td class="type">
|
|
297
297
|
|
|
298
298
|
|
|
299
|
-
<span class="param-type">
|
|
299
|
+
<span class="param-type">SpatialReference</span>
|
|
300
300
|
|
|
301
301
|
|
|
302
302
|
|
|
@@ -308,7 +308,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
308
308
|
</td>
|
|
309
309
|
|
|
310
310
|
|
|
311
|
-
<td class="description last"><p
|
|
311
|
+
<td class="description last"><p>视图空间参考系</p></td>
|
|
312
312
|
</tr>
|
|
313
313
|
|
|
314
314
|
|
|
@@ -849,7 +849,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
849
849
|
</td>
|
|
850
850
|
|
|
851
851
|
|
|
852
|
-
<td class="description last"><p
|
|
852
|
+
<td class="description last"><p>地图视图中心点。如果有中心点,看是否存在zoom/scale,使用center和zoom/scale定位(同时设置scale和zoom时,scale优先于zoom),否则默认zoom为到第0级。如果没有设置center,但设置了extent,则以extent定位。</p></td>
|
|
853
853
|
</tr>
|
|
854
854
|
|
|
855
855
|
|
|
@@ -875,7 +875,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
875
875
|
</td>
|
|
876
876
|
|
|
877
877
|
|
|
878
|
-
<td class="description last"><p
|
|
878
|
+
<td class="description last"><p>地图视图初始所在的范围。如果没有设置center,但设置extent了,则地图视图定位到extent范围内。</p></td>
|
|
879
879
|
</tr>
|
|
880
880
|
|
|
881
881
|
|
|
@@ -927,7 +927,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
927
927
|
</td>
|
|
928
928
|
|
|
929
929
|
|
|
930
|
-
<td class="description last"><p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined
|
|
930
|
+
<td class="description last"><p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。maxScale的值应该始终小于minScale的值。</p></td>
|
|
931
931
|
</tr>
|
|
932
932
|
|
|
933
933
|
|
|
@@ -953,7 +953,59 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
953
953
|
</td>
|
|
954
954
|
|
|
955
955
|
|
|
956
|
-
<td class="description last"><p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined
|
|
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>
|
|
957
1009
|
</tr>
|
|
958
1010
|
|
|
959
1011
|
|
|
@@ -1012,6 +1064,32 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
1012
1064
|
|
|
1013
1065
|
|
|
1014
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
|
+
|
|
1015
1093
|
|
|
1016
1094
|
|
|
1017
1095
|
|
|
@@ -1347,7 +1425,7 @@ const mapView = new MapView({
|
|
|
1347
1425
|
<span class="method-parameter is-pulled-right">
|
|
1348
1426
|
<label>类型:</label>
|
|
1349
1427
|
|
|
1350
|
-
<span class="param-type">
|
|
1428
|
+
<span class="param-type">EngineType</span>
|
|
1351
1429
|
|
|
1352
1430
|
|
|
1353
1431
|
</span>
|
|
@@ -1653,7 +1731,7 @@ const mapView = new MapView({
|
|
|
1653
1731
|
|
|
1654
1732
|
|
|
1655
1733
|
<div class="description">
|
|
1656
|
-
<p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined
|
|
1734
|
+
<p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。maxScale的值应该始终小于minScale的值。</p>
|
|
1657
1735
|
</div>
|
|
1658
1736
|
|
|
1659
1737
|
|
|
@@ -1723,7 +1801,7 @@ const mapView = new MapView({
|
|
|
1723
1801
|
|
|
1724
1802
|
|
|
1725
1803
|
<div class="description">
|
|
1726
|
-
<p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined
|
|
1804
|
+
<p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。minScale的值应该始终大于maxScale的值。</p>
|
|
1727
1805
|
</div>
|
|
1728
1806
|
|
|
1729
1807
|
|
|
@@ -2031,80 +2109,6 @@ const mapView = new MapView({
|
|
|
2031
2109
|
|
|
2032
2110
|
|
|
2033
2111
|
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
</dl>
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
</div>
|
|
2052
|
-
|
|
2053
|
-
<div class="member">
|
|
2054
|
-
|
|
2055
|
-
<span class="method-parameter is-pulled-right">
|
|
2056
|
-
<label>类型:</label>
|
|
2057
|
-
|
|
2058
|
-
<span class="param-type">SpatialReference</span>
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
</span>
|
|
2062
|
-
|
|
2063
|
-
<h4 class="name" id="spatialReference">
|
|
2064
|
-
<a class="href-link" href="#spatialReference">#</a>
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
<span class='tag'>readonly</span>
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
<span class="code-name">
|
|
2071
|
-
spatialReference
|
|
2072
|
-
</span>
|
|
2073
|
-
|
|
2074
|
-
</h4>
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
<div class="description">
|
|
2080
|
-
<p>视图空间参考系</p>
|
|
2081
|
-
</div>
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
<dl class="details">
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
2112
|
|
|
2109
2113
|
|
|
2110
2114
|
|
|
@@ -4751,6 +4755,38 @@ igsMapImageLayer.on('layer-view-created', function (result) {
|
|
|
4751
4755
|
|
|
4752
4756
|
|
|
4753
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
|
+
|
|
4754
4790
|
<tr class="deep-level-1">
|
|
4755
4791
|
|
|
4756
4792
|
<td class="name"><code>target</code></td>
|
|
@@ -4928,6 +4964,31 @@ igsMapImageLayer.on('layer-view-created', function (result) {
|
|
|
4928
4964
|
|
|
4929
4965
|
|
|
4930
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.<Boolean></span>
|
|
4982
|
+
|
|
4983
|
+
|
|
4984
|
+
</div>
|
|
4985
|
+
|
|
4986
|
+
</div>
|
|
4987
|
+
|
|
4988
|
+
|
|
4989
|
+
</div>
|
|
4990
|
+
</div>
|
|
4991
|
+
|
|
4931
4992
|
|
|
4932
4993
|
|
|
4933
4994
|
|
|
@@ -5349,7 +5410,7 @@ const result = this.mapView.hitTest({x:1100,y:600})</code></pre>
|
|
|
5349
5410
|
|
|
5350
5411
|
<td class="default">
|
|
5351
5412
|
|
|
5352
|
-
PictureFormat.
|
|
5413
|
+
PictureFormat.PNG
|
|
5353
5414
|
|
|
5354
5415
|
</td>
|
|
5355
5416
|
|
|
@@ -5619,11 +5680,12 @@ const result = this.mapView.hitTest({x:1100,y:600})</code></pre>
|
|
|
5619
5680
|
|
|
5620
5681
|
|
|
5621
5682
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
5622
|
-
const { Map
|
|
5683
|
+
const { Map } = zondy
|
|
5684
|
+
const { MapView } = zondy.leaflet
|
|
5623
5685
|
const { PictureFormat } = zondy.Enum
|
|
5624
5686
|
// ES6引入方式
|
|
5625
|
-
import { Map,
|
|
5626
|
-
import {
|
|
5687
|
+
import { Map, PictureFormat } from "@mapgis/webclient-common"
|
|
5688
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
5627
5689
|
// 初始化图层管理容器
|
|
5628
5690
|
const map = new Map();
|
|
5629
5691
|
// 初始化地图视图对象
|
|
@@ -5635,7 +5697,7 @@ const mapView = new MapView({
|
|
|
5635
5697
|
})
|
|
5636
5698
|
// 设置屏幕快照参数
|
|
5637
5699
|
const screenshotOptions: {
|
|
5638
|
-
format: PictureFormat.
|
|
5700
|
+
format: PictureFormat.PNG
|
|
5639
5701
|
}
|
|
5640
5702
|
// 开始屏幕快照
|
|
5641
5703
|
mapView.takeScreenshot(screenshotOptions).then((result) => {
|