@mapgis/webclient-common
Version:
mapgis ES6 format for igserver
45 lines (39 loc) • 1.08 kB
HTML
<header id="page-title" class="page-title">
<span class="page-title-main">类名</span>
<span class="page-title-sub">表达式</span>
</header>
<section>
<header>
</header>
<article>
<h2>表达式说明</h2>
<p>目前表达式支持的功能</p>
<ul>
<li>
<p>链接符</p>
</li>
<li>
<p>数学运算符</p>
</li>
<li>
<p>条件运算符</p>
</li>
</ul>
<h4>链接符</h4>
<p>目前仅支持$feature链接符,支持访问要素的属性信息。
<strong>example</strong></p>
<pre class="prettyprint source"><code>$feature.FID //表示访问要素的FID字段
</code></pre>
<h4><strong>数学运算</strong></h4>
<p>支持一般通用数学运算符,如+-*/等计算符</p>
<p><strong>example</strong></p>
<p>计算面积占比</p>
<pre class="prettyprint source"><code>$feature.AREA/$feature.TOTALAREA
</code></pre>
<h4><strong>条件运算</strong></h4>
<p><strong>example</strong></p>
<p>支持 || && >= <=等</p>
<pre class="prettyprint source"><code>$feature.ISAREA || $feature.ISRIVER
</code></pre>
</article>
</section>