UNPKG

@mapgis/webclient-common

Version:

mapgis ES6 format for igserver

3,491 lines (1,189 loc) 100 kB
<header id="page-title" class="page-title"> <span class="page-title-main">类名</span> <span class="page-title-sub">OGCLayer</span> </header> <section> <article> <div class="container-overview"> <div class='vertical-section'> <div class="members"> <div class="member"> <h4 class="name" id="OGCLayer"> <a class="href-link" href="#OGCLayer">#</a> <span class="code-name" id="OGCLayer" style="font-size:30px"> new OGCLayer<span class="signature">(options)</span> </span> </h4> <div class="description"> <p>OGS图层基类</p> </div> <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>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>minScale</code></td> <td class="type"> <span class="param-type"> Number </span> </td> <td class="default"> 0 </td> <td class="description last"><p>最小显示比例尺,图层在视图中可见的最小比例尺。</p></td> </tr> <tr class="deep-level-1"> <td class="name"><code>maxScale</code></td> <td class="type"> <span class="param-type"> Number </span> </td> <td class="default"> 0 </td> <td class="description last"><p>最大显示比例尺,图层在视图中可见的最大比例尺。</p></td> </tr> <tr class="deep-level-1"> <td class="name"><code>tokenKey</code></td> <td class="type"> <span class="param-type"> String </span> </td> <td class="default"> 'token' </td> <td class="description last"><p>token名</p></td> </tr> <tr class="deep-level-1"> <td class="name"><code>tokenValue</code></td> <td class="type"> <span class="param-type"> String </span> </td> <td class="default"> </td> <td class="description last"><p>token值</p></td> </tr> <tr class="deep-level-1"> <td class="name"><code>version</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-1"> <td class="name"><code>customParameters</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>customLayerParameters</code></td> <td class="type"> <span class="param-type"> Object </span> </td> <td class="default"> {} </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="Layer.html" onclick="getTypeHTML(event)" href="Layer.html">Layer</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="#copyright">copyright</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="#customParameters">customParameters</a></code></td> <td class="name"> <code> <span class="param-type"> Object </span> </code> </td> <td class="name"><code><p>自定义查询参数customParameters</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#description">description</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="#extendProps">extendProps</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="#extensionOptions">extensionOptions</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="#extent">extent</a></code></td> <td class="name"> <code> <span class="param-type"> <a link="Extent.html" onclick="getTypeHTML(event)" href="Extent.html">Extent</a> </span> </code> </td> <td class="name"><code><p>图层范围,从服务元信息中获取</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#headers">headers</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="#httpMethod">httpMethod</a></code></td> <td class="name"> <code> <span class="param-type"> <a link="FetchMethod.html" onclick="getTypeHTML(event)" href="global.html#FetchMethod">FetchMethod</a> </span> </code> </td> <td class="name"><code><p>http请求方式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#id">id</a></code></td> <td class="name"> <code> <span class="param-type"> String </span> </code> </td> <td class="name"><code><p>图层id</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#index">index</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="#loaded">loaded</a></code></td> <td class="name"> <code> <span class="param-type"> Boolean </span> </code> </td> <td class="name"><code><p>是否加载完毕</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#loadStatus">loadStatus</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="#maxScale">maxScale</a></code></td> <td class="name"> <code> <span class="param-type"> Number </span> </code> </td> <td class="name"><code><p>最大显示比例尺,图层在视图中可见的最大比例尺(最放大)。如果地图被放大到超过这个比例,图层将不可见。默认值为0,0表示图层没有最大比例尺、可见性不受最大比例尺限制。maxScale应该始终小于minScale。</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#minScale">minScale</a></code></td> <td class="name"> <code> <span class="param-type"> Number </span> </code> </td> <td class="name"><code><p>最小显示比例尺,图层在视图中可见的最小比例尺(最缩小)。如果地图被缩小到超过这个比例,图层将不可见。默认值为0,0表示图层没有最小比例尺、可见性不受最小比例尺限制。minScale应该始终大于maxScale。</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#opacity">opacity</a></code></td> <td class="name"> <code> <span class="param-type"> Number </span> </code> </td> <td class="name"><code><p>图层透明度,0到1之间的值,0为完全透明,1为不透明,会触发图层更新完毕事件。IGSSceneLayer图层类型为地形时,不支持该属性。</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#spatialReference">spatialReference</a></code></td> <td class="name"> <code> <span class="param-type"> <a link="SpatialReference.html" onclick="getTypeHTML(event)" href="SpatialReference.html">SpatialReference</a> </span> </code> </td> <td class="name"><code><p>图层坐标系对象</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#title">title</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="#tokenAttachType">tokenAttachType</a></code></td> <td class="name"> <code> <span class="param-type"> String </span> </code> </td> <td class="name"><code><p>token附加类型。默认psot请求优先附加到body,get请求优先附加到url末尾</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#tokenKey">tokenKey</a></code></td> <td class="name"> <code> <span class="param-type"> String </span> </code> </td> <td class="name"><code><p>token名</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#tokenValue">tokenValue</a></code></td> <td class="name"> <code> <span class="param-type"> String </span> </code> </td> <td class="name"><code><p>token值</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="#version">version</a></code></td> <td class="name"> <code> <span class="param-type"> String </span> </code> </td> <td class="name"><code><p>ogc版本号</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#visible">visible</a></code></td> <td class="name"> <code> <span class="param-type"> Number </span> </code> </td> <td class="name"><code><p>图层显示或隐藏,true则显示,false则隐藏,会触发图层更新完毕事件</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"> String </span> </span> <h4 class="name" id="copyright"> <a class="href-link" href="#copyright">#</a> <span class='tag'>readonly</span> <span class="code-name"> copyright </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="copyright" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#copyright">Layer#copyright</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="customParameters"> <a class="href-link" href="#customParameters">#</a> <span class="code-name"> customParameters </span> </h4> <div class="description"> <p>自定义查询参数customParameters</p> </div> <dl class="details"> </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="description"> <a class="href-link" href="#description">#</a> <span class='tag'>readonly</span> <span class="code-name"> description </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="description" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#description">Layer#description</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="extendProps"> <a class="href-link" href="#extendProps">#</a> <span class="code-name"> extendProps </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="extendProps" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#extendProps">Layer#extendProps</a> </li></ul></dd> <dt class="tag-default">Default Value:</dt> <dd class="tag-default"><ul class="dummy"> <li>{}</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="extensionOptions"> <a class="href-link" href="#extensionOptions">#</a> <span class="code-name"> extensionOptions </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="extensionOptions" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#extensionOptions">Layer#extensionOptions</a> </li></ul></dd> <dt class="tag-default">Default Value:</dt> <dd class="tag-default"><ul class="dummy"> <li>{}</li> </ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> <a link="Extent.html" onclick="getTypeHTML(event)" href="Extent.html">Extent</a> </span> </span> <h4 class="name" id="extent"> <a class="href-link" href="#extent">#</a> <span class='tag'>readonly</span> <span class="code-name"> extent </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="extent" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#extent">Layer#extent</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="headers"> <a class="href-link" href="#headers">#</a> <span class="code-name"> headers </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="headers" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#headers">Layer#headers</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> <a link="FetchMethod.html" onclick="getTypeHTML(event)" href="global.html#FetchMethod">FetchMethod</a> </span> </span> <h4 class="name" id="httpMethod"> <a class="href-link" href="#httpMethod">#</a> <span class="code-name"> httpMethod </span> </h4> <div class="description"> <p>http请求方式</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="httpMethod" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#httpMethod">Layer#httpMethod</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="id"> <a class="href-link" href="#id">#</a> <span class='tag'>readonly</span> <span class="code-name"> id </span> </h4> <div class="description"> <p>图层id</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="id" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#id">Layer#id</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> Number </span> </span> <h4 class="name" id="index"> <a class="href-link" href="#index">#</a> <span class="code-name"> index </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="index" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#index">Layer#index</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> Boolean </span> </span> <h4 class="name" id="loaded"> <a class="href-link" href="#loaded">#</a> <span class='tag'>readonly</span> <span class="code-name"> loaded </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="loaded" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#loaded">Layer#loaded</a> </li></ul></dd> <dt class="tag-default">Default Value:</dt> <dd class="tag-default"><ul class="dummy"> <li>false</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="loadStatus"> <a class="href-link" href="#loadStatus">#</a> <span class='tag'>readonly</span> <span class="code-name"> loadStatus </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="loadStatus" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#loadStatus">Layer#loadStatus</a> </li></ul></dd> <dt class="tag-default">Default Value:</dt> <dd class="tag-default"><ul class="dummy"> <li>not-loaded</li> </ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> Number </span> </span> <h4 class="name" id="maxScale"> <a class="href-link" href="#maxScale">#</a> <span class="code-name"> maxScale </span> </h4> <div class="description"> <p>最大显示比例尺,图层在视图中可见的最大比例尺(最放大)。如果地图被放大到超过这个比例,图层将不可见。默认值为0,0表示图层没有最大比例尺、可见性不受最大比例尺限制。maxScale应该始终小于minScale。</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="maxScale" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#maxScale">Layer#maxScale</a> </li></ul></dd> <dt class="tag-default">Default Value:</dt> <dd class="tag-default"><ul class="dummy"> <li>0</li> </ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> Number </span> </span> <h4 class="name" id="minScale"> <a class="href-link" href="#minScale">#</a> <span class="code-name"> minScale </span> </h4> <div class="description"> <p>最小显示比例尺,图层在视图中可见的最小比例尺(最缩小)。如果地图被缩小到超过这个比例,图层将不可见。默认值为0,0表示图层没有最小比例尺、可见性不受最小比例尺限制。minScale应该始终大于maxScale。</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="minScale" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#minScale">Layer#minScale</a> </li></ul></dd> <dt class="tag-default">Default Value:</dt> <dd class="tag-default"><ul class="dummy"> <li>0</li> </ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> Number </span> </span> <h4 class="name" id="opacity"> <a class="href-link" href="#opacity">#</a> <span class="code-name"> opacity </span> </h4> <div class="description"> <p>图层透明度,0到1之间的值,0为完全透明,1为不透明,会触发图层更新完毕事件。IGSSceneLayer图层类型为地形时,不支持该属性。</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="opacity" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#opacity">Layer#opacity</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> <a link="SpatialReference.html" onclick="getTypeHTML(event)" href="SpatialReference.html">SpatialReference</a> </span> </span> <h4 class="name" id="spatialReference"> <a class="href-link" href="#spatialReference">#</a> <span class="code-name"> spatialReference </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 href="Layer.html#spatialReference">Layer#spatialReference</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="title"> <a class="href-link" href="#title">#</a> <span class="code-name"> title </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="title" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#title">Layer#title</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="tokenAttachType"> <a class="href-link" href="#tokenAttachType">#</a> <span class="code-name"> tokenAttachType </span> </h4> <div class="description"> <p>token附加类型。默认psot请求优先附加到body,get请求优先附加到url末尾</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="tokenAttachType" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#tokenAttachType">Layer#tokenAttachType</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="tokenKey"> <a class="href-link" href="#tokenKey">#</a> <span class="code-name"> tokenKey </span> </h4> <div class="description"> <p>token名</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="tokenKey" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#tokenKey">Layer#tokenKey</a> </li></ul></dd> <dt class="tag-default">Default Value:</dt> <dd class="tag-default"><ul class="dummy"> <li>token</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="tokenValue"> <a class="href-link" href="#tokenValue">#</a> <span class="code-name"> tokenValue </span> </h4> <div class="description"> <p>token值</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="tokenValue" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#tokenValue">Layer#tokenValue</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='tag'>readonly</span> <span class="code-name"> type </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="type" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#type">Layer#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="version"> <a class="href-link" href="#version">#</a> <span class="code-name"> version </span> </h4> <div class="description"> <p>ogc版本号</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"> Number </span> </span> <h4 class="name" id="visible"> <a class="href-link" href="#visible">#</a> <span class="code-name"> visible </span> </h4> <div class="description"> <p>图层显示或隐藏,true则显示,false则隐藏,会触发图层更新完毕事件</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="visible" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#visible">Layer#visible</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="#clone">clone</a></code></td> <td class="name"> <code> <span class="param-type"> <a link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html">Layer</a> </span> </code> </td> <td class="name"><code><p>克隆方法</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#destroy">destroy</a></code></td> <td class="name"> <code> <span class="param-type"> * </span> </code> </td> <td class="name"><code></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#isLoaded">isLoaded</a></code></td> <td class="name"> <code> <span class="param-type"> Boolean </span> </code> </td> <td class="name"><code><p>判断图层是否加载成功</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#refresh">refresh</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="#toJSON">toJSON</a></code></td> <td class="name"> <code> <span class="param-type"> Object </span> </code> </td> <td class="name"><code><p>转换为json对象</p></code></td> </tr> </tbody> </table> </div> <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4> <div class="member"> <h4 class="name" id="clone"> <a class="href-link" href="#clone">#</a> <span class="code-name" id="clone" style="font-size:30px"> clone<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="clone" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#clone">Layer#clone</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"> <a link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html">Layer</a> </span> </div> </div> </div> </div> </div> <div class="member"> <h4 class="name" id="destroy"> <a class="href-link" href="#destroy">#</a> <span class="code-name" id="destroy" style="font-size:30px"> destroy<span class="signature">()</span> </span> </h4> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="destroy" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#destroy">Layer#destroy</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='column is-5 has-text-left'> <label>类型: </label> <span class="param-type"> * </span> </div> </div> </div> </div> </div> <div class="member"> <h4 class="name" id="isLoaded"> <a class="href-link" href="#isLoaded">#</a> <span class="code-name" id="isLoaded" style="font-size:30px"> isLoaded<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="isLoaded" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#isLoaded">Layer#isLoaded</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"> Boolean </span> </div> </div> </div> </div> </div> <div class="member"> <h4 class="name" id="refresh"> <a class="href-link" href="#refresh">#</a> <span class="code-name" id="refresh" style="font-size:30px"> refresh<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="refresh" link="Layer.html" onclick="getTypeHTML(event)" href="Layer.html#refresh">Layer#refresh</a> </li></ul></dd> </dl> </div> <div class="member"> <h4 class="name" id="toJSON"> <a class="href-link" href="#toJSON">#</a> <span class="code-name" id="toJSON" style="font-size:30px"> toJSON<span class="signature">()</span> </span> </h4> <div class="description"> <p>转换为json对象</p> </div> <dl class="details"> <dt class="tag-overrides">Overrides:</dt> <dd class="tag-overrides"><ul class="dummy"><li> <a href="Layer.html#toJSON">Layer#toJSON</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>json对象</p></div> <div class='column is-5 has-text-left'> <label>类型: </label> <span class="param-type"> Object </span> </div> </div> </div> </div> </div> </div> </div> <div class='vertical-section' style='margin-top: 10px'> <h3 id='event'>事件</h3> <h4 style="margin-top: 20px;margin-bottom: 20px;">事件概述</h4> <div class="table-container"> <table class="params table"> <thead> <tr> <th>名称</th> <th>描述</th> </tr> </thead> <tbody> <tr class="deep-level-0">