UNPKG

@mapgis/webclient-leaflet-plugin

Version:

3,367 lines 43.9 kB
<!DOCTYPE html>
<html lang="en">

<head>
  
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title> ThemeLayer</title>
  <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
  <link type="text/css" rel="stylesheet" href="styles/app.min.css">
  <link type="text/css" rel="stylesheet" href="styles/iframe.css">
  <link type="text/css" rel="stylesheet" href="">

  
</head>



<body class="layout small-header">
    <div id="stickyNavbarOverlay"></div>
    

<div class="top-nav">
    <div class="inner">
        <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
        </a>
        <div class="logo">
            
                <h1> MapGIS Client for JavaScript API</h1>
            
            
        </div>
        <div class="menu">
            
            <div class="navigation">
                
                    
                        <a
                            class="link user-link "
                            href="/docs/cesium/index.html"
                        >
                            Cesium
                        </a>
                    
                        <a
                            class="link user-link "
                            href="/docs/mapboxgl/index.html"
                        >
                            MapboxGL
                        </a>
                    
                        <a
                            class="link user-link "
                            href="/docs/leaflet/index.html"
                        >
                            Leaflet
                        </a>
                    
                        <a
                            class="link user-link "
                            href="/docs/openlayers/index.html"
                        >
                            OpenLayers
                        </a>
                    
                

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

    <div id="main">
        <div
            class="sidebar "
            id="sidebarNav"
        >
            <div>
                <span class="mapgis-api-document-span"><a href="index.html">API文档</a></span>
            </div>
            
                <div class="search-wrapper">
                    <input id="search" type="text" placeholder="搜索文档..." class="input">
                </div>
            
            <nav>
                
                    <div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="DrawControl.html">DrawControl</a><span style="display: none;"><p>绘制工具</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapView.html">MapView</a><span style="display: none;"><p>二维场景视图(leaflet引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<code>Map</code>,<br/>
参考示例:
<a href='#MapView'>[初始化二维场景视图]</a>
<br>[ES5引入方式]:<br/>
Zondy.MapView() <br/>
[ES6引入方式]:<br/>
import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Popup.html">Popup</a><span style="display: none;"><p>二维场景信息弹窗(leaflet引擎)
参考示例:
<a href='#MapView'>[初始化二维场景视图]</a>
[ES6引入方式]:<br/>
import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
自定义样式说明:<br/>
zondy-popup__content 弹窗容器样式<br/>
zondy-popup__tip 弹窗对话框箭头样式<br/>
zondy-popup__header 弹窗头部样式<br/>
zondy-popup__content 弹窗主体样式<br/>
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>屏幕打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorLeaflet.html">SketchEditorLeaflet</a><span style="display: none;"><p>二维场景草图编辑类<br/>
<br>[ES5引入方式]:<br/>
const { SketchEditorLeaflet } = Zondy <br/>
[ES6引入方式]:<br/>
import { SketchEditorLeaflet } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/></p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">渲染器模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Zondy.ThemeLayer.GraphThemeLayer.html">GraphThemeLayer</a><span style="display: none;"><p>统计专题图通过为每个要素绘制统计图表来反映其对应的专题值的大小。它可同时表示多个字段属性信息,在区域本身与各区域之间形成横向和纵向的对比。<br>统计专题图多用于具有相关数量特征的地图上,比如表示不同地区多年的粮食产量、GDP、人口等,不同时段客运量、地铁流量等。目前提供的统计图类型有:柱状图(Bar),折线图(Line),饼图(Pie),三维柱状图(Bar3D),点状图(Point),环状图(Ring)。</p></span></li></ul></div>
                
            </nav>
        </div>
        <div class="core" id="main-content-wrapper">
            <div class="content">
                <header id="page-title" class="page-title">
                    <span class="page-title-main">类名</span>
                    <span class="page-title-sub">ThemeLayer</span>
                </header>
                




<section>

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


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

    









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

            <th>类型</th>

            
            <th style="min-width: 100px;">默认值</th>
            

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

        <tbody>
        

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

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


  
  </td>

  
      <td class="default">
      
      </td>
  

  <td class="description last"><p>专题图图层名称。</p></td>
</tr>



        

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

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


  
  </td>

  
      <td class="default">
      
      </td>
  

  <td class="description last"><p>可选参数。</p></td>
</tr>


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

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


  
  </td>

  
      <td class="default">
      
      </td>
  

  <td class="description last"><p>专题图层 ID。默认使用 CommonUtil.createUniqueID(&quot;themeLayer_&quot;) 创建专题图层 ID。</p></td>
