UNPKG

@mapgis/webclient-common

Version:

mapgis ES6 format for igserver

4,772 lines 68.3 kB
<header id="page-title" class="page-title">
    
        <span class="page-title-main">类名</span>
        <span class="page-title-sub">SketchPointDrawTool</span>
    
</header>





<section>

<article>
    <div class="container-overview">
    
        
            <div class='vertical-section'>
                <div class="members">
                    <div class="member">
                        


    
    <h4 class="name" id="SketchPointDrawTool">
        <a class="href-link" href="#SketchPointDrawTool">#</a>
        
        <span class="code-name" id="SketchPointDrawTool" style="font-size:30px">
            
                new SketchPointDrawTool<span class="signature">(options)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>点绘图工具类</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>options</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Object
    
</span>



  
  </td>

  

  <td class="description last"><p>构造参数</p></td>
</tr>


  
    
<tr class="deep-level-1">
  
      <td class="name"><code>view</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="MapView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapView" MapView.html>MapView</a>
    
</span>
|

<span class="param-type">
    
             <a link="SceneView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SceneView" SceneView.html>SceneView</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>地图视图对象</p></td>
</tr>


  
    
<tr class="deep-level-1">
  
      <td class="name"><code>layer</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="GraphicsLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="GraphicsLayer" GraphicsLayer.html>GraphicsLayer</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>草图图层管对象</p></td>
</tr>


  
    
<tr class="deep-level-1">
  
      <td class="name"><code>sketchStyle</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="SketchStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStyle" SketchStyle.html>SketchStyle</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>草图符号</p></td>
</tr>


  



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>
























                    </div>
                </div>
            </div>
        
    
    </div>
    
    
        <h3 class="subsection-title">继承关系</h3>

        


    <ul>
        <li><a link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool" SketchBaseDrawTool.html>SketchBaseDrawTool</a></li>
    </ul>


    

    

    

    

    

    

    
        <div class='vertical-section'>
            <h3 id='member'>成员变量</h3>
            <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
            <div class="table-container">
                <table class="params table">
                    <thead>
                    <tr>
                        <th>名称</th>
                        <th>类型</th>
                        <th>描述</th>
                    </tr>
                    </thead>
                    <tbody>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#arcType">arcType</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             Number
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>弧线类型</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#editOption">editOption</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             Object
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>草图选中编辑配置项</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#elevationInfo">elevationInfo</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             <a link="SketchStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStyle" SketchStyle.html>SketchStyle</a>
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>图形高程模式参数</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#extendOptions">extendOptions</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             Object
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>草图编辑的扩展属性,可以通过该属性传入草图编辑额外需要的参数</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#layer">layer</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             <a link="GraphicsLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="GraphicsLayer" GraphicsLayer.html>GraphicsLayer</a>
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>草图图层</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#sketchStage">sketchStage</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             <a link="SketchStage.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStage" SketchStage.html>SketchStage</a>
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>草图绘图形集合</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#sketchStyle">sketchStyle</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             <a link="SketchStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStyle" SketchStyle.html>SketchStyle</a>
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>草图符号</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#type">type</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             String
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>草图工具类型名</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#undoRedoManager">undoRedoManager</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             String
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>草图撤销回退管理器</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#view">view</a></code></td>
                                <td class="name">
                                    <code>
                                        
<span class="param-type">
    
             <a link="MapView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapView" MapView.html>MapView</a>
    
</span>
|

<span class="param-type">
    
             <a link="SceneView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SceneView" SceneView.html>SceneView</a>
    
</span>



                                    </code>
                                </td>
                                <td class="name"><code><p>地图视图</p></code></td>
                            </tr>
                        
                    </tbody>
                </table>
            </div>
            <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
            <div class="members">
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             Number
    
</span>



    </span>

<h4 class="name" id="arcType">
    <a class="href-link" href="#arcType">#</a>
    
    <span class="code-name">
        arcType
    </span>
    
