content.ftl

来自「电子地图服务器,搭建自己的地图服务」· FTL 代码 · 共 36 行

FTL
36
字号
<#-- 
Body section of the GetFeatureInfo template, it's provided with one feature collection, and
will be called multiple times if there are various feature collections
-->
<table class="featureInfo">
  <caption class="featureInfo">${type.name}</caption>
  <tr>
  <th>fid</th>
<#list type.attributes as attribute>
  <#if !attribute.isGeometry>
    <th >${attribute.name}</th>
  </#if>
</#list>
  </tr>

<#assign odd = false>
<#list features as feature>
  <#if odd>
    <tr class="odd">
  <#else>
    <tr>
  </#if>
  <#assign odd = !odd>

  <td>${feature.fid}</td>    
  <#list feature.attributes as attribute>
    <#if !attribute.isGeometry>
      <td>${attribute.value?string}</td>
    </#if>
  </#list>
  </tr>
</#list>
</table>
<br/>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?