</tr>


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

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


  
  </td>

  
      <td class="default">
      
          1
      
      </td>
  

  <td class="description last"><p>图层透明度。</p></td>
</tr>


  



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line6">line 6</a>
            </span>
        </p>
    
</dl>





    <div class="method-parameter columns">
        <div class="column is-2"><label>绑定事件:</label></div>
        <div class="column is-10">
            <ul>
                <li><a href="Zondy.ThemeLayer.ThemeLayer.html#event:featuresremoved">Zondy.ThemeLayer.ThemeLayer#event:featuresremoved</a></li>
            </ul>
        </div>
    </div>




















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

        


    <ul>
        <li>L.Layer</li>
    </ul>


    

    

    

    

    

    

    

    
        <div class='vertical-section'>
            <h3 id='function'>方法</h3>
            <div class="members">
            
                <div class="member">


    
    <h4 class="name" id="addFeatures">
        <a class="href-link" href="#addFeatures">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                addFeatures<span class="signature">(features)</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>features</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">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line103">line 103</a>
            </span>
        </p>
    
</dl>























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


    
    <h4 class="name" id="destroyFeatures">
        <a class="href-link" href="#destroyFeatures">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                destroyFeatures<span class="signature">(features)</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>features</code></td>
  

  <td class="type">
  
      
<span class="param-type">Array.&lt;Zondy.Feature.Vector></span>


  
  </td>

  

  <td class="description last"><p>将被销毁的要素。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line123">line 123</a>
            </span>
        </p>
    
</dl>























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


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

    
    <div class="description">
        <p>获取图层事件。</p>
    </div>
    













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line34">line 34</a>
            </span>
        </p>
    
</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">Object</span>


    </div>
    
</div>

                
        </div>
    </div>






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


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

    
    <div class="description">
        <p>在专题图的要素数组 features 里面遍历每一个 feature,当 feature[property] === value 时,返回此 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>property</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>value</code></td>
  

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


  
  </td>

  

  <td class="description last"><p>对应属性名得值。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line234">line 234</a>
            </span>
        </p>
    
</dl>























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


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

    
    <div class="description">
        <p>通过给定一个 ID,返回对应的矢量要素,如果不存在则返回 null。</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>featureId</code></td>
  

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


  
  </td>

  

  <td class="description last"><p>要素 ID。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line250">line 250</a>
            </span>
        </p>
    
</dl>























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


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

    
    <div class="description">
        <p>查看当前图层中的有效数据。</p>
    </div>
    













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line219">line 219</a>
            </span>
        </p>
    
</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">Array</span>


    </div>
    
</div>

                
        </div>
    </div>






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


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

    
    <div class="description">
        <p>通过给定一个属性的 key 值和 value 值,返回所有匹配的要素数组。</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>attrName</code></td>
  

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


  
  </td>

  

  <td class="description last"><p>key 值。</p></td>
</tr>



        

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

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


  
  </td>

  

  <td class="description last"><p>value 值。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line259">line 259</a>
            </span>
        </p>
    
</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">Array</span>


    </div>
    
</div>

                
        </div>
    </div>






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


    
    <h4 class="name" id="getLocalXY">
        <a class="href-link" href="#getLocalXY">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                getLocalXY<span class="signature">(coordinate)</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>coordinate</code></td>
  

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


  
  </td>

  

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



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line411">line 411</a>
            </span>
        </p>
    
</dl>























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


    
    <h4 class="name" id="off">
        <a class="href-link" href="#off">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                off<span class="signature">(event, callback, context)</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>event</code></td>
  

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


  
  </td>

  

  <td class="description last"><p>监听事件。</p></td>
</tr>



        

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

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


  
  </td>

  

  <td class="description last"><p>回调函数。</p></td>
</tr>



        

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

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


  
  </td>

  

  <td class="description last"><p>信息。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line370">line 370</a>
            </span>
        </p>
    
</dl>























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


    
    <h4 class="name" id="on">
        <a class="href-link" href="#on">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                on<span class="signature">(event, callback, context)</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>event</code></td>
  

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


  
  </td>

  

  <td class="description last"><p>监听事件。</p></td>
</tr>



        

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

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


  
  </td>

  

  <td class="description last"><p>回调函数。</p></td>
</tr>



        

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

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


  
  </td>

  

  <td class="description last"><p>信息。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line353">line 353</a>
            </span>
        </p>
    
</dl>























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


    
    <h4 class="name" id="onRemove">
        <a class="href-link" href="#onRemove">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                onRemove<span class="signature">(map)</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>map</code></td>
  

  <td class="type">
  
      