</h4>




<div class="description">
    <p>弧线类型</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="arcType" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#arcType" SketchBaseDrawTool.html#arcType>SketchBaseDrawTool#arcType</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             Object
    
</span>



    </span>

<h4 class="name" id="editOption">
    <a class="href-link" href="#editOption">#</a>
    
    <span class="code-name">
        editOption
    </span>
    
</h4>




<div class="description">
    <p>草图选中编辑配置项</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="editOption" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#editOption" SketchBaseDrawTool.html#editOption>SketchBaseDrawTool#editOption</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             <a link="SketchStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStyle" SketchStyle.html>SketchStyle</a>
    
</span>



    </span>

<h4 class="name" id="elevationInfo">
    <a class="href-link" href="#elevationInfo">#</a>
    
    <span class="code-name">
        elevationInfo
    </span>
    
</h4>




<div class="description">
    <p>图形高程模式参数</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="elevationInfo" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#elevationInfo" SketchBaseDrawTool.html#elevationInfo>SketchBaseDrawTool#elevationInfo</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             Object
    
</span>



    </span>

<h4 class="name" id="extendOptions">
    <a class="href-link" href="#extendOptions">#</a>
    
    <span class="code-name">
        extendOptions
    </span>
    
</h4>




<div class="description">
    <p>草图编辑的扩展属性,可以通过该属性传入草图编辑额外需要的参数</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="extendOptions" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#extendOptions" SketchBaseDrawTool.html#extendOptions>SketchBaseDrawTool#extendOptions</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             <a link="GraphicsLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="GraphicsLayer" GraphicsLayer.html>GraphicsLayer</a>
    
</span>



    </span>

<h4 class="name" id="layer">
    <a class="href-link" href="#layer">#</a>
    
    <span class="code-name">
        layer
    </span>
    
</h4>




<div class="description">
    <p>草图图层</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="layer" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#layer" SketchBaseDrawTool.html#layer>SketchBaseDrawTool#layer</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             <a link="SketchStage.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStage" SketchStage.html>SketchStage</a>
    
</span>



    </span>

<h4 class="name" id="sketchStage">
    <a class="href-link" href="#sketchStage">#</a>
    
    <span class="code-name">
        sketchStage
    </span>
    
</h4>




<div class="description">
    <p>草图绘图形集合</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="sketchStage" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#sketchStage" SketchBaseDrawTool.html#sketchStage>SketchBaseDrawTool#sketchStage</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             <a link="SketchStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStyle" SketchStyle.html>SketchStyle</a>
    
</span>



    </span>

<h4 class="name" id="sketchStyle">
    <a class="href-link" href="#sketchStyle">#</a>
    
    <span class="code-name">
        sketchStyle
    </span>
    
</h4>




<div class="description">
    <p>草图符号</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="sketchStyle" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#sketchStyle" SketchBaseDrawTool.html#sketchStyle>SketchBaseDrawTool#sketchStyle</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             String
    
</span>



    </span>

<h4 class="name" id="type">
    <a class="href-link" href="#type">#</a>
    
    <span class="code-name">
        type
    </span>
    
</h4>




<div class="description">
    <p>草图工具类型名</p>
</div>





<dl class="details">

    

    

    

    
    <dt class="tag-overrides">Overrides:</dt>
    <dd class="tag-overrides"><ul class="dummy"><li>
        <a class="mapgis-link-name" title="SketchBaseDrawTool#type" SketchBaseDrawTool.html#type>SketchBaseDrawTool#type</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             String
    
</span>



    </span>

<h4 class="name" id="undoRedoManager">
    <a class="href-link" href="#undoRedoManager">#</a>
    
    <span class="code-name">
        undoRedoManager
    </span>
    
</h4>




