UNPKG

imobile_for_reactnative

Version:

iMobile for ReactNative,是SuperMap iMobile推出的一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。

4,796 lines (1,079 loc) 49.6 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: MapControl</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: MapControl</h1> <section> <header> <h2>MapControl</h2> </header> <article> <div class="container-overview"> <h4 class="name" id="MapControl"><span class="type-signature"></span>new MapControl<span class="signature">()</span><span class="type-signature"></span></h4> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>ACTION</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">PAN:地图漫游。 VERTEXADD:在可编辑图层中为对象添加节点。 VERTEXDELETE:在可编辑图层中为对象删除节点。 SELECT:在对象上点击,选择对象。 VERTEXEDIT:在可编辑图层中编辑对象的节点。 CREATEPOINT:在可编辑图层上点击式绘点。 CREATEPOLYLINE:在可编辑图层中点击式绘直线。 CREATEPOLYGON:在可编辑图层中点击式绘多边形。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line22">line 22</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Methods</h3> <h4 class="name" id=".addActionChangedListener"><span class="type-signature">(static) </span>addActionChangedListener<span class="signature">(actionChange)</span><span class="type-signature"></span></h4> <div class="description"> 监听编辑行为的变更事件 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>actionChange</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">编辑行为变更函数,回调事件参数:e:newAction,e:oldAction</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line84">line 84</a> </li></ul></dd> </dl> <h4 class="name" id=".addGeometryAddedListener"><span class="type-signature">(static) </span>addGeometryAddedListener<span class="signature">(event)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4> <div class="description"> 添加对象添加监听器 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>event</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">event:{geometryAdded: e => {...}} e:{layer:--, id:--,canceled:--} layer:操作的图层,操作对象id,操作结果canceled,ture为操作成功,否则为false.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line493">line 493</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;*></span> </dd> </dl> <h4 class="name" id=".addGeometryDeletedListener"><span class="type-signature">(static) </span>addGeometryDeletedListener<span class="signature">(event)</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> event:{geometryDeleted: e => {...}} e:{layer:--, id:--,canceled:--} layer:操作的图层,被删除对象id,删除结果canceled,ture为删除成功,否则为false. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>event</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line453">line 453</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> <h4 class="name" id=".addGeometryDeletingListener"><span class="type-signature">(static) </span>addGeometryDeletingListener<span class="signature">(event)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4> <div class="description"> 添加对象删除完成前监听器。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>event</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">event:{geometryDeleting: e => {...}} e:{layer:--, id:--,canceled:--} layer:操作的图层,操作对象id,操作结果canceled,ture为操作成功,否则为false.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line533">line 533</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;*></span> </dd> </dl> <h4 class="name" id=".addGeometryModifiedListener"><span class="type-signature">(static) </span>addGeometryModifiedListener<span class="signature">(event)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4> <div class="description"> 添加对象修改完成监听器 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>event</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">event:{geometryModified: e => {...}} e:{layer:--, id:--,canceled:--} layer:操作的图层,操作对象id,操作结果canceled,ture为操作成功,否则为false.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line573">line 573</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;*></span> </dd> </dl> <h4 class="name" id=".addGeometryModifyingListener"><span class="type-signature">(static) </span>addGeometryModifyingListener<span class="signature">(event)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4> <div class="description"> 添加对象修改前监听器 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>event</code></td> <td class="type"> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line613">line 613</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;*></span> </dd> </dl> <h4 class="name" id=".addGeometrySelectedListener"><span class="type-signature">(static) </span>addGeometrySelectedListener<span class="signature">(events)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4> <div class="description"> events:{geometrySelected: e => {...},geometryMultiSelected e => {...}} geometrySelected 单个集合对象被选中事件的回调函数,参数e为获取结果 e:{layer:--, id:--} layer:操作的图层,操作对象id。geometryMultiSelected 多个集合对象被选中事件的回调函数,参数e为获取结果数组:e:{geometries:[layer:--,id:--]} </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>events</code></td> <td class="type"> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line655">line 655</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;*></span> </dd> </dl> <h4 class="name" id=".addMeasureListener"><span class="type-signature">(static) </span>addMeasureListener<span class="signature">(events)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4> <div class="description"> events:{lengthMeasured: e => {...},areaMeasured: e => {...},e => {...},angleMeasured: e => {...}} lengthMeasured 长度量算结果。 e:{curResult:--, curPoint:{x:--,y--} areaMeasured 面积量算结果。 e:{curResult:--, curPoint:{x:--,y--} angleMeasured 测量角度结果 通过设置Action.MEASUREANGLE实现测量角度。 e:{curAngle:--, curPoint:{x:--,y--} </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>events</code></td> <td class="type"> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line736">line 736</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;*></span> </dd> </dl> <h4 class="name" id=".addPlotLibrary"><span class="type-signature">(static) </span>addPlotLibrary<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;int>}</span></h4> <div class="description"> 添加标绘库。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line871">line 871</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;int></span> </dd> </dl> <h4 class="name" id=".addUndoStateChangeListener"><span class="type-signature">(static) </span>addUndoStateChangeListener<span class="signature">(event)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4> <div class="description"> event:{undoStateChange: e => {...}} e:{canUndo:--,canRedo:--} 返回参数canUndo表示是否可取消,canRedo表示是否可重复 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>event</code></td> <td class="type"> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line788">line 788</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;*></span> </dd> </dl> <h4 class="name" id=".cancel"><span class="type-signature">(static) </span>cancel<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 取消操作,对于采集而言,新建的未提交的数据将被清除,对于编辑,将回到上一次提交保存的状态。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line407">line 407</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".deleteCurrentGeometry"><span class="type-signature">(static) </span>deleteCurrentGeometry<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;Promise.deleted>}</span></h4> <div class="description"> 删除当前绘制出来的几何对象。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line421">line 421</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;Promise.deleted></span> </dd> </dl> <h4 class="name" id=".getAction"><span class="type-signature">(static) </span>getAction<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;string>}</span></h4> <div class="description"> 返回地图控件中地图的当前操作状态。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line358">line 358</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;string></span> </dd> </dl> <h4 class="name" id=".getCurrentGeometry"><span class="type-signature">(static) </span>getCurrentGeometry<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;(<a href="GeoPoint.html">GeoPoint</a>|<a href="GeoLine.html">GeoLine</a>|<a href="GeoRegion.html">GeoRegion</a>|<a href="Geometry.html">Geometry</a>)>}</span></h4> <div class="description"> 获得当前Geometry几何对象 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line267">line 267</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;(<a href="GeoPoint.html">GeoPoint</a>|<a href="GeoLine.html">GeoLine</a>|<a href="GeoRegion.html">GeoRegion</a>|<a href="Geometry.html">Geometry</a>)></span> </dd> </dl> <h4 class="name" id=".getEditLayer"><span class="type-signature">(static) </span>getEditLayer<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;object>}</span></h4> <div class="description"> 获取当前编辑图层 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line435">line 435</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;object></span> </dd> </dl> <h4 class="name" id=".getIndustryNavi"><span class="type-signature">(static) </span>getIndustryNavi<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="Navigation2.html">Navigation2</a>>}</span></h4> <div class="description"> 获取导航控件 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line295">line 295</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;<a href="Navigation2.html">Navigation2</a>></span> </dd> </dl> <h4 class="name" id=".getMap"><span class="type-signature">(static) </span>getMap<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="Map.html">Map</a>>}</span></h4> <div class="description"> 返回在地图控件中显示的地图对象。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line40">line 40</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;<a href="Map.html">Map</a>></span> </dd> </dl> <h4 class="name" id=".getTraditionalNavi"><span class="type-signature">(static) </span>getTraditionalNavi<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="TraditionalNavi.html">TraditionalNavi</a>>}</span></h4> <div class="description"> 获得传统导航控件 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line342">line 342</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;<a href="TraditionalNavi.html">TraditionalNavi</a>></span> </dd> </dl> <h4 class="name" id=".redo"><span class="type-signature">(static) </span>redo<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 地图窗口上恢复上一步的操作。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line379">line 379</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> <h4 class="name" id=".removeActionChangedListener"><span class="type-signature">(static) </span>removeActionChangedListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除动作变更监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line104">line 104</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeEditStatusListener"><span class="type-signature">(static) </span>removeEditStatusListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 添加、删除节点事件的监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line858">line 858</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeGeometryAddedListener"><span class="type-signature">(static) </span>removeGeometryAddedListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除对象添加监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line519">line 519</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeGeometryDeletedListener"><span class="type-signature">(static) </span>removeGeometryDeletedListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除对象删除完成监听器 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line479">line 479</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeGeometryDeletingListener"><span class="type-signature">(static) </span>removeGeometryDeletingListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除对象删除完成前监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line559">line 559</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeGeometryModifiedListener"><span class="type-signature">(static) </span>removeGeometryModifiedListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除对象删除完成前监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line599">line 599</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeGeometryModifyingListener"><span class="type-signature">(static) </span>removeGeometryModifyingListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除对象修改完成监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line639">line 639</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeGeometrySelectedListener"><span class="type-signature">(static) </span>removeGeometrySelectedListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除对象选中监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line718">line 718</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeMeasureListener"><span class="type-signature">(static) </span>removeMeasureListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除量算监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line773">line 773</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removePlotLibrary"><span class="type-signature">(static) </span>removePlotLibrary<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 添加标绘库。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line885">line 885</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".removeUndoStateChangeListener"><span class="type-signature">(static) </span>removeUndoStateChangeListener<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 移除Undo监听器。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line811">line 811</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".setAction"><span class="type-signature">(static) </span>setAction<span class="signature">(actionType)</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 设置地图控件中地图的当前操作状态。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>actionType</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line57">line 57</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".setConfigurationChangedListener"><span class="type-signature">(static) </span>setConfigurationChangedListener<span class="signature">(events)</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 设置横竖屏切换监听器。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>events</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">传入一个对象作为参数,该对象可以包含两个属性:toHorizontalScreen和toVerticalScreen。两个属性的值均为function类型,分部作为横屏与竖屏监听事件的处理函数。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line312">line 312</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".setEditStatusListener"><span class="type-signature">(static) </span>setEditStatusListener<span class="signature">(events)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4> <div class="description"> events:{addNodeEnable: e => {...},deleteNodeEnable: e => {...}} addNodeEnable: 添加节点有效。e:{isEnable:--} deleteNodeEnable: 删除节点有效。 e:{isEnable:--} </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>events</code></td> <td class="type"> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line828">line 828</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;*></span> </dd> </dl> <h4 class="name" id=".setGestureDetector"><span class="type-signature">(static) </span>setGestureDetector<span class="signature">(events)</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 监听导航事件 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>events</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">传入一个对象作为参数,该对象可以包含两个属性:longPressHandler和scrollHandler。两个属性的值均为function类型,分部作为长按与滚动监听事件的处理函数。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line118">line 118</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".setMapParamChangedListener"><span class="type-signature">(static) </span>setMapParamChangedListener<span class="signature">(events)</span><span class="type-signature"></span></h4> <div class="description"> events: {boundsChanged:fun(){},scaleChanged:fun(){},angleChanged:fun(){},sizeChanged:fun(){}} </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>events</code></td> <td class="type"> </td> <td class="description last">该对象有下面四个函数类型的属性分别处理四种监听事件</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line173">line 173</a> </li></ul></dd> </dl> <h4 class="name" id=".setPlotSymbol"><span class="type-signature">(static) </span>setPlotSymbol<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;int>}</span></h4> <div class="description"> 设置标绘图案。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line898">line 898</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;int></span> </dd> </dl> <h4 class="name" id=".setRefreshListener"><span class="type-signature">(static) </span>setRefreshListener<span class="signature">(callback)</span><span class="type-signature"> &rarr; {Promise.&lt;void>}</span></h4> <div class="description"> 地图刷新监听器 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>callback</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">刷新处理回调函数</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line243">line 243</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> </dd> </dl> <h4 class="name" id=".submit"><span class="type-signature">(static) </span>submit<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;(Promise|*|{phasedRegistrationNames})>}</span></h4> <div class="description"> 提交操作,对于采集而言,该接口将把采集的新几何对象写入到数据集,对于编辑,则是更新数据集中的正在编辑的对象。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line70">line 70</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;(Promise|*|{phasedRegistrationNames})></span> </dd> </dl> <h4 class="name" id=".undo"><span class="type-signature">(static) </span>undo<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 地图控件上撤消上一次的操作。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="MapControl.js.html">MapControl.js</a>, <a href="MapControl.js.html#line393">line 393</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BufferAnalyst.html">BufferAnalyst</a></li><li><a href="BufferAnalystParameter.html">BufferAnalystParameter</a></li><li><a href="DataDownloadService.html">DataDownloadService</a></li><li><a href="Dataset.html">Dataset</a></li><li><a href="DatasetVector.html">DatasetVector</a></li><li><a href="DatasetVectorInfo.html">DatasetVectorInfo</a></li><li><a href="Datasource.html">Datasource</a></li><li><a href="DatasourceConnectionInfo.html">DatasourceConnectionInfo</a></li><li><a href="DataUploadService.html">DataUploadService</a></li><li><a href="Feature.html">Feature</a></li><li><a href="FeatureSet.html">FeatureSet</a></li><li><a href="GeoLine.html">GeoLine</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="GeoPoint.html">GeoPoint</a></li><li><a href="GeoRegion.html">GeoRegion</a></li><li><a href="GeoStyle.html">GeoStyle</a></li><li><a href="Layer.html">Layer</a></li><li><a href="LayerSetting.html">LayerSetting</a></li><li><a href="LayerSettingVector.html">LayerSettingVector</a></li><li><a href="LocationManager.html">LocationManager</a></li><li><a href="Map.html">Map</a></li><li><a href="MapControl.html">MapControl</a></li><li><a href="MapView.html">MapView</a></li><li><a href="Navigation2.html">Navigation2</a></li><li><a href="OverlayAnalyst.html">OverlayAnalyst</a></li><li><a href="OverlayAnalystParameter.html">OverlayAnalystParameter</a></li><li><a href="Point.html">Point</a></li><li><a href="Point2D.html">Point2D</a></li><li><a href="QueryParameter.html">QueryParameter</a></li><li><a href="QueryService.html">QueryService</a></li><li><a href="Rectangle2D.html">Rectangle2D</a></li><li><a href="Scene.html">Scene</a></li><li><a href="Selection.html">Selection</a></li><li><a href="ServiceBase.html">ServiceBase</a></li><li><a href="ServiceQueryParameter.html">ServiceQueryParameter</a></li><li><a href="Size2D.html">Size2D</a></li><li><a href="Theme.html">Theme</a></li><li><a href="Track.html">Track</a></li><li><a href="TrackingLayer.html">TrackingLayer</a></li><li><a href="TraditionalNavi.html">TraditionalNavi</a></li><li><a href="Workspace.html">Workspace</a></li><li><a href="WorkspaceConnectionInfo.html">WorkspaceConnectionInfo</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Tue Aug 01 2017 16:16:50 GMT+0800 (CST) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>