<span class="param-type">L.Map</span>


  
  </td>

  

  <td class="description last"><p>要删除的地图。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line52">line 52</a>
            </span>
        </p>
    
</dl>























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


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

    
    <div class="description">
        <p>重绘该图层。</p>
    </div>
    













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line335">line 335</a>
            </span>
        </p>
    
</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">boolean</span>


    </div>
    
</div>

                
        </div>
    </div>






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


    
    <h4 class="name" id="redrawThematicFeatures">
        <a class="href-link" href="#redrawThematicFeatures">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                redrawThematicFeatures<span class="signature">(bounds)</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>bounds</code></td>
  

  <td class="type">
  
      
<span class="param-type">L.bounds</span>


  
  </td>

  

  <td class="description last"><p>重绘专题要素范围。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line113">line 113</a>
            </span>
        </p>
    
</dl>























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


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

    
    <div class="description">
        <p>清除当前图层所有的矢量要素。</p>
    </div>
    













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line203">line 203</a>
            </span>
        </p>
    
</dl>























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


    
    <h4 class="name" id="removeFeatures">
        <a class="href-link" href="#removeFeatures">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                removeFeatures<span class="signature">(features)</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>features</code></td>
  

  <td class="type">
  
      
<span class="param-type">Array.&lt;Zondy.Feature.Vector></span>


  
  </td>

  

  <td class="description last"><p>将被删除的要素。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line141">line 141</a>
            </span>
        </p>
    
</dl>























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


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

    
    <div class="description">
        <p>设置图层的不透明度,取值 [0-1] 之间。</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>opacity</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">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line319">line 319</a>
            </span>
        </p>
    
</dl>























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


    
    <h4 class="name" id="update">
        <a class="href-link" href="#update">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                update<span class="signature">(bounds)</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>bounds</code></td>
  

  <td class="type">
  
      
<span class="param-type">L.bounds</span>


  
  </td>

  

  <td class="description last"><p>图层范围。</p></td>
</tr>



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






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line283">line 283</a>
            </span>
        </p>
    
</dl>























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

    

    
        <div class='vertical-section' style='margin-top: 10px'>
            <h3 id='event'>事件</h3>
            <div class="members">
            
                <div class="member">
                    


    
    <h4 class="name" id="event:changelayer">
        <a class="href-link" href="#event:changelayer">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                changelayer
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>图层属性改变之后触发。</p>
    </div>
    













    <h5 class="subsection-title">属性:</h5>

    
<div class="table-container">
    <table class="props table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

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

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


    
    </td>

    

    

    <td class="description last"><p>图层。</p></td>
</tr>

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

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


    
    </td>

    

    

    <td class="description last"><p>图层属性。</p></td>
</tr>

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



<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line483">line 483</a>
            </span>
        </p>
    
</dl>
























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


    
    <h4 class="name" id="event:featuresremoved">
        <a class="href-link" href="#event:featuresremoved">#</a>
        
        <span class="code-name" style="font-size:30px">
            
                featuresremoved
            
        </span>
    </h4>
    

    
    <div class="description">
        <p>删除的要素成功之后触发。</p>
    </div>
    













    <h5 class="subsection-title">属性:</h5>

    
<div class="table-container">
    <table class="props table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

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

    <td class="type">
    
        
<span class="param-type">Array.&lt;Zondy.Feature.Vector></span>


    
    </td>

    

    

    <td class="description last"><p>事件对象。</p></td>
</tr>

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

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


    
    </td>

    

    

    <td class="description last"><p>要输是否删除成功,true 为删除成功,false 为删除失败。</p></td>
</tr>

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



<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="document_theme_ThemeLayer.js.html" class="button">查看源代码</a>
            <span>
                <a href="document_theme_ThemeLayer.js.html">document/theme/ThemeLayer.js</a>, <a href="document_theme_ThemeLayer.js.html#line191">line 191</a>
            </span>
        </p>
    
</dl>
























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

</section>




            </div>
            
            <footer class="footer">
                <div class="content has-text-centered">
                    <p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
                    <p class="sidebar-created-by">
                        <a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
                        <a href="http://192.168.82.89:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
                    </p>
                </div>
            </footer>
            
        </div>
        <div id="side-nav" class="side-nav">
            <div style="margin-bottom: 10px;">
                <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
            </div>
            <div style="margin-bottom: 10px;">
                <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
            </div>
            <div style="margin-bottom: 10px;">
                <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
            </div>
            <div>
                <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
            </div>
        </div>
    </div>
<script src="scripts/linenumber.js"> </script>

<script src="scripts/search.js"> </script>

</body>
</html>