<div class="description">
    <p>草图撤销回退管理器</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="undoRedoManager" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#undoRedoManager" SketchBaseDrawTool.html#undoRedoManager>SketchBaseDrawTool#undoRedoManager</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>类型:</label>
        
<span class="param-type">
    
             <a link="MapView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapView" MapView.html>MapView</a>
    
</span>
|

<span class="param-type">
    
             <a link="SceneView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SceneView" SceneView.html>SceneView</a>
    
</span>



    </span>

<h4 class="name" id="view">
    <a class="href-link" href="#view">#</a>
    
    <span class="code-name">
        view
    </span>
    
</h4>




<div class="description">
    <p>地图视图</p>
</div>





<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="view" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#view" SketchBaseDrawTool.html#view>SketchBaseDrawTool#view</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>





</div>
            
            </div>
        </div>
    

    
        <div class='vertical-section'>
            <h3 id='function'>方法</h3>
            <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
            <div class="members">
            <div class="table-container">
                <table class="params table">
                    <thead>
                    <tr>
                        <th>名称</th>
                        <th>返回值类型</th>
                        <th>描述</th>
                    </tr>
                    </thead>
                    <tbody>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#addFeature">addFeature</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>添加图形</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#addFeatureByGeometry">addFeatureByGeometry</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>添加图形</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#addVertex">addVertex</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>当前草图图形中插入新的顶点</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#drawFeature">drawFeature</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>鼠标绘制图形</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#getDistanceByPixel">getDistanceByPixel</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                                
<span class="param-type">
    
             Number
    
</span>



                                            
                                    </code>
                                </td>
                                <td class="name"><code><p>根据像素单位获取距离</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#getMidScaleCoordinates">getMidScaleCoordinates</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                                
<span class="param-type">
    
             Number
    
</span>



                                            
                                    </code>
                                </td>
                                <td class="name"><code><p>获取图形通过四个中点缩放后的坐标</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#getPanCoordinates">getPanCoordinates</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                                
<span class="param-type">
    
             Number
    
</span>



                                            
                                    </code>
                                </td>
                                <td class="name"><code><p>获取平移后的坐标</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#getScaleCoordinates">getScaleCoordinates</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                                
<span class="param-type">
    
             Number
    
</span>



                                            
                                    </code>
                                </td>
                                <td class="name"><code><p>获取图形通过四个顶点缩放后的坐标</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#hitTestFeature">hitTestFeature</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>捕获草图</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#removeDrawTool">removeDrawTool</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>清除草图工具</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#removeVertex">removeVertex</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>移除草图图形的某个顶点</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#selectFeature">selectFeature</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>编辑时选中草图这个feature图形</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#setSketchStyle">setSketchStyle</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>设置草图样式</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#setSnapAndReferGeometries">setSnapAndReferGeometries</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>设置捕获和线造区边界参考几何图形集合</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#start">start</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>开始绘制草图</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#stop">stop</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>停止绘制草图</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#updateFeature">updateFeature</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>更新feature</p></code></td>
                            </tr>
                        
                            <tr class="deep-level-0">
                                <td class="name"><code><a href="#updateVertex">updateVertex</a></code></td>
                                <td class="name">
                                    <code>
                                        
                                    </code>
                                </td>
                                <td class="name"><code><p>更新当前草图图形的某个顶点</p></code></td>
                            </tr>
                        
                    </tbody>
                </table>
            </div>
            <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
            
                <div class="member">


    
    <h4 class="name" id="addFeature">
        <a class="href-link" href="#addFeature">#</a>
        
        <span class="code-name" id="addFeature" style="font-size:30px">
            
                addFeature<span class="signature">(point, sketchStyle, attributes)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>添加图形</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>point</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>生成图形的点数据</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>sketchStyle</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="SketchStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStyle" SketchStyle.html>SketchStyle</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>线的符号样式</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>attributes</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Object
    
