UNPKG

@mapgis/webclient-common

Version:

mapgis ES6 format for igserver

798 lines (242 loc) 11.3 kB
<header id="page-title" class="page-title"> <span class="page-title-main">类名</span> <span class="page-title-sub">LineSymbolMarker</span> </header> <section> <article> <div class="container-overview"> <div class='vertical-section'> <div class="members"> <div class="member"> <h4 class="name" id="LineSymbolMarker"> <a class="href-link" href="#LineSymbolMarker">#</a> <span class="code-name" id="LineSymbolMarker" style="font-size:30px"> new LineSymbolMarker<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 style="min-width: 100px;">默认值</th> <th class="last">描述</th> </tr> </thead> <tbody> <tr class="deep-level-0"> <td class="name" id="options"><code>options</code></td> <td class="type"> <span class="param-type">options</span> </td> <td class="default"> </td> <td class="description last"><p>构造参数</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="type"><code>type</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="default"> 'line-marker' </td> <td class="description last"><p>marker类型:只能是'line-marker'</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="color"><code>color</code></td> <td class="type"> <span class="param-type">String</span> | <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </td> <td class="default"> </td> <td class="description last"><p>线符号标记颜色,默认为'rgb(0,0,0)'</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="placement"><code>placement</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="default"> "begin-end" </td> <td class="description last"><p>线符号标记摆放位置,&quot;begin&quot;|&quot;end&quot;|&quot;begin-end&quot;</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="style"><code>style</code></td> <td class="type"> <span class="param-type"><a link="LineMarkerStyle.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="LineMarkerStyle" global.html#LineMarkerStyle>LineMarkerStyle</a></span> </td> <td class="default"> 'arrow' </td> <td class="description last"><p>线符号标记样式,可选值&quot;arrow&quot;|&quot;circle&quot;|&quot;square&quot;|&quot;diamond&quot;|&quot;cross&quot;|&quot;x&quot;</p></td> </tr> </tbody> </table> </div> <dl class="details"> <dt class="tag-author">作者:</dt> <dd class="tag-author"> <ul> <li>基础平台-潘卓然</li> </ul> </dd> </dl> </div> </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="#fromJSON">fromJSON</a></code></td> <td class="name"> <code> <span class="param-type"><a link="LineSymbolMarker.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="LineSymbolMarker" LineSymbolMarker.html>LineSymbolMarker</a></span> </code> </td> <td class="name"><code><p>通过json构造并返回一个新的LineSymbolMarker对象</p></code></td> </tr> <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="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </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>将JS对象转换为JSON格式</p></code></td> </tr> </tbody> </table> </div> <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4> <div class="member"> <h4 class="name" id=".fromJSON"> <a class="href-link" href="#.fromJSON">#</a> <span class='tag'>static</span> <span class="code-name" id="fromJSON" style="font-size:30px"> fromJSON<span class="signature">(json)</span> </span> </h4> <div class="description"> <p>通过json构造并返回一个新的LineSymbolMarker对象</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" id="json"><code>json</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last"><p>符号的实例化JSON</p></td> </tr> </tbody> </table> </div> <dl class="details"> </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>新的LineSymbolMarker对象</p></div> <div class='column is-5 has-text-left'> <label>类型: </label> <span class="param-type"><a link="LineSymbolMarker.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="LineSymbolMarker" LineSymbolMarker.html>LineSymbolMarker</a></span> </div> </div> </div> </div> </div> <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"> </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="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </div> </div> </div> </div> </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>将JS对象转换为JSON格式</p> </div> <dl class="details"> </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> </article> </section>