@mapgis/webclient-leaflet-plugin 17.4.0 → 17.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -2
- package/dist/es5/webclient-common.min.js +37 -5
- package/dist/es5/webclient-leaflet-plugin.min.js +3 -3
- package/dist/webclient-leaflet-plugin-es6.min.js +7 -7
- package/documention/ArcGISMapImageLayer.html +5 -3
- package/documention/ArcGISTileLayer.html +5 -3
- package/documention/EchartsLayer.html +14 -4
- package/documention/FeatureLayer.html +5 -3
- package/documention/FeatureLayerUtil.html +5 -3
- package/documention/IGSImageryLayer.html +851 -0
- package/documention/IGSImageryTileLayer.html +741 -0
- package/documention/IGSMapImageLayer.html +5 -3
- package/documention/IGSTileLayer.html +5 -3
- package/documention/L.zondy.MapvBaseLayer.html +9 -3
- package/documention/MapLayer.html +5 -3
- package/documention/MapVLayer.html +14 -4
- package/documention/MapView.html +3752 -9
- package/documention/MapViewLeaflet.html +1413 -369
- package/documention/Popup.html +6 -4
- package/documention/Screenshot.html +5 -3
- package/documention/SketchEditor.html +3211 -0
- package/documention/SketchEditorLeaflet.html +477 -241
- package/documention/TileLayer.html +79 -3
- package/documention/TileLayerWMS.html +5 -3
- package/documention/VectorTileLayer.html +5 -3
- package/documention/WMSLayerView.html +5 -3
- package/documention/WebMapServiceLayer.html +5 -3
- package/documention/WebMapTileServiceLayer.html +5 -3
- package/documention/WebTileLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.GeoFeatureThemeLayer.html +9 -3
- package/documention/Zondy.ThemeLayer.GraphThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.RandomThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.ThemeLayer.html +9 -3
- package/documention/Zondy.ThemeLayer.ThemeStyle.html +9 -3
- package/documention/Zondy.ThemeLayer.rangeThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.rankSymbolThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.simpleThemeLayer.html +5 -3
- package/documention/Zondy.ThemeLayer.uniqueThemeLayer.html +5 -3
- package/documention/Zondy.Widget.html +5 -3
- package/documention/Zondy.view.UI.html +9 -3
- package/documention/global.html +194 -334
- package/documention/index.html +5 -3
- package/documention/initializeOptions.html +384 -0
- package/package.json +1 -1
package/documention/MapView.html
CHANGED
|
@@ -104,7 +104,8 @@
|
|
|
104
104
|
|
|
105
105
|
<nav>
|
|
106
106
|
|
|
107
|
-
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="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地图图片图层(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="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>矢量瓦片图层(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/>
|
|
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-
|
|
120
|
+
zondy-popup__container 弹窗容器样式<br/>
|
|
120
121
|
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
121
122
|
zondy-popup__header 弹窗头部样式<br/>
|
|
122
123
|
zondy-popup__content 弹窗主体样式<br/>
|
|
123
|
-
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Screenshot"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>屏幕打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="
|
|
124
|
+
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="Screenshot"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>屏幕打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="SketchEditor"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditor.html">SketchEditor</a><span style="display: none;"><p>二维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 "@mapgis/webclient-leaflet-plugin" <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/>
|
|
@@ -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
|
|
930
|
+
<td class="description last"><p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。maxScale的值应该始终小于minScale的值。</p></td>
|
|
928
931
|
</tr>
|
|
929
932
|
|
|
930
933
|
|
|
@@ -950,7 +953,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
950
953
|
</td>
|
|
951
954
|
|
|
952
955
|
|
|
953
|
-
<td class="description last"><p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined
|
|
956
|
+
<td class="description last"><p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。minScale的值应该始终大于maxScale的值。</p></td>
|
|
954
957
|
</tr>
|
|
955
958
|
|
|
956
959
|
|
|
@@ -1145,7 +1148,21 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
1145
1148
|
<p class="code-caption"><h7 id='MapView'>初始化一个二维场景视图</h7></p>
|
|
1146
1149
|
|
|
1147
1150
|
|
|
1148
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
1149
1151
|
// 二维场景视图的容器(html的div标签)ID
|
|
1150
1152
|
viewId: "二维场景视图的容器的id",
|
|
1151
1153
|
// 图层管理容器
|
|
1152
1154
|
map: map
|
|
1155
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
1156
|
+
const { Map } = zondy
|
|
1157
|
+
const { MapView } = zondy.leaflet
|
|
1158
|
+
// ES6引入方式
|
|
1159
|
+
import { Map } from "@mapgis/webclient-common"
|
|
1160
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
1161
|
+
// 初始化图层管理容器
|
|
1162
|
+
const map = new Map();
|
|
1163
|
+
// 初始化地图视图对象
|
|
1164
|
+
const mapView = new MapView({
|
|
1165
|
+
// 二维场景视图的容器(html的div标签)ID
|
|
1166
|
+
viewId: "二维场景视图的容器的id",
|
|
1167
|
+
// 图层管理容器
|
|
1168
|
+
map: map
|
|
1169
|
+
});</code></pre>
|
|
1153
1170
|
|
|
1154
1171
|
|
|
1155
1172
|
|
|
@@ -1164,7 +1181,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
1164
1181
|
|
|
1165
1182
|
|
|
1166
1183
|
<ul>
|
|
1167
|
-
<li>
|
|
1184
|
+
<li>zondy.MapView</li>
|
|
1168
1185
|
</ul>
|
|
1169
1186
|
|
|
1170
1187
|
|
|
@@ -1636,7 +1653,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
1636
1653
|
|
|
1637
1654
|
|
|
1638
1655
|
<div class="description">
|
|
1639
|
-
<p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined
|
|
1656
|
+
<p>地图视图的最大比例尺(比例尺的分母,该值越小,比例尺越大)。视图的当前比列尺不会大于地图视图的最大比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。maxScale的值应该始终小于minScale的值。</p>
|
|
1640
1657
|
</div>
|
|
1641
1658
|
|
|
1642
1659
|
|
|
@@ -1706,7 +1723,7 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
1706
1723
|
|
|
1707
1724
|
|
|
1708
1725
|
<div class="description">
|
|
1709
|
-
<p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined
|
|
1726
|
+
<p>地图视图的最小比例尺(比例尺的分母,该值越大,比例尺越小)。视图的当前比列尺不会小于地图视图的最小比例尺。默认值为undefined,undefined表示用户未设置,地图视图会根据当前加载的图层,自动计算maxScale、minScale的值。如果用户设置了该值,则地图视图将直接采用用户设置的值。minScale的值应该始终大于maxScale的值。</p>
|
|
1710
1727
|
</div>
|
|
1711
1728
|
|
|
1712
1729
|
|
|
@@ -2400,6 +2417,3732 @@ import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p>
|
|
|
2400
2417
|
|
|
2401
2418
|
|
|
2402
2419
|
|
|
2420
|
+
<div class='vertical-section'>
|
|
2421
|
+
<h3 id='function'>方法</h3>
|
|
2422
|
+
<div class="members">
|
|
2423
|
+
|
|
2424
|
+
<div class="member">
|
|
2425
|
+
|
|
2426
|
+
|
|
2427
|
+
|
|
2428
|
+
<h4 class="name" id=".fromJSON">
|
|
2429
|
+
<a class="href-link" href="#.fromJSON">#</a>
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
<span class='tag'>static</span>
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
<span class="code-name" style="font-size:30px">
|
|
2436
|
+
|
|
2437
|
+
fromJSON<span class="signature">(json)</span>
|
|
2438
|
+
|
|
2439
|
+
</span>
|
|
2440
|
+
</h4>
|
|
2441
|
+
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
<div class="description">
|
|
2445
|
+
<p>通过json构造并返回一个新的场景视图对象<a id='fromJSON'></a></p>
|
|
2446
|
+
</div>
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
|
|
2450
|
+
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
|
|
2455
|
+
|
|
2456
|
+
|
|
2457
|
+
<h4>参数:</h4>
|
|
2458
|
+
|
|
2459
|
+
<div class="table-container">
|
|
2460
|
+
<table class="params table">
|
|
2461
|
+
<thead>
|
|
2462
|
+
<tr>
|
|
2463
|
+
|
|
2464
|
+
<th>名称</th>
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
<th>类型</th>
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
<th class="last">描述</th>
|
|
2472
|
+
</tr>
|
|
2473
|
+
</thead>
|
|
2474
|
+
|
|
2475
|
+
<tbody>
|
|
2476
|
+
|
|
2477
|
+
|
|
2478
|
+
|
|
2479
|
+
<tr class="deep-level-0">
|
|
2480
|
+
|
|
2481
|
+
<td class="name"><code>json</code></td>
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
<td class="type">
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
<span class="param-type">Object</span>
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
|
|
2491
|
+
</td>
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
<td class="description last"><p>json对象</p></td>
|
|
2496
|
+
</tr>
|
|
2497
|
+
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
</tbody>
|
|
2502
|
+
</table>
|
|
2503
|
+
</div>
|
|
2504
|
+
|
|
2505
|
+
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
|
|
2510
|
+
<dl class="details">
|
|
2511
|
+
|
|
2512
|
+
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
|
|
2527
|
+
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
|
|
2531
|
+
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
</dl>
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
|
|
2553
|
+
|
|
2554
|
+
|
|
2555
|
+
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
<div class='columns method-parameter'>
|
|
2562
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2563
|
+
<div class="column is-10">
|
|
2564
|
+
|
|
2565
|
+
|
|
2566
|
+
|
|
2567
|
+
<div class="columns">
|
|
2568
|
+
|
|
2569
|
+
<div class='param-desc column is-7'><p>一个新的场景视图对象</p></div>
|
|
2570
|
+
|
|
2571
|
+
|
|
2572
|
+
<div class='column is-5 has-text-left'>
|
|
2573
|
+
<label>类型: </label>
|
|
2574
|
+
|
|
2575
|
+
<span class="param-type"><a href="MapView.html">MapView</a></span>
|
|
2576
|
+
|
|
2577
|
+
|
|
2578
|
+
</div>
|
|
2579
|
+
|
|
2580
|
+
</div>
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
</div>
|
|
2584
|
+
</div>
|
|
2585
|
+
|
|
2586
|
+
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
|
|
2590
|
+
|
|
2591
|
+
</div>
|
|
2592
|
+
|
|
2593
|
+
<div class="member">
|
|
2594
|
+
|
|
2595
|
+
|
|
2596
|
+
|
|
2597
|
+
<h4 class="name" id=".fromJSON">
|
|
2598
|
+
<a class="href-link" href="#.fromJSON">#</a>
|
|
2599
|
+
|
|
2600
|
+
|
|
2601
|
+
<span class='tag'>static</span>
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
<span class="code-name" style="font-size:30px">
|
|
2605
|
+
|
|
2606
|
+
fromJSON<span class="signature">(json)</span>
|
|
2607
|
+
|
|
2608
|
+
</span>
|
|
2609
|
+
</h4>
|
|
2610
|
+
|
|
2611
|
+
|
|
2612
|
+
|
|
2613
|
+
<div class="description">
|
|
2614
|
+
<p>通过一个配置生成一个场景视图对象</p>
|
|
2615
|
+
</div>
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
|
|
2621
|
+
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
<h4>参数:</h4>
|
|
2627
|
+
|
|
2628
|
+
<div class="table-container">
|
|
2629
|
+
<table class="params table">
|
|
2630
|
+
<thead>
|
|
2631
|
+
<tr>
|
|
2632
|
+
|
|
2633
|
+
<th>名称</th>
|
|
2634
|
+
|
|
2635
|
+
|
|
2636
|
+
<th>类型</th>
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
<th class="last">描述</th>
|
|
2641
|
+
</tr>
|
|
2642
|
+
</thead>
|
|
2643
|
+
|
|
2644
|
+
<tbody>
|
|
2645
|
+
|
|
2646
|
+
|
|
2647
|
+
|
|
2648
|
+
<tr class="deep-level-0">
|
|
2649
|
+
|
|
2650
|
+
<td class="name"><code>json</code></td>
|
|
2651
|
+
|
|
2652
|
+
|
|
2653
|
+
<td class="type">
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
<span class="param-type">Object</span>
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
|
|
2660
|
+
</td>
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
|
|
2664
|
+
<td class="description last"><p>场景视图配置</p></td>
|
|
2665
|
+
</tr>
|
|
2666
|
+
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
</tbody>
|
|
2671
|
+
</table>
|
|
2672
|
+
</div>
|
|
2673
|
+
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
<dl class="details">
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
|
|
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
|
+
</dl>
|
|
2712
|
+
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
<div class='columns method-parameter'>
|
|
2731
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2732
|
+
<div class="column is-10">
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
<div class="columns">
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
<div class='column is-5 has-text-left'>
|
|
2740
|
+
<label>类型: </label>
|
|
2741
|
+
|
|
2742
|
+
<span class="param-type"><a href="MapView.html">MapView</a></span>
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
</div>
|
|
2746
|
+
|
|
2747
|
+
</div>
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
</div>
|
|
2751
|
+
</div>
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
</div>
|
|
2759
|
+
|
|
2760
|
+
<div class="member">
|
|
2761
|
+
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
<h4 class="name" id="clone">
|
|
2765
|
+
<a class="href-link" href="#clone">#</a>
|
|
2766
|
+
|
|
2767
|
+
<span class="code-name" style="font-size:30px">
|
|
2768
|
+
|
|
2769
|
+
clone<span class="signature">()</span>
|
|
2770
|
+
|
|
2771
|
+
</span>
|
|
2772
|
+
</h4>
|
|
2773
|
+
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
<div class="description">
|
|
2777
|
+
<p>克隆并返回一个新的视图对象<a id='clone'></a></p>
|
|
2778
|
+
</div>
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
|
|
2787
|
+
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+
<dl class="details">
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
|
|
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
|
+
</dl>
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
|
|
2838
|
+
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
|
|
2842
|
+
|
|
2843
|
+
|
|
2844
|
+
<div class='columns method-parameter'>
|
|
2845
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
2846
|
+
<div class="column is-10">
|
|
2847
|
+
|
|
2848
|
+
|
|
2849
|
+
|
|
2850
|
+
<div class="columns">
|
|
2851
|
+
|
|
2852
|
+
<div class='param-desc column is-7'><p>一个新的场景视图对象</p></div>
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
<div class='column is-5 has-text-left'>
|
|
2856
|
+
<label>类型: </label>
|
|
2857
|
+
|
|
2858
|
+
<span class="param-type"><a href="MapView.html">MapView</a></span>
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
</div>
|
|
2862
|
+
|
|
2863
|
+
</div>
|
|
2864
|
+
|
|
2865
|
+
|
|
2866
|
+
</div>
|
|
2867
|
+
</div>
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
|
|
2874
|
+
</div>
|
|
2875
|
+
|
|
2876
|
+
<div class="member">
|
|
2877
|
+
|
|
2878
|
+
|
|
2879
|
+
|
|
2880
|
+
<h4 class="name" id="destroy">
|
|
2881
|
+
<a class="href-link" href="#destroy">#</a>
|
|
2882
|
+
|
|
2883
|
+
<span class="code-name" style="font-size:30px">
|
|
2884
|
+
|
|
2885
|
+
destroy<span class="signature">()</span>
|
|
2886
|
+
|
|
2887
|
+
</span>
|
|
2888
|
+
</h4>
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
<div class="description">
|
|
2893
|
+
<p>销毁视图对象<a id='destroy'></a></p>
|
|
2894
|
+
</div>
|
|
2895
|
+
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
|
|
2903
|
+
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
<dl class="details">
|
|
2910
|
+
|
|
2911
|
+
|
|
2912
|
+
|
|
2913
|
+
|
|
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
|
+
</dl>
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
|
|
2946
|
+
|
|
2947
|
+
|
|
2948
|
+
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
|
|
2956
|
+
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
|
|
2964
|
+
|
|
2965
|
+
</div>
|
|
2966
|
+
|
|
2967
|
+
<div class="member">
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
<h4 class="name" id="flyTo">
|
|
2972
|
+
<a class="href-link" href="#flyTo">#</a>
|
|
2973
|
+
|
|
2974
|
+
<span class="code-name" style="font-size:30px">
|
|
2975
|
+
|
|
2976
|
+
flyTo<span class="signature">(options)</span>
|
|
2977
|
+
|
|
2978
|
+
</span>
|
|
2979
|
+
</h4>
|
|
2980
|
+
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
<div class="description">
|
|
2984
|
+
<p>视点跳转<a id='flyTo'></a></p>
|
|
2985
|
+
</div>
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
<h4>参数:</h4>
|
|
2997
|
+
|
|
2998
|
+
<div class="table-container">
|
|
2999
|
+
<table class="params table">
|
|
3000
|
+
<thead>
|
|
3001
|
+
<tr>
|
|
3002
|
+
|
|
3003
|
+
<th>名称</th>
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
<th>类型</th>
|
|
3007
|
+
|
|
3008
|
+
|
|
3009
|
+
<th style="min-width: 100px;">默认值</th>
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
<th class="last">描述</th>
|
|
3013
|
+
</tr>
|
|
3014
|
+
</thead>
|
|
3015
|
+
|
|
3016
|
+
<tbody>
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
|
|
3020
|
+
<tr class="deep-level-0">
|
|
3021
|
+
|
|
3022
|
+
<td class="name"><code>options</code></td>
|
|
3023
|
+
|
|
3024
|
+
|
|
3025
|
+
<td class="type">
|
|
3026
|
+
|
|
3027
|
+
</td>
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
<td class="default">
|
|
3031
|
+
|
|
3032
|
+
</td>
|
|
3033
|
+
|
|
3034
|
+
|
|
3035
|
+
<td class="description last"><p>跳转参数</p></td>
|
|
3036
|
+
</tr>
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
|
|
3040
|
+
|
|
3041
|
+
<tr class="deep-level-1">
|
|
3042
|
+
|
|
3043
|
+
<td class="name"><code>center</code></td>
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
<td class="type">
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
<span class="param-type">Array</span>
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
|
|
3053
|
+
</td>
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
<td class="default">
|
|
3057
|
+
|
|
3058
|
+
</td>
|
|
3059
|
+
|
|
3060
|
+
|
|
3061
|
+
<td class="description last"><p>跳转中心点</p></td>
|
|
3062
|
+
</tr>
|
|
3063
|
+
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
<tr class="deep-level-1">
|
|
3068
|
+
|
|
3069
|
+
<td class="name"><code>zoom</code></td>
|
|
3070
|
+
|
|
3071
|
+
|
|
3072
|
+
<td class="type">
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
<span class="param-type">Number</span>
|
|
3076
|
+
|
|
3077
|
+
|
|
3078
|
+
|
|
3079
|
+
</td>
|
|
3080
|
+
|
|
3081
|
+
|
|
3082
|
+
<td class="default">
|
|
3083
|
+
|
|
3084
|
+
1
|
|
3085
|
+
|
|
3086
|
+
</td>
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
<td class="description last"><p>地图层级</p></td>
|
|
3090
|
+
</tr>
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
<tr class="deep-level-1">
|
|
3096
|
+
|
|
3097
|
+
<td class="name"><code>extent</code></td>
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
<td class="type">
|
|
3101
|
+
|
|
3102
|
+
|
|
3103
|
+
<span class="param-type">Extent</span>
|
|
3104
|
+
|
|
3105
|
+
|
|
3106
|
+
|
|
3107
|
+
</td>
|
|
3108
|
+
|
|
3109
|
+
|
|
3110
|
+
<td class="default">
|
|
3111
|
+
|
|
3112
|
+
</td>
|
|
3113
|
+
|
|
3114
|
+
|
|
3115
|
+
<td class="description last"><p>按范围跳转</p></td>
|
|
3116
|
+
</tr>
|
|
3117
|
+
|
|
3118
|
+
|
|
3119
|
+
|
|
3120
|
+
|
|
3121
|
+
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
</tbody>
|
|
3125
|
+
</table>
|
|
3126
|
+
</div>
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
|
|
3132
|
+
|
|
3133
|
+
<dl class="details">
|
|
3134
|
+
|
|
3135
|
+
|
|
3136
|
+
|
|
3137
|
+
|
|
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
|
+
</dl>
|
|
3166
|
+
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
|
|
3170
|
+
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
|
|
3175
|
+
|
|
3176
|
+
|
|
3177
|
+
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
|
|
3183
|
+
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
<h5>示例</h5>
|
|
3190
|
+
|
|
3191
|
+
<p class="code-caption"><h7>中心点跳转示例</h7></p>
|
|
3192
|
+
|
|
3193
|
+
|
|
3194
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
3195
|
+
const { Map } = zondy
|
|
3196
|
+
const { MapView } = zondy.leaflet
|
|
3197
|
+
// ES6引入方式
|
|
3198
|
+
import { Map } from "@mapgis/webclient-common"
|
|
3199
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
3200
|
+
// 初始化图层管理容器
|
|
3201
|
+
map = new .Map();
|
|
3202
|
+
// 初始化地图视图对象
|
|
3203
|
+
mapView = new MapView({
|
|
3204
|
+
// 视图id
|
|
3205
|
+
viewId: "view-id",
|
|
3206
|
+
// 图层管理容器
|
|
3207
|
+
map: map
|
|
3208
|
+
});
|
|
3209
|
+
// 视点跳转
|
|
3210
|
+
mapView.flyTo({
|
|
3211
|
+
// 跳转中心点
|
|
3212
|
+
center: [{x}, {y}],
|
|
3213
|
+
// 地图层级
|
|
3214
|
+
zoom: {zoom}
|
|
3215
|
+
});</code></pre>
|
|
3216
|
+
|
|
3217
|
+
|
|
3218
|
+
<p class="code-caption"><h7>按范围跳转示例</h7></p>
|
|
3219
|
+
|
|
3220
|
+
|
|
3221
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
3222
|
+
const { Map } = zondy
|
|
3223
|
+
const { Extent } = zondy.geometry
|
|
3224
|
+
const { MapView } = zondy.leaflet
|
|
3225
|
+
// ES6引入方式
|
|
3226
|
+
import { Map, Extent } from "@mapgis/webclient-common"
|
|
3227
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
3228
|
+
// 初始化图层管理容器
|
|
3229
|
+
map = new Map();
|
|
3230
|
+
// 初始化地图视图对象
|
|
3231
|
+
mapView = new MapView({
|
|
3232
|
+
// 视图id
|
|
3233
|
+
viewId: "view-id",
|
|
3234
|
+
// 图层管理容器
|
|
3235
|
+
map: map
|
|
3236
|
+
});
|
|
3237
|
+
mapView.flyTo({
|
|
3238
|
+
// 范围几何
|
|
3239
|
+
extent: new Extent({
|
|
3240
|
+
"xmin":10,
|
|
3241
|
+
"xmax":210,
|
|
3242
|
+
"ymin":0,
|
|
3243
|
+
"ymax":100,
|
|
3244
|
+
})
|
|
3245
|
+
});</code></pre>
|
|
3246
|
+
|
|
3247
|
+
|
|
3248
|
+
<p class="code-caption"><h7>按范围跳转示例-拿到图层信息后跳转</h7></p>
|
|
3249
|
+
|
|
3250
|
+
|
|
3251
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
3252
|
+
const { IGSMapImageLayer } = zondy.layer
|
|
3253
|
+
// ES6引入方式
|
|
3254
|
+
import { IGSMapImageLayer } from "@mapgis/webclient-common"
|
|
3255
|
+
const igsMapImageLayer = new IGSMapImageLayer({
|
|
3256
|
+
url: 'http://192.168.82.89:8089/igs/rest/services/Map/Hubei4326/MapServer'
|
|
3257
|
+
});
|
|
3258
|
+
map.add(igsMapImageLayer);
|
|
3259
|
+
// 图层加载完毕
|
|
3260
|
+
igsMapImageLayer.on('layer-view-created', function (result) {
|
|
3261
|
+
console.log("加载完毕:", result.layer)
|
|
3262
|
+
//视点跳转
|
|
3263
|
+
mapView.flyTo({
|
|
3264
|
+
extent: result.layer.extent
|
|
3265
|
+
});
|
|
3266
|
+
})</code></pre>
|
|
3267
|
+
|
|
3268
|
+
|
|
3269
|
+
|
|
3270
|
+
</div>
|
|
3271
|
+
|
|
3272
|
+
<div class="member">
|
|
3273
|
+
|
|
3274
|
+
|
|
3275
|
+
|
|
3276
|
+
<h4 class="name" id="getCenter">
|
|
3277
|
+
<a class="href-link" href="#getCenter">#</a>
|
|
3278
|
+
|
|
3279
|
+
<span class="code-name" style="font-size:30px">
|
|
3280
|
+
|
|
3281
|
+
getCenter<span class="signature">()</span>
|
|
3282
|
+
|
|
3283
|
+
</span>
|
|
3284
|
+
</h4>
|
|
3285
|
+
|
|
3286
|
+
|
|
3287
|
+
|
|
3288
|
+
<div class="description">
|
|
3289
|
+
<p>获取当前视图的中心点<a id='getCenter'></a></p>
|
|
3290
|
+
</div>
|
|
3291
|
+
|
|
3292
|
+
|
|
3293
|
+
|
|
3294
|
+
|
|
3295
|
+
|
|
3296
|
+
|
|
3297
|
+
|
|
3298
|
+
|
|
3299
|
+
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
|
|
3303
|
+
|
|
3304
|
+
|
|
3305
|
+
<dl class="details">
|
|
3306
|
+
|
|
3307
|
+
|
|
3308
|
+
|
|
3309
|
+
|
|
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
|
+
</dl>
|
|
3338
|
+
|
|
3339
|
+
|
|
3340
|
+
|
|
3341
|
+
|
|
3342
|
+
|
|
3343
|
+
|
|
3344
|
+
|
|
3345
|
+
|
|
3346
|
+
|
|
3347
|
+
|
|
3348
|
+
|
|
3349
|
+
|
|
3350
|
+
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
|
|
3354
|
+
|
|
3355
|
+
|
|
3356
|
+
<div class='columns method-parameter'>
|
|
3357
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3358
|
+
<div class="column is-10">
|
|
3359
|
+
|
|
3360
|
+
|
|
3361
|
+
|
|
3362
|
+
<div class="columns">
|
|
3363
|
+
|
|
3364
|
+
<div class='param-desc column is-7'><p>中心点对象</p></div>
|
|
3365
|
+
|
|
3366
|
+
|
|
3367
|
+
<div class='column is-5 has-text-left'>
|
|
3368
|
+
<label>类型: </label>
|
|
3369
|
+
|
|
3370
|
+
<span class="param-type">Object</span>
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
</div>
|
|
3374
|
+
|
|
3375
|
+
</div>
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
</div>
|
|
3379
|
+
</div>
|
|
3380
|
+
|
|
3381
|
+
|
|
3382
|
+
|
|
3383
|
+
|
|
3384
|
+
|
|
3385
|
+
|
|
3386
|
+
</div>
|
|
3387
|
+
|
|
3388
|
+
<div class="member">
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
<h4 class="name" id="getExtent">
|
|
3393
|
+
<a class="href-link" href="#getExtent">#</a>
|
|
3394
|
+
|
|
3395
|
+
<span class="code-name" style="font-size:30px">
|
|
3396
|
+
|
|
3397
|
+
getExtent<span class="signature">()</span>
|
|
3398
|
+
|
|
3399
|
+
</span>
|
|
3400
|
+
</h4>
|
|
3401
|
+
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
<div class="description">
|
|
3405
|
+
<p>获取当前视图的地理范围<a id='getExtent'></a></p>
|
|
3406
|
+
</div>
|
|
3407
|
+
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
|
|
3411
|
+
|
|
3412
|
+
|
|
3413
|
+
|
|
3414
|
+
|
|
3415
|
+
|
|
3416
|
+
|
|
3417
|
+
|
|
3418
|
+
|
|
3419
|
+
|
|
3420
|
+
|
|
3421
|
+
<dl class="details">
|
|
3422
|
+
|
|
3423
|
+
|
|
3424
|
+
|
|
3425
|
+
|
|
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
|
+
</dl>
|
|
3454
|
+
|
|
3455
|
+
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
|
|
3463
|
+
|
|
3464
|
+
|
|
3465
|
+
|
|
3466
|
+
|
|
3467
|
+
|
|
3468
|
+
|
|
3469
|
+
|
|
3470
|
+
|
|
3471
|
+
|
|
3472
|
+
<div class='columns method-parameter'>
|
|
3473
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3474
|
+
<div class="column is-10">
|
|
3475
|
+
|
|
3476
|
+
|
|
3477
|
+
|
|
3478
|
+
<div class="columns">
|
|
3479
|
+
|
|
3480
|
+
<div class='param-desc column is-7'><p>获取当前视图的地理范围</p></div>
|
|
3481
|
+
|
|
3482
|
+
|
|
3483
|
+
<div class='column is-5 has-text-left'>
|
|
3484
|
+
<label>类型: </label>
|
|
3485
|
+
|
|
3486
|
+
<span class="param-type">Extent</span>
|
|
3487
|
+
|
|
3488
|
+
|
|
3489
|
+
</div>
|
|
3490
|
+
|
|
3491
|
+
</div>
|
|
3492
|
+
|
|
3493
|
+
|
|
3494
|
+
</div>
|
|
3495
|
+
</div>
|
|
3496
|
+
|
|
3497
|
+
|
|
3498
|
+
|
|
3499
|
+
|
|
3500
|
+
|
|
3501
|
+
|
|
3502
|
+
</div>
|
|
3503
|
+
|
|
3504
|
+
<div class="member">
|
|
3505
|
+
|
|
3506
|
+
|
|
3507
|
+
|
|
3508
|
+
<h4 class="name" id="getMaxZoom">
|
|
3509
|
+
<a class="href-link" href="#getMaxZoom">#</a>
|
|
3510
|
+
|
|
3511
|
+
<span class="code-name" style="font-size:30px">
|
|
3512
|
+
|
|
3513
|
+
getMaxZoom<span class="signature">()</span>
|
|
3514
|
+
|
|
3515
|
+
</span>
|
|
3516
|
+
</h4>
|
|
3517
|
+
|
|
3518
|
+
|
|
3519
|
+
|
|
3520
|
+
<div class="description">
|
|
3521
|
+
<p>获取最大缩放级数<a id='getMaxZoom'></a></p>
|
|
3522
|
+
</div>
|
|
3523
|
+
|
|
3524
|
+
|
|
3525
|
+
|
|
3526
|
+
|
|
3527
|
+
|
|
3528
|
+
|
|
3529
|
+
|
|
3530
|
+
|
|
3531
|
+
|
|
3532
|
+
|
|
3533
|
+
|
|
3534
|
+
|
|
3535
|
+
|
|
3536
|
+
|
|
3537
|
+
<dl class="details">
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
|
|
3541
|
+
|
|
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
|
+
</dl>
|
|
3570
|
+
|
|
3571
|
+
|
|
3572
|
+
|
|
3573
|
+
|
|
3574
|
+
|
|
3575
|
+
|
|
3576
|
+
|
|
3577
|
+
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
|
|
3581
|
+
|
|
3582
|
+
|
|
3583
|
+
|
|
3584
|
+
|
|
3585
|
+
|
|
3586
|
+
|
|
3587
|
+
|
|
3588
|
+
<div class='columns method-parameter'>
|
|
3589
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3590
|
+
<div class="column is-10">
|
|
3591
|
+
|
|
3592
|
+
|
|
3593
|
+
|
|
3594
|
+
<div class="columns">
|
|
3595
|
+
|
|
3596
|
+
<div class='param-desc column is-7'><p>最大缩放级数</p></div>
|
|
3597
|
+
|
|
3598
|
+
|
|
3599
|
+
<div class='column is-5 has-text-left'>
|
|
3600
|
+
<label>类型: </label>
|
|
3601
|
+
|
|
3602
|
+
<span class="param-type">Number</span>
|
|
3603
|
+
|
|
3604
|
+
|
|
3605
|
+
</div>
|
|
3606
|
+
|
|
3607
|
+
</div>
|
|
3608
|
+
|
|
3609
|
+
|
|
3610
|
+
</div>
|
|
3611
|
+
</div>
|
|
3612
|
+
|
|
3613
|
+
|
|
3614
|
+
|
|
3615
|
+
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
</div>
|
|
3619
|
+
|
|
3620
|
+
<div class="member">
|
|
3621
|
+
|
|
3622
|
+
|
|
3623
|
+
|
|
3624
|
+
<h4 class="name" id="getMinZoom">
|
|
3625
|
+
<a class="href-link" href="#getMinZoom">#</a>
|
|
3626
|
+
|
|
3627
|
+
<span class="code-name" style="font-size:30px">
|
|
3628
|
+
|
|
3629
|
+
getMinZoom<span class="signature">()</span>
|
|
3630
|
+
|
|
3631
|
+
</span>
|
|
3632
|
+
</h4>
|
|
3633
|
+
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
<div class="description">
|
|
3637
|
+
<p>获取最小缩放级数<a id='getMinZoom'></a></p>
|
|
3638
|
+
</div>
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
|
|
3645
|
+
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
|
|
3651
|
+
|
|
3652
|
+
|
|
3653
|
+
<dl class="details">
|
|
3654
|
+
|
|
3655
|
+
|
|
3656
|
+
|
|
3657
|
+
|
|
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
|
+
</dl>
|
|
3686
|
+
|
|
3687
|
+
|
|
3688
|
+
|
|
3689
|
+
|
|
3690
|
+
|
|
3691
|
+
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
|
|
3697
|
+
|
|
3698
|
+
|
|
3699
|
+
|
|
3700
|
+
|
|
3701
|
+
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
<div class='columns method-parameter'>
|
|
3705
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3706
|
+
<div class="column is-10">
|
|
3707
|
+
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
<div class="columns">
|
|
3711
|
+
|
|
3712
|
+
<div class='param-desc column is-7'><p>最小缩放级数</p></div>
|
|
3713
|
+
|
|
3714
|
+
|
|
3715
|
+
<div class='column is-5 has-text-left'>
|
|
3716
|
+
<label>类型: </label>
|
|
3717
|
+
|
|
3718
|
+
<span class="param-type">Number</span>
|
|
3719
|
+
|
|
3720
|
+
|
|
3721
|
+
</div>
|
|
3722
|
+
|
|
3723
|
+
</div>
|
|
3724
|
+
|
|
3725
|
+
|
|
3726
|
+
</div>
|
|
3727
|
+
</div>
|
|
3728
|
+
|
|
3729
|
+
|
|
3730
|
+
|
|
3731
|
+
|
|
3732
|
+
|
|
3733
|
+
|
|
3734
|
+
</div>
|
|
3735
|
+
|
|
3736
|
+
<div class="member">
|
|
3737
|
+
|
|
3738
|
+
|
|
3739
|
+
|
|
3740
|
+
<h4 class="name" id="getPixelCenter">
|
|
3741
|
+
<a class="href-link" href="#getPixelCenter">#</a>
|
|
3742
|
+
|
|
3743
|
+
<span class="code-name" style="font-size:30px">
|
|
3744
|
+
|
|
3745
|
+
getPixelCenter<span class="signature">()</span>
|
|
3746
|
+
|
|
3747
|
+
</span>
|
|
3748
|
+
</h4>
|
|
3749
|
+
|
|
3750
|
+
|
|
3751
|
+
|
|
3752
|
+
<div class="description">
|
|
3753
|
+
<p>获取当前视图的像素中心点<a id='getPixelCenter'></a></p>
|
|
3754
|
+
</div>
|
|
3755
|
+
|
|
3756
|
+
|
|
3757
|
+
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
|
|
3762
|
+
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
<dl class="details">
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
|
|
3773
|
+
|
|
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
|
+
</dl>
|
|
3802
|
+
|
|
3803
|
+
|
|
3804
|
+
|
|
3805
|
+
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
|
|
3816
|
+
|
|
3817
|
+
|
|
3818
|
+
|
|
3819
|
+
|
|
3820
|
+
<div class='columns method-parameter'>
|
|
3821
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3822
|
+
<div class="column is-10">
|
|
3823
|
+
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
<div class="columns">
|
|
3827
|
+
|
|
3828
|
+
<div class='param-desc column is-7'><p>像素中心点对象</p></div>
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
<div class='column is-5 has-text-left'>
|
|
3832
|
+
<label>类型: </label>
|
|
3833
|
+
|
|
3834
|
+
<span class="param-type">Object</span>
|
|
3835
|
+
|
|
3836
|
+
|
|
3837
|
+
</div>
|
|
3838
|
+
|
|
3839
|
+
</div>
|
|
3840
|
+
|
|
3841
|
+
|
|
3842
|
+
</div>
|
|
3843
|
+
</div>
|
|
3844
|
+
|
|
3845
|
+
|
|
3846
|
+
|
|
3847
|
+
|
|
3848
|
+
|
|
3849
|
+
|
|
3850
|
+
</div>
|
|
3851
|
+
|
|
3852
|
+
<div class="member">
|
|
3853
|
+
|
|
3854
|
+
|
|
3855
|
+
|
|
3856
|
+
<h4 class="name" id="getPixelExtent">
|
|
3857
|
+
<a class="href-link" href="#getPixelExtent">#</a>
|
|
3858
|
+
|
|
3859
|
+
<span class="code-name" style="font-size:30px">
|
|
3860
|
+
|
|
3861
|
+
getPixelExtent<span class="signature">()</span>
|
|
3862
|
+
|
|
3863
|
+
</span>
|
|
3864
|
+
</h4>
|
|
3865
|
+
|
|
3866
|
+
|
|
3867
|
+
|
|
3868
|
+
<div class="description">
|
|
3869
|
+
<p>获取当前视图的宽高范围,单位像素<a id='getPixelExtent'></a></p>
|
|
3870
|
+
</div>
|
|
3871
|
+
|
|
3872
|
+
|
|
3873
|
+
|
|
3874
|
+
|
|
3875
|
+
|
|
3876
|
+
|
|
3877
|
+
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
|
|
3881
|
+
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
|
|
3885
|
+
<dl class="details">
|
|
3886
|
+
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
|
|
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
|
+
</dl>
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
|
|
3926
|
+
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
|
|
3930
|
+
|
|
3931
|
+
|
|
3932
|
+
|
|
3933
|
+
|
|
3934
|
+
|
|
3935
|
+
|
|
3936
|
+
<div class='columns method-parameter'>
|
|
3937
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
3938
|
+
<div class="column is-10">
|
|
3939
|
+
|
|
3940
|
+
|
|
3941
|
+
|
|
3942
|
+
<div class="columns">
|
|
3943
|
+
|
|
3944
|
+
<div class='param-desc column is-7'><p>视图宽高对象</p></div>
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
<div class='column is-5 has-text-left'>
|
|
3948
|
+
<label>类型: </label>
|
|
3949
|
+
|
|
3950
|
+
<span class="param-type">Object</span>
|
|
3951
|
+
|
|
3952
|
+
|
|
3953
|
+
</div>
|
|
3954
|
+
|
|
3955
|
+
</div>
|
|
3956
|
+
|
|
3957
|
+
|
|
3958
|
+
</div>
|
|
3959
|
+
</div>
|
|
3960
|
+
|
|
3961
|
+
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
|
|
3965
|
+
|
|
3966
|
+
</div>
|
|
3967
|
+
|
|
3968
|
+
<div class="member">
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
|
|
3972
|
+
<h4 class="name" id="getPixelWorldExtent">
|
|
3973
|
+
<a class="href-link" href="#getPixelWorldExtent">#</a>
|
|
3974
|
+
|
|
3975
|
+
<span class="code-name" style="font-size:30px">
|
|
3976
|
+
|
|
3977
|
+
getPixelWorldExtent<span class="signature">()</span>
|
|
3978
|
+
|
|
3979
|
+
</span>
|
|
3980
|
+
</h4>
|
|
3981
|
+
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
<div class="description">
|
|
3985
|
+
<p>获取当前视图的像素范围<a id='getPixelWorldExtent'></a></p>
|
|
3986
|
+
</div>
|
|
3987
|
+
|
|
3988
|
+
|
|
3989
|
+
|
|
3990
|
+
|
|
3991
|
+
|
|
3992
|
+
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
|
|
3999
|
+
|
|
4000
|
+
|
|
4001
|
+
<dl class="details">
|
|
4002
|
+
|
|
4003
|
+
|
|
4004
|
+
|
|
4005
|
+
|
|
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
|
+
</dl>
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
|
|
4039
|
+
|
|
4040
|
+
|
|
4041
|
+
|
|
4042
|
+
|
|
4043
|
+
|
|
4044
|
+
|
|
4045
|
+
|
|
4046
|
+
|
|
4047
|
+
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
|
|
4051
|
+
|
|
4052
|
+
<div class='columns method-parameter'>
|
|
4053
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
4054
|
+
<div class="column is-10">
|
|
4055
|
+
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
<div class="columns">
|
|
4059
|
+
|
|
4060
|
+
<div class='param-desc column is-7'><p>当前视图的像素范围</p></div>
|
|
4061
|
+
|
|
4062
|
+
|
|
4063
|
+
<div class='column is-5 has-text-left'>
|
|
4064
|
+
<label>类型: </label>
|
|
4065
|
+
|
|
4066
|
+
<span class="param-type">Object</span>
|
|
4067
|
+
|
|
4068
|
+
|
|
4069
|
+
</div>
|
|
4070
|
+
|
|
4071
|
+
</div>
|
|
4072
|
+
|
|
4073
|
+
|
|
4074
|
+
</div>
|
|
4075
|
+
</div>
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
|
|
4079
|
+
|
|
4080
|
+
|
|
4081
|
+
|
|
4082
|
+
</div>
|
|
4083
|
+
|
|
4084
|
+
<div class="member">
|
|
4085
|
+
|
|
4086
|
+
|
|
4087
|
+
|
|
4088
|
+
<h4 class="name" id="getScale">
|
|
4089
|
+
<a class="href-link" href="#getScale">#</a>
|
|
4090
|
+
|
|
4091
|
+
<span class="code-name" style="font-size:30px">
|
|
4092
|
+
|
|
4093
|
+
getScale<span class="signature">()</span>
|
|
4094
|
+
|
|
4095
|
+
</span>
|
|
4096
|
+
</h4>
|
|
4097
|
+
|
|
4098
|
+
|
|
4099
|
+
|
|
4100
|
+
<div class="description">
|
|
4101
|
+
<p><a id='getScale'></a>
|
|
4102
|
+
获取当前比例尺</p>
|
|
4103
|
+
</div>
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
|
|
4109
|
+
|
|
4110
|
+
|
|
4111
|
+
|
|
4112
|
+
|
|
4113
|
+
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
|
|
4117
|
+
|
|
4118
|
+
<dl class="details">
|
|
4119
|
+
|
|
4120
|
+
|
|
4121
|
+
|
|
4122
|
+
|
|
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
|
+
</dl>
|
|
4151
|
+
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
|
|
4156
|
+
|
|
4157
|
+
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
|
|
4161
|
+
|
|
4162
|
+
|
|
4163
|
+
|
|
4164
|
+
|
|
4165
|
+
|
|
4166
|
+
|
|
4167
|
+
|
|
4168
|
+
|
|
4169
|
+
<div class='columns method-parameter'>
|
|
4170
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
4171
|
+
<div class="column is-10">
|
|
4172
|
+
|
|
4173
|
+
|
|
4174
|
+
|
|
4175
|
+
<div class="columns">
|
|
4176
|
+
|
|
4177
|
+
<div class='param-desc column is-7'><p>比例尺 实际10000米:地图1米</p></div>
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
<div class='column is-5 has-text-left'>
|
|
4181
|
+
<label>类型: </label>
|
|
4182
|
+
|
|
4183
|
+
<span class="param-type">Number</span>
|
|
4184
|
+
|
|
4185
|
+
|
|
4186
|
+
</div>
|
|
4187
|
+
|
|
4188
|
+
</div>
|
|
4189
|
+
|
|
4190
|
+
|
|
4191
|
+
</div>
|
|
4192
|
+
</div>
|
|
4193
|
+
|
|
4194
|
+
|
|
4195
|
+
|
|
4196
|
+
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
</div>
|
|
4200
|
+
|
|
4201
|
+
<div class="member">
|
|
4202
|
+
|
|
4203
|
+
|
|
4204
|
+
|
|
4205
|
+
<h4 class="name" id="getSize">
|
|
4206
|
+
<a class="href-link" href="#getSize">#</a>
|
|
4207
|
+
|
|
4208
|
+
<span class="code-name" style="font-size:30px">
|
|
4209
|
+
|
|
4210
|
+
getSize<span class="signature">()</span>
|
|
4211
|
+
|
|
4212
|
+
</span>
|
|
4213
|
+
</h4>
|
|
4214
|
+
|
|
4215
|
+
|
|
4216
|
+
|
|
4217
|
+
<div class="description">
|
|
4218
|
+
<p>获取当前视图容器的宽高,单位像素<a id='getSize'></a></p>
|
|
4219
|
+
</div>
|
|
4220
|
+
|
|
4221
|
+
|
|
4222
|
+
|
|
4223
|
+
|
|
4224
|
+
|
|
4225
|
+
|
|
4226
|
+
|
|
4227
|
+
|
|
4228
|
+
|
|
4229
|
+
|
|
4230
|
+
|
|
4231
|
+
|
|
4232
|
+
|
|
4233
|
+
|
|
4234
|
+
<dl class="details">
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
|
|
4238
|
+
|
|
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
|
+
</dl>
|
|
4267
|
+
|
|
4268
|
+
|
|
4269
|
+
|
|
4270
|
+
|
|
4271
|
+
|
|
4272
|
+
|
|
4273
|
+
|
|
4274
|
+
|
|
4275
|
+
|
|
4276
|
+
|
|
4277
|
+
|
|
4278
|
+
|
|
4279
|
+
|
|
4280
|
+
|
|
4281
|
+
|
|
4282
|
+
|
|
4283
|
+
|
|
4284
|
+
|
|
4285
|
+
<div class='columns method-parameter'>
|
|
4286
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
4287
|
+
<div class="column is-10">
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
|
|
4291
|
+
<div class="columns">
|
|
4292
|
+
|
|
4293
|
+
<div class='param-desc column is-7'><p>当前视图容器的宽高对象</p></div>
|
|
4294
|
+
|
|
4295
|
+
|
|
4296
|
+
<div class='column is-5 has-text-left'>
|
|
4297
|
+
<label>类型: </label>
|
|
4298
|
+
|
|
4299
|
+
<span class="param-type">Object</span>
|
|
4300
|
+
|
|
4301
|
+
|
|
4302
|
+
</div>
|
|
4303
|
+
|
|
4304
|
+
</div>
|
|
4305
|
+
|
|
4306
|
+
|
|
4307
|
+
</div>
|
|
4308
|
+
</div>
|
|
4309
|
+
|
|
4310
|
+
|
|
4311
|
+
|
|
4312
|
+
|
|
4313
|
+
|
|
4314
|
+
|
|
4315
|
+
</div>
|
|
4316
|
+
|
|
4317
|
+
<div class="member">
|
|
4318
|
+
|
|
4319
|
+
|
|
4320
|
+
|
|
4321
|
+
<h4 class="name" id="getZoom">
|
|
4322
|
+
<a class="href-link" href="#getZoom">#</a>
|
|
4323
|
+
|
|
4324
|
+
<span class="code-name" style="font-size:30px">
|
|
4325
|
+
|
|
4326
|
+
getZoom<span class="signature">()</span>
|
|
4327
|
+
|
|
4328
|
+
</span>
|
|
4329
|
+
</h4>
|
|
4330
|
+
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
<div class="description">
|
|
4334
|
+
<p>获取当前缩放级数<a id='getZoom'></a></p>
|
|
4335
|
+
</div>
|
|
4336
|
+
|
|
4337
|
+
|
|
4338
|
+
|
|
4339
|
+
|
|
4340
|
+
|
|
4341
|
+
|
|
4342
|
+
|
|
4343
|
+
|
|
4344
|
+
|
|
4345
|
+
|
|
4346
|
+
|
|
4347
|
+
|
|
4348
|
+
|
|
4349
|
+
|
|
4350
|
+
<dl class="details">
|
|
4351
|
+
|
|
4352
|
+
|
|
4353
|
+
|
|
4354
|
+
|
|
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
|
+
</dl>
|
|
4383
|
+
|
|
4384
|
+
|
|
4385
|
+
|
|
4386
|
+
|
|
4387
|
+
|
|
4388
|
+
|
|
4389
|
+
|
|
4390
|
+
|
|
4391
|
+
|
|
4392
|
+
|
|
4393
|
+
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
|
+
|
|
4399
|
+
|
|
4400
|
+
|
|
4401
|
+
<div class='columns method-parameter'>
|
|
4402
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
4403
|
+
<div class="column is-10">
|
|
4404
|
+
|
|
4405
|
+
|
|
4406
|
+
|
|
4407
|
+
<div class="columns">
|
|
4408
|
+
|
|
4409
|
+
<div class='param-desc column is-7'><p>当前缩放级数</p></div>
|
|
4410
|
+
|
|
4411
|
+
|
|
4412
|
+
<div class='column is-5 has-text-left'>
|
|
4413
|
+
<label>类型: </label>
|
|
4414
|
+
|
|
4415
|
+
<span class="param-type">Number</span>
|
|
4416
|
+
|
|
4417
|
+
|
|
4418
|
+
</div>
|
|
4419
|
+
|
|
4420
|
+
</div>
|
|
4421
|
+
|
|
4422
|
+
|
|
4423
|
+
</div>
|
|
4424
|
+
</div>
|
|
4425
|
+
|
|
4426
|
+
|
|
4427
|
+
|
|
4428
|
+
|
|
4429
|
+
|
|
4430
|
+
|
|
4431
|
+
</div>
|
|
4432
|
+
|
|
4433
|
+
<div class="member">
|
|
4434
|
+
|
|
4435
|
+
|
|
4436
|
+
|
|
4437
|
+
<h4 class="name" id="getZoomByExtent">
|
|
4438
|
+
<a class="href-link" href="#getZoomByExtent">#</a>
|
|
4439
|
+
|
|
4440
|
+
<span class="code-name" style="font-size:30px">
|
|
4441
|
+
|
|
4442
|
+
getZoomByExtent<span class="signature">(value)</span>
|
|
4443
|
+
|
|
4444
|
+
</span>
|
|
4445
|
+
</h4>
|
|
4446
|
+
|
|
4447
|
+
|
|
4448
|
+
|
|
4449
|
+
<div class="description">
|
|
4450
|
+
<p><a id='getZoomByExtent'></a>
|
|
4451
|
+
根据视野范围获取对应的层级</p>
|
|
4452
|
+
</div>
|
|
4453
|
+
|
|
4454
|
+
|
|
4455
|
+
|
|
4456
|
+
|
|
4457
|
+
|
|
4458
|
+
|
|
4459
|
+
|
|
4460
|
+
|
|
4461
|
+
|
|
4462
|
+
|
|
4463
|
+
<h4>参数:</h4>
|
|
4464
|
+
|
|
4465
|
+
<div class="table-container">
|
|
4466
|
+
<table class="params table">
|
|
4467
|
+
<thead>
|
|
4468
|
+
<tr>
|
|
4469
|
+
|
|
4470
|
+
<th>名称</th>
|
|
4471
|
+
|
|
4472
|
+
|
|
4473
|
+
<th>类型</th>
|
|
4474
|
+
|
|
4475
|
+
|
|
4476
|
+
|
|
4477
|
+
<th class="last">描述</th>
|
|
4478
|
+
</tr>
|
|
4479
|
+
</thead>
|
|
4480
|
+
|
|
4481
|
+
<tbody>
|
|
4482
|
+
|
|
4483
|
+
|
|
4484
|
+
|
|
4485
|
+
<tr class="deep-level-0">
|
|
4486
|
+
|
|
4487
|
+
<td class="name"><code>value</code></td>
|
|
4488
|
+
|
|
4489
|
+
|
|
4490
|
+
<td class="type">
|
|
4491
|
+
|
|
4492
|
+
|
|
4493
|
+
<span class="param-type">Extent</span>
|
|
4494
|
+
|
|
4495
|
+
|
|
4496
|
+
|
|
4497
|
+
</td>
|
|
4498
|
+
|
|
4499
|
+
|
|
4500
|
+
|
|
4501
|
+
<td class="description last"><p>范围对象</p></td>
|
|
4502
|
+
</tr>
|
|
4503
|
+
|
|
4504
|
+
|
|
4505
|
+
|
|
4506
|
+
|
|
4507
|
+
</tbody>
|
|
4508
|
+
</table>
|
|
4509
|
+
</div>
|
|
4510
|
+
|
|
4511
|
+
|
|
4512
|
+
|
|
4513
|
+
|
|
4514
|
+
|
|
4515
|
+
|
|
4516
|
+
<dl class="details">
|
|
4517
|
+
|
|
4518
|
+
|
|
4519
|
+
|
|
4520
|
+
|
|
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
|
+
</dl>
|
|
4549
|
+
|
|
4550
|
+
|
|
4551
|
+
|
|
4552
|
+
|
|
4553
|
+
|
|
4554
|
+
|
|
4555
|
+
|
|
4556
|
+
|
|
4557
|
+
|
|
4558
|
+
|
|
4559
|
+
|
|
4560
|
+
|
|
4561
|
+
|
|
4562
|
+
|
|
4563
|
+
|
|
4564
|
+
|
|
4565
|
+
|
|
4566
|
+
|
|
4567
|
+
<div class='columns method-parameter'>
|
|
4568
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
4569
|
+
<div class="column is-10">
|
|
4570
|
+
|
|
4571
|
+
|
|
4572
|
+
|
|
4573
|
+
<div class="columns">
|
|
4574
|
+
|
|
4575
|
+
<div class='param-desc column is-7'><p>视野范围获取对应的层级</p></div>
|
|
4576
|
+
|
|
4577
|
+
|
|
4578
|
+
<div class='column is-5 has-text-left'>
|
|
4579
|
+
<label>类型: </label>
|
|
4580
|
+
|
|
4581
|
+
<span class="param-type">Number</span>
|
|
4582
|
+
|
|
4583
|
+
|
|
4584
|
+
</div>
|
|
4585
|
+
|
|
4586
|
+
</div>
|
|
4587
|
+
|
|
4588
|
+
|
|
4589
|
+
</div>
|
|
4590
|
+
</div>
|
|
4591
|
+
|
|
4592
|
+
|
|
4593
|
+
|
|
4594
|
+
|
|
4595
|
+
|
|
4596
|
+
|
|
4597
|
+
</div>
|
|
4598
|
+
|
|
4599
|
+
<div class="member">
|
|
4600
|
+
|
|
4601
|
+
|
|
4602
|
+
|
|
4603
|
+
<h4 class="name" id="goTo">
|
|
4604
|
+
<a class="href-link" href="#goTo">#</a>
|
|
4605
|
+
|
|
4606
|
+
<span class="code-name" style="font-size:30px">
|
|
4607
|
+
|
|
4608
|
+
goTo<span class="signature">(goToTarget, options)</span>
|
|
4609
|
+
|
|
4610
|
+
</span>
|
|
4611
|
+
</h4>
|
|
4612
|
+
|
|
4613
|
+
|
|
4614
|
+
|
|
4615
|
+
<div class="description">
|
|
4616
|
+
<p>视点跳转为给定的目标<a id='goTo'></a></p>
|
|
4617
|
+
</div>
|
|
4618
|
+
|
|
4619
|
+
|
|
4620
|
+
|
|
4621
|
+
|
|
4622
|
+
|
|
4623
|
+
|
|
4624
|
+
|
|
4625
|
+
|
|
4626
|
+
|
|
4627
|
+
|
|
4628
|
+
<h4>参数:</h4>
|
|
4629
|
+
|
|
4630
|
+
<div class="table-container">
|
|
4631
|
+
<table class="params table">
|
|
4632
|
+
<thead>
|
|
4633
|
+
<tr>
|
|
4634
|
+
|
|
4635
|
+
<th>名称</th>
|
|
4636
|
+
|
|
4637
|
+
|
|
4638
|
+
<th>类型</th>
|
|
4639
|
+
|
|
4640
|
+
|
|
4641
|
+
<th style="min-width: 100px;">默认值</th>
|
|
4642
|
+
|
|
4643
|
+
|
|
4644
|
+
<th class="last">描述</th>
|
|
4645
|
+
</tr>
|
|
4646
|
+
</thead>
|
|
4647
|
+
|
|
4648
|
+
<tbody>
|
|
4649
|
+
|
|
4650
|
+
|
|
4651
|
+
|
|
4652
|
+
<tr class="deep-level-0">
|
|
4653
|
+
|
|
4654
|
+
<td class="name"><code>goToTarget</code></td>
|
|
4655
|
+
|
|
4656
|
+
|
|
4657
|
+
<td class="type">
|
|
4658
|
+
|
|
4659
|
+
</td>
|
|
4660
|
+
|
|
4661
|
+
|
|
4662
|
+
<td class="default">
|
|
4663
|
+
|
|
4664
|
+
</td>
|
|
4665
|
+
|
|
4666
|
+
|
|
4667
|
+
<td class="description last"><p>跳转参数</p></td>
|
|
4668
|
+
</tr>
|
|
4669
|
+
|
|
4670
|
+
|
|
4671
|
+
|
|
4672
|
+
|
|
4673
|
+
<tr class="deep-level-1">
|
|
4674
|
+
|
|
4675
|
+
<td class="name"><code>center</code></td>
|
|
4676
|
+
|
|
4677
|
+
|
|
4678
|
+
<td class="type">
|
|
4679
|
+
|
|
4680
|
+
|
|
4681
|
+
<span class="param-type">Point</span>
|
|
4682
|
+
|
|
|
4683
|
+
|
|
4684
|
+
<span class="param-type">Array</span>
|
|
4685
|
+
|
|
4686
|
+
|
|
4687
|
+
|
|
4688
|
+
</td>
|
|
4689
|
+
|
|
4690
|
+
|
|
4691
|
+
<td class="default">
|
|
4692
|
+
|
|
4693
|
+
</td>
|
|
4694
|
+
|
|
4695
|
+
|
|
4696
|
+
<td class="description last"><p>视图跳转中心点</p></td>
|
|
4697
|
+
</tr>
|
|
4698
|
+
|
|
4699
|
+
|
|
4700
|
+
|
|
4701
|
+
|
|
4702
|
+
<tr class="deep-level-1">
|
|
4703
|
+
|
|
4704
|
+
<td class="name"><code>zoom</code></td>
|
|
4705
|
+
|
|
4706
|
+
|
|
4707
|
+
<td class="type">
|
|
4708
|
+
|
|
4709
|
+
|
|
4710
|
+
<span class="param-type">Number</span>
|
|
4711
|
+
|
|
4712
|
+
|
|
4713
|
+
|
|
4714
|
+
</td>
|
|
4715
|
+
|
|
4716
|
+
|
|
4717
|
+
<td class="default">
|
|
4718
|
+
|
|
4719
|
+
</td>
|
|
4720
|
+
|
|
4721
|
+
|
|
4722
|
+
<td class="description last"><p>视图跳转层级</p></td>
|
|
4723
|
+
</tr>
|
|
4724
|
+
|
|
4725
|
+
|
|
4726
|
+
|
|
4727
|
+
|
|
4728
|
+
<tr class="deep-level-1">
|
|
4729
|
+
|
|
4730
|
+
<td class="name"><code>scale</code></td>
|
|
4731
|
+
|
|
4732
|
+
|
|
4733
|
+
<td class="type">
|
|
4734
|
+
|
|
4735
|
+
|
|
4736
|
+
<span class="param-type">Number</span>
|
|
4737
|
+
|
|
4738
|
+
|
|
4739
|
+
|
|
4740
|
+
</td>
|
|
4741
|
+
|
|
4742
|
+
|
|
4743
|
+
<td class="default">
|
|
4744
|
+
|
|
4745
|
+
</td>
|
|
4746
|
+
|
|
4747
|
+
|
|
4748
|
+
<td class="description last"><p>视图跳转比例尺</p></td>
|
|
4749
|
+
</tr>
|
|
4750
|
+
|
|
4751
|
+
|
|
4752
|
+
|
|
4753
|
+
|
|
4754
|
+
<tr class="deep-level-1">
|
|
4755
|
+
|
|
4756
|
+
<td class="name"><code>target</code></td>
|
|
4757
|
+
|
|
4758
|
+
|
|
4759
|
+
<td class="type">
|
|
4760
|
+
|
|
4761
|
+
|
|
4762
|
+
<span class="param-type">Geometry</span>
|
|
4763
|
+
|
|
|
4764
|
+
|
|
4765
|
+
<span class="param-type">Array.<Geometry></span>
|
|
4766
|
+
|
|
|
4767
|
+
|
|
4768
|
+
<span class="param-type">Collection.<Geometry></span>
|
|
4769
|
+
|
|
4770
|
+
|
|
4771
|
+
|
|
4772
|
+
</td>
|
|
4773
|
+
|
|
4774
|
+
|
|
4775
|
+
<td class="default">
|
|
4776
|
+
|
|
4777
|
+
</td>
|
|
4778
|
+
|
|
4779
|
+
|
|
4780
|
+
<td class="description last"><p>按范围跳转</p></td>
|
|
4781
|
+
</tr>
|
|
4782
|
+
|
|
4783
|
+
|
|
4784
|
+
|
|
4785
|
+
|
|
4786
|
+
|
|
4787
|
+
|
|
4788
|
+
|
|
4789
|
+
|
|
4790
|
+
|
|
4791
|
+
<tr class="deep-level-0">
|
|
4792
|
+
|
|
4793
|
+
<td class="name"><code>options</code></td>
|
|
4794
|
+
|
|
4795
|
+
|
|
4796
|
+
<td class="type">
|
|
4797
|
+
|
|
4798
|
+
</td>
|
|
4799
|
+
|
|
4800
|
+
|
|
4801
|
+
<td class="default">
|
|
4802
|
+
|
|
4803
|
+
</td>
|
|
4804
|
+
|
|
4805
|
+
|
|
4806
|
+
<td class="description last"><p>动画参数</p></td>
|
|
4807
|
+
</tr>
|
|
4808
|
+
|
|
4809
|
+
|
|
4810
|
+
|
|
4811
|
+
|
|
4812
|
+
<tr class="deep-level-1">
|
|
4813
|
+
|
|
4814
|
+
<td class="name"><code>animate</code></td>
|
|
4815
|
+
|
|
4816
|
+
|
|
4817
|
+
<td class="type">
|
|
4818
|
+
|
|
4819
|
+
|
|
4820
|
+
<span class="param-type">Boolean</span>
|
|
4821
|
+
|
|
4822
|
+
|
|
4823
|
+
|
|
4824
|
+
</td>
|
|
4825
|
+
|
|
4826
|
+
|
|
4827
|
+
<td class="default">
|
|
4828
|
+
|
|
4829
|
+
true
|
|
4830
|
+
|
|
4831
|
+
</td>
|
|
4832
|
+
|
|
4833
|
+
|
|
4834
|
+
<td class="description last"><p>新视图的过渡是否开启动画,默认开启动画</p></td>
|
|
4835
|
+
</tr>
|
|
4836
|
+
|
|
4837
|
+
|
|
4838
|
+
|
|
4839
|
+
|
|
4840
|
+
<tr class="deep-level-1">
|
|
4841
|
+
|
|
4842
|
+
<td class="name"><code>duration</code></td>
|
|
4843
|
+
|
|
4844
|
+
|
|
4845
|
+
<td class="type">
|
|
4846
|
+
|
|
4847
|
+
|
|
4848
|
+
<span class="param-type">Number</span>
|
|
4849
|
+
|
|
4850
|
+
|
|
4851
|
+
|
|
4852
|
+
</td>
|
|
4853
|
+
|
|
4854
|
+
|
|
4855
|
+
<td class="default">
|
|
4856
|
+
|
|
4857
|
+
200
|
|
4858
|
+
|
|
4859
|
+
</td>
|
|
4860
|
+
|
|
4861
|
+
|
|
4862
|
+
<td class="description last"><p>动画的持续时间,以毫秒为单位,默认200毫秒</p></td>
|
|
4863
|
+
</tr>
|
|
4864
|
+
|
|
4865
|
+
|
|
4866
|
+
|
|
4867
|
+
|
|
4868
|
+
|
|
4869
|
+
|
|
4870
|
+
|
|
4871
|
+
</tbody>
|
|
4872
|
+
</table>
|
|
4873
|
+
</div>
|
|
4874
|
+
|
|
4875
|
+
|
|
4876
|
+
|
|
4877
|
+
|
|
4878
|
+
|
|
4879
|
+
|
|
4880
|
+
<dl class="details">
|
|
4881
|
+
|
|
4882
|
+
|
|
4883
|
+
|
|
4884
|
+
|
|
4885
|
+
|
|
4886
|
+
|
|
4887
|
+
|
|
4888
|
+
|
|
4889
|
+
|
|
4890
|
+
|
|
4891
|
+
|
|
4892
|
+
|
|
4893
|
+
|
|
4894
|
+
|
|
4895
|
+
|
|
4896
|
+
|
|
4897
|
+
|
|
4898
|
+
|
|
4899
|
+
|
|
4900
|
+
|
|
4901
|
+
|
|
4902
|
+
|
|
4903
|
+
|
|
4904
|
+
|
|
4905
|
+
|
|
4906
|
+
|
|
4907
|
+
|
|
4908
|
+
|
|
4909
|
+
|
|
4910
|
+
|
|
4911
|
+
|
|
4912
|
+
</dl>
|
|
4913
|
+
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
|
|
4917
|
+
|
|
4918
|
+
|
|
4919
|
+
|
|
4920
|
+
|
|
4921
|
+
|
|
4922
|
+
|
|
4923
|
+
|
|
4924
|
+
|
|
4925
|
+
|
|
4926
|
+
|
|
4927
|
+
|
|
4928
|
+
|
|
4929
|
+
|
|
4930
|
+
|
|
4931
|
+
|
|
4932
|
+
|
|
4933
|
+
|
|
4934
|
+
|
|
4935
|
+
|
|
4936
|
+
<h5>示例</h5>
|
|
4937
|
+
|
|
4938
|
+
<p class="code-caption"><h7>中心点跳转示例</h7></p>
|
|
4939
|
+
|
|
4940
|
+
|
|
4941
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
4942
|
+
const { Map } = zondy
|
|
4943
|
+
const { MapView } = zondy.leaflet
|
|
4944
|
+
// ES6引入方式
|
|
4945
|
+
import { Map } from "@mapgis/webclient-common"
|
|
4946
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
4947
|
+
// 初始化图层管理容器
|
|
4948
|
+
map = new .Map();
|
|
4949
|
+
// 初始化地图视图对象
|
|
4950
|
+
mapView = new MapView({
|
|
4951
|
+
// 视图id
|
|
4952
|
+
viewId: "view-id",
|
|
4953
|
+
// 图层管理容器
|
|
4954
|
+
map: map
|
|
4955
|
+
});
|
|
4956
|
+
// 视点跳转
|
|
4957
|
+
mapView.goTo({
|
|
4958
|
+
// 跳转中心点
|
|
4959
|
+
center: [115.47643872463577, 30.980700423496124],
|
|
4960
|
+
// 地图层级
|
|
4961
|
+
zoom: 8
|
|
4962
|
+
});</code></pre>
|
|
4963
|
+
|
|
4964
|
+
|
|
4965
|
+
<p class="code-caption"><h7>按范围跳转示例</h7></p>
|
|
4966
|
+
|
|
4967
|
+
|
|
4968
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
4969
|
+
const { Map } = zondy
|
|
4970
|
+
const { Extent, Circle } = zondy.geometry
|
|
4971
|
+
const { MapView } = zondy.leaflet
|
|
4972
|
+
// ES6引入方式
|
|
4973
|
+
import { Map, Extent, Circle } from "@mapgis/webclient-common"
|
|
4974
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
4975
|
+
// 初始化图层管理容器
|
|
4976
|
+
map = new Map();
|
|
4977
|
+
// 初始化地图视图对象
|
|
4978
|
+
mapView = new MapView({
|
|
4979
|
+
// 视图id
|
|
4980
|
+
viewId: "view-id",
|
|
4981
|
+
// 图层管理容器
|
|
4982
|
+
map: map
|
|
4983
|
+
});
|
|
4984
|
+
const extent1 = new Extent({
|
|
4985
|
+
xmin: 111.88463529230717,
|
|
4986
|
+
ymin: 28.646934514163803,
|
|
4987
|
+
xmax: 116.89989408129225,
|
|
4988
|
+
ymax: 33.07991791253288,
|
|
4989
|
+
})
|
|
4990
|
+
const geometry2 = new Circle({
|
|
4991
|
+
center: [111, 29],
|
|
4992
|
+
radius: 100,
|
|
4993
|
+
radiusUnit: "kilometers",
|
|
4994
|
+
})
|
|
4995
|
+
mapView
|
|
4996
|
+
.goTo({
|
|
4997
|
+
target: [extent1, geometry2],
|
|
4998
|
+
})
|
|
4999
|
+
.then(() => {
|
|
5000
|
+
console.log("gotoExtent callback")
|
|
5001
|
+
})</code></pre>
|
|
5002
|
+
|
|
5003
|
+
|
|
5004
|
+
|
|
5005
|
+
</div>
|
|
5006
|
+
|
|
5007
|
+
<div class="member">
|
|
5008
|
+
|
|
5009
|
+
|
|
5010
|
+
|
|
5011
|
+
<h4 class="name" id="hitTest">
|
|
5012
|
+
<a class="href-link" href="#hitTest">#</a>
|
|
5013
|
+
|
|
5014
|
+
<span class="code-name" style="font-size:30px">
|
|
5015
|
+
|
|
5016
|
+
hitTest<span class="signature">(screenPoint)</span>
|
|
5017
|
+
|
|
5018
|
+
</span>
|
|
5019
|
+
</h4>
|
|
5020
|
+
|
|
5021
|
+
|
|
5022
|
+
|
|
5023
|
+
<div class="description">
|
|
5024
|
+
<p>穿透检测,图元拾取。目前支持graphic类型拾取结果,支持图层类型GraphicLayer,FeatureLayer。</p>
|
|
5025
|
+
</div>
|
|
5026
|
+
|
|
5027
|
+
|
|
5028
|
+
|
|
5029
|
+
|
|
5030
|
+
|
|
5031
|
+
|
|
5032
|
+
|
|
5033
|
+
|
|
5034
|
+
|
|
5035
|
+
|
|
5036
|
+
<h4>参数:</h4>
|
|
5037
|
+
|
|
5038
|
+
<div class="table-container">
|
|
5039
|
+
<table class="params table">
|
|
5040
|
+
<thead>
|
|
5041
|
+
<tr>
|
|
5042
|
+
|
|
5043
|
+
<th>名称</th>
|
|
5044
|
+
|
|
5045
|
+
|
|
5046
|
+
<th>类型</th>
|
|
5047
|
+
|
|
5048
|
+
|
|
5049
|
+
|
|
5050
|
+
<th class="last">描述</th>
|
|
5051
|
+
</tr>
|
|
5052
|
+
</thead>
|
|
5053
|
+
|
|
5054
|
+
<tbody>
|
|
5055
|
+
|
|
5056
|
+
|
|
5057
|
+
|
|
5058
|
+
<tr class="deep-level-0">
|
|
5059
|
+
|
|
5060
|
+
<td class="name"><code>screenPoint</code></td>
|
|
5061
|
+
|
|
5062
|
+
|
|
5063
|
+
<td class="type">
|
|
5064
|
+
|
|
5065
|
+
|
|
5066
|
+
<span class="param-type">Object</span>
|
|
5067
|
+
|
|
5068
|
+
|
|
5069
|
+
|
|
5070
|
+
</td>
|
|
5071
|
+
|
|
5072
|
+
|
|
5073
|
+
|
|
5074
|
+
<td class="description last"><p>屏幕像素坐标点,例如{ x: 900, y: 500 }</p></td>
|
|
5075
|
+
</tr>
|
|
5076
|
+
|
|
5077
|
+
|
|
5078
|
+
|
|
5079
|
+
|
|
5080
|
+
</tbody>
|
|
5081
|
+
</table>
|
|
5082
|
+
</div>
|
|
5083
|
+
|
|
5084
|
+
|
|
5085
|
+
|
|
5086
|
+
|
|
5087
|
+
|
|
5088
|
+
|
|
5089
|
+
<dl class="details">
|
|
5090
|
+
|
|
5091
|
+
|
|
5092
|
+
|
|
5093
|
+
|
|
5094
|
+
|
|
5095
|
+
|
|
5096
|
+
|
|
5097
|
+
|
|
5098
|
+
|
|
5099
|
+
|
|
5100
|
+
|
|
5101
|
+
|
|
5102
|
+
|
|
5103
|
+
|
|
5104
|
+
|
|
5105
|
+
|
|
5106
|
+
|
|
5107
|
+
|
|
5108
|
+
|
|
5109
|
+
|
|
5110
|
+
|
|
5111
|
+
|
|
5112
|
+
|
|
5113
|
+
|
|
5114
|
+
|
|
5115
|
+
|
|
5116
|
+
|
|
5117
|
+
|
|
5118
|
+
|
|
5119
|
+
|
|
5120
|
+
|
|
5121
|
+
</dl>
|
|
5122
|
+
|
|
5123
|
+
|
|
5124
|
+
|
|
5125
|
+
|
|
5126
|
+
|
|
5127
|
+
|
|
5128
|
+
|
|
5129
|
+
|
|
5130
|
+
|
|
5131
|
+
|
|
5132
|
+
|
|
5133
|
+
|
|
5134
|
+
|
|
5135
|
+
|
|
5136
|
+
|
|
5137
|
+
|
|
5138
|
+
|
|
5139
|
+
|
|
5140
|
+
<div class='columns method-parameter'>
|
|
5141
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
5142
|
+
<div class="column is-10">
|
|
5143
|
+
|
|
5144
|
+
|
|
5145
|
+
|
|
5146
|
+
<div class="columns">
|
|
5147
|
+
|
|
5148
|
+
<div class='param-desc column is-7'><p>图元检测结果</p></div>
|
|
5149
|
+
|
|
5150
|
+
|
|
5151
|
+
<div class='column is-5 has-text-left'>
|
|
5152
|
+
<label>类型: </label>
|
|
5153
|
+
|
|
5154
|
+
<span class="param-type">Array</span>
|
|
5155
|
+
|
|
5156
|
+
|
|
5157
|
+
</div>
|
|
5158
|
+
|
|
5159
|
+
</div>
|
|
5160
|
+
|
|
5161
|
+
|
|
5162
|
+
</div>
|
|
5163
|
+
</div>
|
|
5164
|
+
|
|
5165
|
+
|
|
5166
|
+
|
|
5167
|
+
|
|
5168
|
+
|
|
5169
|
+
|
|
5170
|
+
<h5>示例</h5>
|
|
5171
|
+
|
|
5172
|
+
<p class="code-caption"><h7>根据基础图层对象或者图层id查询并返回实际图层</h7></p>
|
|
5173
|
+
|
|
5174
|
+
|
|
5175
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
5176
|
+
const { Map, Feature } = zondy
|
|
5177
|
+
const { Point, Polygon, MultiPolygon ,Extent, Circle } = zondy.geometry
|
|
5178
|
+
const { GraphicsLayer, IGSFeatureLayer, IGSTileLayer } = zondy.layer
|
|
5179
|
+
const { MapView } = zondy.leaflet
|
|
5180
|
+
// ES6引入方式
|
|
5181
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin";
|
|
5182
|
+
import { Map, Point, Polygon, MultiPolygon ,Extent, GraphicsLayer, Feature, Circle, IGSFeatureLayer, IGSTileLayer } from "@mapgis/webclient-common";
|
|
5183
|
+
// 初始化图层管理容器
|
|
5184
|
+
const map = new Map();
|
|
5185
|
+
// 初始化地图视图对象
|
|
5186
|
+
this.mapView = new MapView({
|
|
5187
|
+
// 视图id
|
|
5188
|
+
viewId: "mapgis-2d-viewer",
|
|
5189
|
+
// 图层管理容器
|
|
5190
|
+
map: map,
|
|
5191
|
+
})
|
|
5192
|
+
// 创建一个要素
|
|
5193
|
+
const feature = [
|
|
5194
|
+
new Feature({
|
|
5195
|
+
id: '11113',
|
|
5196
|
+
geometry: new Circle({
|
|
5197
|
+
center: [113, 35],
|
|
5198
|
+
radius: 10000,
|
|
5199
|
+
radiusUnit: 'kilometers',
|
|
5200
|
+
})
|
|
5201
|
+
}),
|
|
5202
|
+
new Feature({
|
|
5203
|
+
id: '11114',
|
|
5204
|
+
geometry: new Polygon({
|
|
5205
|
+
coordinates: [
|
|
5206
|
+
// 外圈
|
|
5207
|
+
[
|
|
5208
|
+
[113.0, 29.0],
|
|
5209
|
+
[116.0, 29.0],
|
|
5210
|
+
[116.0, 35.0],
|
|
5211
|
+
[113.0, 35.0],
|
|
5212
|
+
[113.0, 29.0]
|
|
5213
|
+
]
|
|
5214
|
+
]
|
|
5215
|
+
})
|
|
5216
|
+
}),
|
|
5217
|
+
new Feature({
|
|
5218
|
+
id: '11115',
|
|
5219
|
+
geometry:new MultiPolygon({
|
|
5220
|
+
coordinates: [
|
|
5221
|
+
[
|
|
5222
|
+
// 外圈
|
|
5223
|
+
[
|
|
5224
|
+
[112.0, 28.0],
|
|
5225
|
+
[115.0, 28.0],
|
|
5226
|
+
[115.0, 30.0],
|
|
5227
|
+
[112.0, 30.0],
|
|
5228
|
+
[112.0, 28.0]
|
|
5229
|
+
],
|
|
5230
|
+
// 第一个内圈
|
|
5231
|
+
[
|
|
5232
|
+
[112.2, 28.2],
|
|
5233
|
+
[112.2, 29.8],
|
|
5234
|
+
[114.8, 29.8],
|
|
5235
|
+
[114.8, 28.2],
|
|
5236
|
+
[112.2, 28.2]
|
|
5237
|
+
]
|
|
5238
|
+
]
|
|
5239
|
+
]
|
|
5240
|
+
})
|
|
5241
|
+
})
|
|
5242
|
+
]
|
|
5243
|
+
// 初始化几何图层
|
|
5244
|
+
const graphicsLayer = new GraphicsLayer({
|
|
5245
|
+
graphics:feature
|
|
5246
|
+
})
|
|
5247
|
+
map.add(this.graphicsLayer)
|
|
5248
|
+
const result = this.mapView.hitTest({x:1100,y:600})</code></pre>
|
|
5249
|
+
|
|
5250
|
+
|
|
5251
|
+
|
|
5252
|
+
</div>
|
|
5253
|
+
|
|
5254
|
+
<div class="member">
|
|
5255
|
+
|
|
5256
|
+
|
|
5257
|
+
|
|
5258
|
+
<h4 class="name" id="takeScreenshot">
|
|
5259
|
+
<a class="href-link" href="#takeScreenshot">#</a>
|
|
5260
|
+
|
|
5261
|
+
<span class="code-name" style="font-size:30px">
|
|
5262
|
+
|
|
5263
|
+
takeScreenshot<span class="signature">(options<span class="signature-attributes">opt</span>)</span>
|
|
5264
|
+
|
|
5265
|
+
</span>
|
|
5266
|
+
</h4>
|
|
5267
|
+
|
|
5268
|
+
|
|
5269
|
+
|
|
5270
|
+
<div class="description">
|
|
5271
|
+
<p>屏幕快照</p>
|
|
5272
|
+
</div>
|
|
5273
|
+
|
|
5274
|
+
|
|
5275
|
+
|
|
5276
|
+
|
|
5277
|
+
|
|
5278
|
+
|
|
5279
|
+
|
|
5280
|
+
|
|
5281
|
+
|
|
5282
|
+
|
|
5283
|
+
<h4>参数:</h4>
|
|
5284
|
+
|
|
5285
|
+
<div class="table-container">
|
|
5286
|
+
<table class="params table">
|
|
5287
|
+
<thead>
|
|
5288
|
+
<tr>
|
|
5289
|
+
|
|
5290
|
+
<th>名称</th>
|
|
5291
|
+
|
|
5292
|
+
|
|
5293
|
+
<th>类型</th>
|
|
5294
|
+
|
|
5295
|
+
|
|
5296
|
+
<th style="min-width: 100px;">默认值</th>
|
|
5297
|
+
|
|
5298
|
+
|
|
5299
|
+
<th class="last">描述</th>
|
|
5300
|
+
</tr>
|
|
5301
|
+
</thead>
|
|
5302
|
+
|
|
5303
|
+
<tbody>
|
|
5304
|
+
|
|
5305
|
+
|
|
5306
|
+
|
|
5307
|
+
<tr class="deep-level-0">
|
|
5308
|
+
|
|
5309
|
+
<td class="name"><code>options</code></td>
|
|
5310
|
+
|
|
5311
|
+
|
|
5312
|
+
<td class="type">
|
|
5313
|
+
|
|
5314
|
+
|
|
5315
|
+
<span class="param-type">Object</span>
|
|
5316
|
+
|
|
5317
|
+
|
|
5318
|
+
|
|
5319
|
+
</td>
|
|
5320
|
+
|
|
5321
|
+
|
|
5322
|
+
<td class="default">
|
|
5323
|
+
|
|
5324
|
+
{}
|
|
5325
|
+
|
|
5326
|
+
</td>
|
|
5327
|
+
|
|
5328
|
+
|
|
5329
|
+
<td class="description last"><p>屏幕快照配置配置</p></td>
|
|
5330
|
+
</tr>
|
|
5331
|
+
|
|
5332
|
+
|
|
5333
|
+
|
|
5334
|
+
|
|
5335
|
+
<tr class="deep-level-1">
|
|
5336
|
+
|
|
5337
|
+
<td class="name"><code>format</code></td>
|
|
5338
|
+
|
|
5339
|
+
|
|
5340
|
+
<td class="type">
|
|
5341
|
+
|
|
5342
|
+
|
|
5343
|
+
<span class="param-type">PictureFormat</span>
|
|
5344
|
+
|
|
5345
|
+
|
|
5346
|
+
|
|
5347
|
+
</td>
|
|
5348
|
+
|
|
5349
|
+
|
|
5350
|
+
<td class="default">
|
|
5351
|
+
|
|
5352
|
+
PictureFormat.png
|
|
5353
|
+
|
|
5354
|
+
</td>
|
|
5355
|
+
|
|
5356
|
+
|
|
5357
|
+
<td class="description last"><p>照片格式,支持png,jpeg格式</p></td>
|
|
5358
|
+
</tr>
|
|
5359
|
+
|
|
5360
|
+
|
|
5361
|
+
|
|
5362
|
+
|
|
5363
|
+
<tr class="deep-level-1">
|
|
5364
|
+
|
|
5365
|
+
<td class="name"><code>filename</code></td>
|
|
5366
|
+
|
|
5367
|
+
|
|
5368
|
+
<td class="type">
|
|
5369
|
+
|
|
5370
|
+
|
|
5371
|
+
<span class="param-type">String</span>
|
|
5372
|
+
|
|
5373
|
+
|
|
5374
|
+
|
|
5375
|
+
</td>
|
|
5376
|
+
|
|
5377
|
+
|
|
5378
|
+
<td class="default">
|
|
5379
|
+
|
|
5380
|
+
'screenshotFile'
|
|
5381
|
+
|
|
5382
|
+
</td>
|
|
5383
|
+
|
|
5384
|
+
|
|
5385
|
+
<td class="description last"><p>下载文件名</p></td>
|
|
5386
|
+
</tr>
|
|
5387
|
+
|
|
5388
|
+
|
|
5389
|
+
|
|
5390
|
+
|
|
5391
|
+
<tr class="deep-level-1">
|
|
5392
|
+
|
|
5393
|
+
<td class="name"><code>width</code></td>
|
|
5394
|
+
|
|
5395
|
+
|
|
5396
|
+
<td class="type">
|
|
5397
|
+
|
|
5398
|
+
|
|
5399
|
+
<span class="param-type">Number</span>
|
|
5400
|
+
|
|
5401
|
+
|
|
5402
|
+
|
|
5403
|
+
</td>
|
|
5404
|
+
|
|
5405
|
+
|
|
5406
|
+
<td class="default">
|
|
5407
|
+
|
|
5408
|
+
</td>
|
|
5409
|
+
|
|
5410
|
+
|
|
5411
|
+
<td class="description last"><p>图片宽度</p></td>
|
|
5412
|
+
</tr>
|
|
5413
|
+
|
|
5414
|
+
|
|
5415
|
+
|
|
5416
|
+
|
|
5417
|
+
<tr class="deep-level-1">
|
|
5418
|
+
|
|
5419
|
+
<td class="name"><code>height</code></td>
|
|
5420
|
+
|
|
5421
|
+
|
|
5422
|
+
<td class="type">
|
|
5423
|
+
|
|
5424
|
+
|
|
5425
|
+
<span class="param-type">Number</span>
|
|
5426
|
+
|
|
5427
|
+
|
|
5428
|
+
|
|
5429
|
+
</td>
|
|
5430
|
+
|
|
5431
|
+
|
|
5432
|
+
<td class="default">
|
|
5433
|
+
|
|
5434
|
+
</td>
|
|
5435
|
+
|
|
5436
|
+
|
|
5437
|
+
<td class="description last"><p>图片高度</p></td>
|
|
5438
|
+
</tr>
|
|
5439
|
+
|
|
5440
|
+
|
|
5441
|
+
|
|
5442
|
+
|
|
5443
|
+
<tr class="deep-level-1">
|
|
5444
|
+
|
|
5445
|
+
<td class="name"><code>x</code></td>
|
|
5446
|
+
|
|
5447
|
+
|
|
5448
|
+
<td class="type">
|
|
5449
|
+
|
|
5450
|
+
|
|
5451
|
+
<span class="param-type">Number</span>
|
|
5452
|
+
|
|
5453
|
+
|
|
5454
|
+
|
|
5455
|
+
</td>
|
|
5456
|
+
|
|
5457
|
+
|
|
5458
|
+
<td class="default">
|
|
5459
|
+
|
|
5460
|
+
</td>
|
|
5461
|
+
|
|
5462
|
+
|
|
5463
|
+
<td class="description last"><p>图片原点x</p></td>
|
|
5464
|
+
</tr>
|
|
5465
|
+
|
|
5466
|
+
|
|
5467
|
+
|
|
5468
|
+
|
|
5469
|
+
<tr class="deep-level-1">
|
|
5470
|
+
|
|
5471
|
+
<td class="name"><code>y</code></td>
|
|
5472
|
+
|
|
5473
|
+
|
|
5474
|
+
<td class="type">
|
|
5475
|
+
|
|
5476
|
+
|
|
5477
|
+
<span class="param-type">Number</span>
|
|
5478
|
+
|
|
5479
|
+
|
|
5480
|
+
|
|
5481
|
+
</td>
|
|
5482
|
+
|
|
5483
|
+
|
|
5484
|
+
<td class="default">
|
|
5485
|
+
|
|
5486
|
+
</td>
|
|
5487
|
+
|
|
5488
|
+
|
|
5489
|
+
<td class="description last"><p>图片原点y</p></td>
|
|
5490
|
+
</tr>
|
|
5491
|
+
|
|
5492
|
+
|
|
5493
|
+
|
|
5494
|
+
|
|
5495
|
+
<tr class="deep-level-1">
|
|
5496
|
+
|
|
5497
|
+
<td class="name"><code>isDownload</code></td>
|
|
5498
|
+
|
|
5499
|
+
|
|
5500
|
+
<td class="type">
|
|
5501
|
+
|
|
5502
|
+
|
|
5503
|
+
<span class="param-type">Boolean</span>
|
|
5504
|
+
|
|
5505
|
+
|
|
5506
|
+
|
|
5507
|
+
</td>
|
|
5508
|
+
|
|
5509
|
+
|
|
5510
|
+
<td class="default">
|
|
5511
|
+
|
|
5512
|
+
true
|
|
5513
|
+
|
|
5514
|
+
</td>
|
|
5515
|
+
|
|
5516
|
+
|
|
5517
|
+
<td class="description last"><p>是否下载图片</p></td>
|
|
5518
|
+
</tr>
|
|
5519
|
+
|
|
5520
|
+
|
|
5521
|
+
|
|
5522
|
+
|
|
5523
|
+
|
|
5524
|
+
|
|
5525
|
+
|
|
5526
|
+
</tbody>
|
|
5527
|
+
</table>
|
|
5528
|
+
</div>
|
|
5529
|
+
|
|
5530
|
+
|
|
5531
|
+
|
|
5532
|
+
|
|
5533
|
+
|
|
5534
|
+
|
|
5535
|
+
<dl class="details">
|
|
5536
|
+
|
|
5537
|
+
|
|
5538
|
+
|
|
5539
|
+
|
|
5540
|
+
|
|
5541
|
+
|
|
5542
|
+
|
|
5543
|
+
|
|
5544
|
+
|
|
5545
|
+
|
|
5546
|
+
|
|
5547
|
+
|
|
5548
|
+
|
|
5549
|
+
|
|
5550
|
+
|
|
5551
|
+
|
|
5552
|
+
|
|
5553
|
+
|
|
5554
|
+
|
|
5555
|
+
|
|
5556
|
+
|
|
5557
|
+
|
|
5558
|
+
|
|
5559
|
+
|
|
5560
|
+
|
|
5561
|
+
|
|
5562
|
+
|
|
5563
|
+
|
|
5564
|
+
|
|
5565
|
+
|
|
5566
|
+
|
|
5567
|
+
</dl>
|
|
5568
|
+
|
|
5569
|
+
|
|
5570
|
+
|
|
5571
|
+
|
|
5572
|
+
|
|
5573
|
+
|
|
5574
|
+
|
|
5575
|
+
|
|
5576
|
+
|
|
5577
|
+
|
|
5578
|
+
|
|
5579
|
+
|
|
5580
|
+
|
|
5581
|
+
|
|
5582
|
+
|
|
5583
|
+
|
|
5584
|
+
|
|
5585
|
+
|
|
5586
|
+
<div class='columns method-parameter'>
|
|
5587
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
5588
|
+
<div class="column is-10">
|
|
5589
|
+
|
|
5590
|
+
|
|
5591
|
+
|
|
5592
|
+
<div class="columns">
|
|
5593
|
+
|
|
5594
|
+
<div class='param-desc column is-7'><p>屏幕快照 {dataUrl String },且浏览器会下载图片</p></div>
|
|
5595
|
+
|
|
5596
|
+
|
|
5597
|
+
<div class='column is-5 has-text-left'>
|
|
5598
|
+
<label>类型: </label>
|
|
5599
|
+
|
|
5600
|
+
<span class="param-type">Object</span>
|
|
5601
|
+
|
|
5602
|
+
|
|
5603
|
+
</div>
|
|
5604
|
+
|
|
5605
|
+
</div>
|
|
5606
|
+
|
|
5607
|
+
|
|
5608
|
+
</div>
|
|
5609
|
+
</div>
|
|
5610
|
+
|
|
5611
|
+
|
|
5612
|
+
|
|
5613
|
+
|
|
5614
|
+
|
|
5615
|
+
|
|
5616
|
+
<h5>示例</h5>
|
|
5617
|
+
|
|
5618
|
+
<p class="code-caption"><h7>屏幕快照</h7></p>
|
|
5619
|
+
|
|
5620
|
+
|
|
5621
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
5622
|
+
const { Map } = zondy
|
|
5623
|
+
const { MapView } = zondy.leaflet
|
|
5624
|
+
const { PictureFormat } = zondy.Enum
|
|
5625
|
+
// ES6引入方式
|
|
5626
|
+
import { Map, PictureFormat } from "@mapgis/webclient-common"
|
|
5627
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
5628
|
+
// 初始化图层管理容器
|
|
5629
|
+
const map = new Map();
|
|
5630
|
+
// 初始化地图视图对象
|
|
5631
|
+
const mapView = new MapView({
|
|
5632
|
+
// 二维场景视图的容器(html的div标签)ID
|
|
5633
|
+
viewId: "二维场景视图的容器的id",
|
|
5634
|
+
// 图层管理容器
|
|
5635
|
+
map: map
|
|
5636
|
+
})
|
|
5637
|
+
// 设置屏幕快照参数
|
|
5638
|
+
const screenshotOptions: {
|
|
5639
|
+
format: PictureFormat.png
|
|
5640
|
+
}
|
|
5641
|
+
// 开始屏幕快照
|
|
5642
|
+
mapView.takeScreenshot(screenshotOptions).then((result) => {
|
|
5643
|
+
// 获取base64格式的url字符串
|
|
5644
|
+
console.log("dataUrl:", result.dataUrl)
|
|
5645
|
+
})</code></pre>
|
|
5646
|
+
|
|
5647
|
+
|
|
5648
|
+
|
|
5649
|
+
</div>
|
|
5650
|
+
|
|
5651
|
+
<div class="member">
|
|
5652
|
+
|
|
5653
|
+
|
|
5654
|
+
|
|
5655
|
+
<h4 class="name" id="toJSON">
|
|
5656
|
+
<a class="href-link" href="#toJSON">#</a>
|
|
5657
|
+
|
|
5658
|
+
<span class="code-name" style="font-size:30px">
|
|
5659
|
+
|
|
5660
|
+
toJSON<span class="signature">()</span>
|
|
5661
|
+
|
|
5662
|
+
</span>
|
|
5663
|
+
</h4>
|
|
5664
|
+
|
|
5665
|
+
|
|
5666
|
+
|
|
5667
|
+
<div class="description">
|
|
5668
|
+
<p>导出场景视图的配置文件<a id='toJSON'></a></p>
|
|
5669
|
+
</div>
|
|
5670
|
+
|
|
5671
|
+
|
|
5672
|
+
|
|
5673
|
+
|
|
5674
|
+
|
|
5675
|
+
|
|
5676
|
+
|
|
5677
|
+
|
|
5678
|
+
|
|
5679
|
+
|
|
5680
|
+
|
|
5681
|
+
|
|
5682
|
+
|
|
5683
|
+
|
|
5684
|
+
<dl class="details">
|
|
5685
|
+
|
|
5686
|
+
|
|
5687
|
+
|
|
5688
|
+
|
|
5689
|
+
|
|
5690
|
+
|
|
5691
|
+
|
|
5692
|
+
|
|
5693
|
+
|
|
5694
|
+
|
|
5695
|
+
|
|
5696
|
+
|
|
5697
|
+
|
|
5698
|
+
|
|
5699
|
+
|
|
5700
|
+
|
|
5701
|
+
|
|
5702
|
+
|
|
5703
|
+
|
|
5704
|
+
|
|
5705
|
+
|
|
5706
|
+
|
|
5707
|
+
|
|
5708
|
+
|
|
5709
|
+
|
|
5710
|
+
|
|
5711
|
+
|
|
5712
|
+
|
|
5713
|
+
|
|
5714
|
+
|
|
5715
|
+
|
|
5716
|
+
</dl>
|
|
5717
|
+
|
|
5718
|
+
|
|
5719
|
+
|
|
5720
|
+
|
|
5721
|
+
|
|
5722
|
+
|
|
5723
|
+
|
|
5724
|
+
|
|
5725
|
+
|
|
5726
|
+
|
|
5727
|
+
|
|
5728
|
+
|
|
5729
|
+
|
|
5730
|
+
|
|
5731
|
+
|
|
5732
|
+
|
|
5733
|
+
|
|
5734
|
+
|
|
5735
|
+
<div class='columns method-parameter'>
|
|
5736
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
5737
|
+
<div class="column is-10">
|
|
5738
|
+
|
|
5739
|
+
|
|
5740
|
+
|
|
5741
|
+
<div class="columns">
|
|
5742
|
+
|
|
5743
|
+
<div class='param-desc column is-7'><p>导出的配置文件</p></div>
|
|
5744
|
+
|
|
5745
|
+
|
|
5746
|
+
<div class='column is-5 has-text-left'>
|
|
5747
|
+
<label>类型: </label>
|
|
5748
|
+
|
|
5749
|
+
<span class="param-type">Object</span>
|
|
5750
|
+
|
|
5751
|
+
|
|
5752
|
+
</div>
|
|
5753
|
+
|
|
5754
|
+
</div>
|
|
5755
|
+
|
|
5756
|
+
|
|
5757
|
+
</div>
|
|
5758
|
+
</div>
|
|
5759
|
+
|
|
5760
|
+
|
|
5761
|
+
|
|
5762
|
+
|
|
5763
|
+
|
|
5764
|
+
|
|
5765
|
+
</div>
|
|
5766
|
+
|
|
5767
|
+
<div class="member">
|
|
5768
|
+
|
|
5769
|
+
|
|
5770
|
+
|
|
5771
|
+
<h4 class="name" id="toMap">
|
|
5772
|
+
<a class="href-link" href="#toMap">#</a>
|
|
5773
|
+
|
|
5774
|
+
<span class="code-name" style="font-size:30px">
|
|
5775
|
+
|
|
5776
|
+
toMap<span class="signature">(screenPoint)</span>
|
|
5777
|
+
|
|
5778
|
+
</span>
|
|
5779
|
+
</h4>
|
|
5780
|
+
|
|
5781
|
+
|
|
5782
|
+
|
|
5783
|
+
<div class="description">
|
|
5784
|
+
<p><a id='toMap'></a>
|
|
5785
|
+
屏幕像素坐标点转地理坐标点</p>
|
|
5786
|
+
</div>
|
|
5787
|
+
|
|
5788
|
+
|
|
5789
|
+
|
|
5790
|
+
|
|
5791
|
+
|
|
5792
|
+
|
|
5793
|
+
|
|
5794
|
+
|
|
5795
|
+
|
|
5796
|
+
|
|
5797
|
+
<h4>参数:</h4>
|
|
5798
|
+
|
|
5799
|
+
<div class="table-container">
|
|
5800
|
+
<table class="params table">
|
|
5801
|
+
<thead>
|
|
5802
|
+
<tr>
|
|
5803
|
+
|
|
5804
|
+
<th>名称</th>
|
|
5805
|
+
|
|
5806
|
+
|
|
5807
|
+
<th>类型</th>
|
|
5808
|
+
|
|
5809
|
+
|
|
5810
|
+
|
|
5811
|
+
<th class="last">描述</th>
|
|
5812
|
+
</tr>
|
|
5813
|
+
</thead>
|
|
5814
|
+
|
|
5815
|
+
<tbody>
|
|
5816
|
+
|
|
5817
|
+
|
|
5818
|
+
|
|
5819
|
+
<tr class="deep-level-0">
|
|
5820
|
+
|
|
5821
|
+
<td class="name"><code>screenPoint</code></td>
|
|
5822
|
+
|
|
5823
|
+
|
|
5824
|
+
<td class="type">
|
|
5825
|
+
|
|
5826
|
+
|
|
5827
|
+
<span class="param-type">Object</span>
|
|
5828
|
+
|
|
5829
|
+
|
|
5830
|
+
|
|
5831
|
+
</td>
|
|
5832
|
+
|
|
5833
|
+
|
|
5834
|
+
|
|
5835
|
+
<td class="description last"><p>屏幕像素坐标点,例如{ x: 900, y: 500 }</p></td>
|
|
5836
|
+
</tr>
|
|
5837
|
+
|
|
5838
|
+
|
|
5839
|
+
|
|
5840
|
+
|
|
5841
|
+
</tbody>
|
|
5842
|
+
</table>
|
|
5843
|
+
</div>
|
|
5844
|
+
|
|
5845
|
+
|
|
5846
|
+
|
|
5847
|
+
|
|
5848
|
+
|
|
5849
|
+
|
|
5850
|
+
<dl class="details">
|
|
5851
|
+
|
|
5852
|
+
|
|
5853
|
+
|
|
5854
|
+
|
|
5855
|
+
|
|
5856
|
+
|
|
5857
|
+
|
|
5858
|
+
|
|
5859
|
+
|
|
5860
|
+
|
|
5861
|
+
|
|
5862
|
+
|
|
5863
|
+
|
|
5864
|
+
|
|
5865
|
+
|
|
5866
|
+
|
|
5867
|
+
|
|
5868
|
+
|
|
5869
|
+
|
|
5870
|
+
|
|
5871
|
+
|
|
5872
|
+
|
|
5873
|
+
|
|
5874
|
+
|
|
5875
|
+
|
|
5876
|
+
|
|
5877
|
+
|
|
5878
|
+
|
|
5879
|
+
|
|
5880
|
+
|
|
5881
|
+
|
|
5882
|
+
</dl>
|
|
5883
|
+
|
|
5884
|
+
|
|
5885
|
+
|
|
5886
|
+
|
|
5887
|
+
|
|
5888
|
+
|
|
5889
|
+
|
|
5890
|
+
|
|
5891
|
+
|
|
5892
|
+
|
|
5893
|
+
|
|
5894
|
+
|
|
5895
|
+
|
|
5896
|
+
|
|
5897
|
+
|
|
5898
|
+
|
|
5899
|
+
|
|
5900
|
+
|
|
5901
|
+
<div class='columns method-parameter'>
|
|
5902
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
5903
|
+
<div class="column is-10">
|
|
5904
|
+
|
|
5905
|
+
|
|
5906
|
+
|
|
5907
|
+
<div class="columns">
|
|
5908
|
+
|
|
5909
|
+
<div class='param-desc column is-7'><p>地理坐标点</p></div>
|
|
5910
|
+
|
|
5911
|
+
|
|
5912
|
+
<div class='column is-5 has-text-left'>
|
|
5913
|
+
<label>类型: </label>
|
|
5914
|
+
|
|
5915
|
+
<span class="param-type">Point</span>
|
|
5916
|
+
|
|
5917
|
+
|
|
5918
|
+
</div>
|
|
5919
|
+
|
|
5920
|
+
</div>
|
|
5921
|
+
|
|
5922
|
+
|
|
5923
|
+
</div>
|
|
5924
|
+
</div>
|
|
5925
|
+
|
|
5926
|
+
|
|
5927
|
+
|
|
5928
|
+
|
|
5929
|
+
|
|
5930
|
+
|
|
5931
|
+
<h5>示例</h5>
|
|
5932
|
+
|
|
5933
|
+
<p class="code-caption"><h5>屏幕像素坐标点转地理坐标示例</h5></p>
|
|
5934
|
+
|
|
5935
|
+
|
|
5936
|
+
<pre class="prettyprint"><code>// ES6引入方式
|
|
5937
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
5938
|
+
import { Map, Point, Extent } from "@mapgis/webclient-common"
|
|
5939
|
+
// 初始化图层管理容器
|
|
5940
|
+
const map = new Map();
|
|
5941
|
+
// 初始化地图视图对象
|
|
5942
|
+
const mapView = new MapView({
|
|
5943
|
+
// 视图id
|
|
5944
|
+
viewId: "mapgis-2d-viewer",
|
|
5945
|
+
// 图层管理容器
|
|
5946
|
+
map: map
|
|
5947
|
+
});
|
|
5948
|
+
const screenPoint = { x: 900, y: 500 }
|
|
5949
|
+
mapView.toMap(screenPoint)</code></pre>
|
|
5950
|
+
|
|
5951
|
+
|
|
5952
|
+
|
|
5953
|
+
</div>
|
|
5954
|
+
|
|
5955
|
+
<div class="member">
|
|
5956
|
+
|
|
5957
|
+
|
|
5958
|
+
|
|
5959
|
+
<h4 class="name" id="toScreen">
|
|
5960
|
+
<a class="href-link" href="#toScreen">#</a>
|
|
5961
|
+
|
|
5962
|
+
<span class="code-name" style="font-size:30px">
|
|
5963
|
+
|
|
5964
|
+
toScreen<span class="signature">(point)</span>
|
|
5965
|
+
|
|
5966
|
+
</span>
|
|
5967
|
+
</h4>
|
|
5968
|
+
|
|
5969
|
+
|
|
5970
|
+
|
|
5971
|
+
<div class="description">
|
|
5972
|
+
<p><a id='toScreen'></a>
|
|
5973
|
+
地理坐标点转屏幕像素坐标点</p>
|
|
5974
|
+
</div>
|
|
5975
|
+
|
|
5976
|
+
|
|
5977
|
+
|
|
5978
|
+
|
|
5979
|
+
|
|
5980
|
+
|
|
5981
|
+
|
|
5982
|
+
|
|
5983
|
+
|
|
5984
|
+
|
|
5985
|
+
<h4>参数:</h4>
|
|
5986
|
+
|
|
5987
|
+
<div class="table-container">
|
|
5988
|
+
<table class="params table">
|
|
5989
|
+
<thead>
|
|
5990
|
+
<tr>
|
|
5991
|
+
|
|
5992
|
+
<th>名称</th>
|
|
5993
|
+
|
|
5994
|
+
|
|
5995
|
+
<th>类型</th>
|
|
5996
|
+
|
|
5997
|
+
|
|
5998
|
+
|
|
5999
|
+
<th class="last">描述</th>
|
|
6000
|
+
</tr>
|
|
6001
|
+
</thead>
|
|
6002
|
+
|
|
6003
|
+
<tbody>
|
|
6004
|
+
|
|
6005
|
+
|
|
6006
|
+
|
|
6007
|
+
<tr class="deep-level-0">
|
|
6008
|
+
|
|
6009
|
+
<td class="name"><code>point</code></td>
|
|
6010
|
+
|
|
6011
|
+
|
|
6012
|
+
<td class="type">
|
|
6013
|
+
|
|
6014
|
+
|
|
6015
|
+
<span class="param-type">Point</span>
|
|
6016
|
+
|
|
6017
|
+
|
|
6018
|
+
|
|
6019
|
+
</td>
|
|
6020
|
+
|
|
6021
|
+
|
|
6022
|
+
|
|
6023
|
+
<td class="description last"><p>地理坐标点</p></td>
|
|
6024
|
+
</tr>
|
|
6025
|
+
|
|
6026
|
+
|
|
6027
|
+
|
|
6028
|
+
|
|
6029
|
+
</tbody>
|
|
6030
|
+
</table>
|
|
6031
|
+
</div>
|
|
6032
|
+
|
|
6033
|
+
|
|
6034
|
+
|
|
6035
|
+
|
|
6036
|
+
|
|
6037
|
+
|
|
6038
|
+
<dl class="details">
|
|
6039
|
+
|
|
6040
|
+
|
|
6041
|
+
|
|
6042
|
+
|
|
6043
|
+
|
|
6044
|
+
|
|
6045
|
+
|
|
6046
|
+
|
|
6047
|
+
|
|
6048
|
+
|
|
6049
|
+
|
|
6050
|
+
|
|
6051
|
+
|
|
6052
|
+
|
|
6053
|
+
|
|
6054
|
+
|
|
6055
|
+
|
|
6056
|
+
|
|
6057
|
+
|
|
6058
|
+
|
|
6059
|
+
|
|
6060
|
+
|
|
6061
|
+
|
|
6062
|
+
|
|
6063
|
+
|
|
6064
|
+
|
|
6065
|
+
|
|
6066
|
+
|
|
6067
|
+
|
|
6068
|
+
|
|
6069
|
+
|
|
6070
|
+
</dl>
|
|
6071
|
+
|
|
6072
|
+
|
|
6073
|
+
|
|
6074
|
+
|
|
6075
|
+
|
|
6076
|
+
|
|
6077
|
+
|
|
6078
|
+
|
|
6079
|
+
|
|
6080
|
+
|
|
6081
|
+
|
|
6082
|
+
|
|
6083
|
+
|
|
6084
|
+
|
|
6085
|
+
|
|
6086
|
+
|
|
6087
|
+
|
|
6088
|
+
|
|
6089
|
+
<div class='columns method-parameter'>
|
|
6090
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
6091
|
+
<div class="column is-10">
|
|
6092
|
+
|
|
6093
|
+
|
|
6094
|
+
|
|
6095
|
+
<div class="columns">
|
|
6096
|
+
|
|
6097
|
+
<div class='param-desc column is-7'><p>屏幕像素坐标点</p></div>
|
|
6098
|
+
|
|
6099
|
+
|
|
6100
|
+
<div class='column is-5 has-text-left'>
|
|
6101
|
+
<label>类型: </label>
|
|
6102
|
+
|
|
6103
|
+
<span class="param-type">Object</span>
|
|
6104
|
+
|
|
6105
|
+
|
|
6106
|
+
</div>
|
|
6107
|
+
|
|
6108
|
+
</div>
|
|
6109
|
+
|
|
6110
|
+
|
|
6111
|
+
</div>
|
|
6112
|
+
</div>
|
|
6113
|
+
|
|
6114
|
+
|
|
6115
|
+
|
|
6116
|
+
|
|
6117
|
+
|
|
6118
|
+
|
|
6119
|
+
<h5>示例</h5>
|
|
6120
|
+
|
|
6121
|
+
<p class="code-caption"><h5>地理坐标点转屏幕像素坐标示例</h5></p>
|
|
6122
|
+
|
|
6123
|
+
|
|
6124
|
+
<pre class="prettyprint"><code>// ES6引入方式
|
|
6125
|
+
import { MapView } from "@mapgis/webclient-leaflet-plugin"
|
|
6126
|
+
import { Map, Point, Extent } from "@mapgis/webclient-common"
|
|
6127
|
+
// 初始化图层管理容器
|
|
6128
|
+
const map = new Map();
|
|
6129
|
+
// 初始化地图视图对象
|
|
6130
|
+
const mapView = new MapView({
|
|
6131
|
+
// 视图id
|
|
6132
|
+
viewId: "mapgis-2d-viewer",
|
|
6133
|
+
// 图层管理容器
|
|
6134
|
+
map: map
|
|
6135
|
+
});
|
|
6136
|
+
const geoPoint = new Point({ coordinates: [123, 23, 0] })
|
|
6137
|
+
mapView.toScreen(geoPoint)</code></pre>
|
|
6138
|
+
|
|
6139
|
+
|
|
6140
|
+
|
|
6141
|
+
</div>
|
|
6142
|
+
|
|
6143
|
+
</div>
|
|
6144
|
+
</div>
|
|
6145
|
+
|
|
2403
6146
|
|
|
2404
6147
|
|
|
2405
6148
|
|