</span>



  
  </td>

  

  <td class="description last"><p>feature图形的属性</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="addFeatureByGeometry">
        <a class="href-link" href="#addFeatureByGeometry">#</a>
        
        <span class="code-name" id="addFeatureByGeometry" style="font-size:30px">
            
                addFeatureByGeometry<span class="signature">(geometry, sketchStyle, attributes)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>添加图形</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>geometry</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Geometry.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Geometry" Geometry.html>Geometry</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>生成图形的点数据</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>sketchStyle</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="SketchStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStyle" SketchStyle.html>SketchStyle</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>线的符号样式</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>attributes</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Object
    
</span>



  
  </td>

  

  <td class="description last"><p>feature图形的属性</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="addVertex">
        <a class="href-link" href="#addVertex">#</a>
        
        <span class="code-name" id="addVertex" style="font-size:30px">
            
                addVertex<span class="signature">(point, index)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>当前草图图形中插入新的顶点</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>point</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>新增/插入顶点</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>index</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Number
    
</span>



  
  </td>

  

  <td class="description last"><p>新增/新增点的序号</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="addVertex" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#addVertex" SketchBaseDrawTool.html#addVertex>SketchBaseDrawTool#addVertex</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="drawFeature">
        <a class="href-link" href="#drawFeature">#</a>
        
        <span class="code-name" id="drawFeature" style="font-size:30px">
            
                drawFeature<span class="signature">()</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>鼠标绘制图形</p>
    </div>
    













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="getDistanceByPixel">
        <a class="href-link" href="#getDistanceByPixel">#</a>
        
        <span class="code-name" id="getDistanceByPixel" style="font-size:30px">
            
                getDistanceByPixel<span class="signature">(pixel)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>根据像素单位获取距离</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>pixel</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Number
    
</span>



  
  </td>

  

  <td class="description last"><p>编辑状态码</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="getDistanceByPixel" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#getDistanceByPixel" SketchBaseDrawTool.html#getDistanceByPixel>SketchBaseDrawTool#getDistanceByPixel</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>返回值</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    <div class='param-desc column is-7'><p>距离</p></div>
    
    
    <div class='column is-5 has-text-left'>
        <label>类型: </label>
        
<span class="param-type">
    
             Number
    
</span>



    </div>
    
</div>

                
        </div>
    </div>






</div>
            
                <div class="member">


    
    <h4 class="name" id="getMidScaleCoordinates">
        <a class="href-link" href="#getMidScaleCoordinates">#</a>
        
        <span class="code-name" id="getMidScaleCoordinates" style="font-size:30px">
            
                getMidScaleCoordinates<span class="signature">(coordinates, direction, extent, startPoint, movePoint, oriCoordinates)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>获取图形通过四个中点缩放后的坐标</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>coordinates</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Array
    
</span>



  
  </td>

  

  <td class="description last"><p>坐标数组</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>direction</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             String
    
</span>



  
  </td>

  

  <td class="description last"><p>方向</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>extent</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Extent.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Extent" Extent.html>Extent</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>图形extent范围</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>startPoint</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>移动前的点</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>movePoint</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>移动后的点</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>oriCoordinates</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>图形原始坐标</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="getMidScaleCoordinates" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#getMidScaleCoordinates" SketchBaseDrawTool.html#getMidScaleCoordinates>SketchBaseDrawTool#getMidScaleCoordinates</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>返回值</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    <div class='param-desc column is-7'><p>缩放后的坐标</p></div>
    
    
    <div class='column is-5 has-text-left'>
        <label>类型: </label>
        
<span class="param-type">
    
             Number
    
</span>



    </div>
    
</div>

                
        </div>
    </div>






</div>
            
                <div class="member">


    
    <h4 class="name" id="getPanCoordinates">
        <a class="href-link" href="#getPanCoordinates">#</a>
        
        <span class="code-name" id="getPanCoordinates" style="font-size:30px">
            
                getPanCoordinates<span class="signature">(coordinates, deltaX, deltaY, pointType, extent)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>获取平移后的坐标</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>coordinates</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Array
    
</span>



  
  </td>

  

  <td class="description last"><p>坐标数组</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>deltaX</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Number
    
</span>



  
  </td>

  

  <td class="description last"><p>x轴偏移量</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>deltaY</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Number
    
</span>



  
  </td>

  

  <td class="description last"><p>y轴偏移量</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>pointType</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Number
    
</span>



  
  </td>

  

  <td class="description last"><p>点属性类型</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>extent</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Number
    
</span>



  
  </td>

  

  <td class="description last"><p>点所在范围</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="getPanCoordinates" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#getPanCoordinates" SketchBaseDrawTool.html#getPanCoordinates>SketchBaseDrawTool#getPanCoordinates</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>返回值</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    <div class='param-desc column is-7'><p>平移后的坐标</p></div>
    
    
    <div class='column is-5 has-text-left'>
        <label>类型: </label>
        
<span class="param-type">
    
             Number
    
</span>



    </div>
    
</div>

                
        </div>
    </div>






</div>
            
                <div class="member">


    
    <h4 class="name" id="getScaleCoordinates">
        <a class="href-link" href="#getScaleCoordinates">#</a>
        
        <span class="code-name" id="getScaleCoordinates" style="font-size:30px">
            
                getScaleCoordinates<span class="signature">(coordinates, direction, extent, startPoint, movePoint, oriCoordinates)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>获取图形通过四个顶点缩放后的坐标</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>coordinates</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Array
    
</span>



  
  </td>

  

  <td class="description last"><p>坐标数组</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>direction</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             String
    
</span>



  
  </td>

  

  <td class="description last"><p>方向</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>extent</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Extent.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Extent" Extent.html>Extent</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>图形extent范围</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>startPoint</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>移动前的点</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>movePoint</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>移动后的点</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>oriCoordinates</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>图形原始坐标</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="getScaleCoordinates" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#getScaleCoordinates" SketchBaseDrawTool.html#getScaleCoordinates>SketchBaseDrawTool#getScaleCoordinates</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>返回值</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    <div class='param-desc column is-7'><p>缩放后的坐标</p></div>
    
    
    <div class='column is-5 has-text-left'>
        <label>类型: </label>
        
<span class="param-type">
    
             Number
    
</span>



    </div>
    
</div>

                
        </div>
    </div>






</div>
            
                <div class="member">


    
    <h4 class="name" id="hitTestFeature">
        <a class="href-link" href="#hitTestFeature">#</a>
        
        <span class="code-name" id="hitTestFeature" style="font-size:30px">
            
                hitTestFeature<span class="signature">(feature, event)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>捕获草图</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>feature</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Feature.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Feature" Feature.html>Feature</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>被选中feature对象</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>event</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Object
    
</span>



  
  </td>

  

  <td class="description last"><p>选中事件参数</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="removeDrawTool">
        <a class="href-link" href="#removeDrawTool">#</a>
        
        <span class="code-name" id="removeDrawTool" style="font-size:30px">
            
                removeDrawTool<span class="signature">()</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>清除草图工具</p>
    </div>
    













<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="removeDrawTool" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#removeDrawTool" SketchBaseDrawTool.html#removeDrawTool>SketchBaseDrawTool#removeDrawTool</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="removeVertex">
        <a class="href-link" href="#removeVertex">#</a>
        
        <span class="code-name" id="removeVertex" style="font-size:30px">
            
                removeVertex<span class="signature">(index)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>移除草图图形的某个顶点</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>index</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Number
    
</span>



  
  </td>

  

  <td class="description last"><p>需更新的顶点的序号</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="removeVertex" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#removeVertex" SketchBaseDrawTool.html#removeVertex>SketchBaseDrawTool#removeVertex</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="selectFeature">
        <a class="href-link" href="#selectFeature">#</a>
        
        <span class="code-name" id="selectFeature" style="font-size:30px">
            
                selectFeature<span class="signature">(feature)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>编辑时选中草图这个feature图形</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>feature</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Feature.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Feature" Feature.html>Feature</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>被选中feature对象</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="setSketchStyle">
        <a class="href-link" href="#setSketchStyle">#</a>
        
        <span class="code-name" id="setSketchStyle" style="font-size:30px">
            
                setSketchStyle<span class="signature">(sketchStyle)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>设置草图样式</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>sketchStyle</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="SketchStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchStyle" SketchStyle.html>SketchStyle</a>
    
</span>



  
  </td>

  

  <td class="description last"></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="setSketchStyle" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#setSketchStyle" SketchBaseDrawTool.html#setSketchStyle>SketchBaseDrawTool#setSketchStyle</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="setSnapAndReferGeometries">
        <a class="href-link" href="#setSnapAndReferGeometries">#</a>
        
        <span class="code-name" id="setSnapAndReferGeometries" style="font-size:30px">
            
                setSnapAndReferGeometries<span class="signature">(geometries)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>设置捕获和线造区边界参考几何图形集合</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>geometries</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
         Array.&lt;<a onclick="getTypeHTML(event)" link="Geometry.html">Geometry</a>>
    
</span>



  
  </td>

  

  <td class="description last"><p>可选,几何图形集合。</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="setSnapAndReferGeometries" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#setSnapAndReferGeometries" SketchBaseDrawTool.html#setSnapAndReferGeometries>SketchBaseDrawTool#setSnapAndReferGeometries</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="start">
        <a class="href-link" href="#start">#</a>
        
        <span class="code-name" id="start" style="font-size:30px">
            
                start<span class="signature">()</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>开始绘制草图</p>
    </div>
    













<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="start" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#start" SketchBaseDrawTool.html#start>SketchBaseDrawTool#start</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="stop">
        <a class="href-link" href="#stop">#</a>
        
        <span class="code-name" id="stop" style="font-size:30px">
            
                stop<span class="signature">()</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>停止绘制草图</p>
    </div>
    













<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="stop" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#stop" SketchBaseDrawTool.html#stop>SketchBaseDrawTool#stop</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="updateFeature">
        <a class="href-link" href="#updateFeature">#</a>
        
        <span class="code-name" id="updateFeature" style="font-size:30px">
            
                updateFeature<span class="signature">(point, feature)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>更新feature</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>point</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>待更新的位置</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>feature</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Feature.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Feature" Feature.html>Feature</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>被更新的feature</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="updateFeature" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#updateFeature" SketchBaseDrawTool.html#updateFeature>SketchBaseDrawTool#updateFeature</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
                <div class="member">


    
    <h4 class="name" id="updateVertex">
        <a class="href-link" href="#updateVertex">#</a>
        
        <span class="code-name" id="updateVertex" style="font-size:30px">
            
                updateVertex<span class="signature">(point, index)</span>
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>更新当前草图图形的某个顶点</p>
    </div>
    









    <h4>参数</h4>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>名称</th>
            

            <th>类型</th>

            

            <th class="last">描述</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>point</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
    
</span>



  
  </td>

  

  <td class="description last"><p>新的顶点</p></td>
</tr>



        

            
<tr class="deep-level-0">
  
      <td class="name"><code>index</code></td>
  

  <td class="type">
  
      
<span class="param-type">
    
             Number
    
</span>



  
  </td>

  

  <td class="description last"><p>需更新的顶点的序号</p></td>
</tr>



        
        </tbody>
    </table>
</div>






<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a goto="updateVertex" link="SketchBaseDrawTool.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SketchBaseDrawTool#updateVertex" SketchBaseDrawTool.html#updateVertex>SketchBaseDrawTool#updateVertex</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    
    

    

    

    
</dl>























</div>
            
            </div>
        </div>
    

    

    
</article>

</section>