Last active
December 25, 2015 22:49
-
-
Save walkermatt/7052155 to your computer and use it in GitHub Desktop.
GeoServer Freemarker template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<#list features as feature> | |
<li><h2>${feature.type.title}</h2> | |
<ul> | |
<#list feature.attributes as attribute> | |
<#if !attribute.isGeometry> | |
<li>${attribute.name?replace("_", " ", "i")?cap_first}: | |
<#if attribute.value?starts_with('http')> | |
<a href="${attribute.value}">${attribute.value}</a> | |
<#else> | |
${attribute.value} | |
</#if> | |
</li> | |
</#if> | |
</#list> | |
</ul> | |
</li> | |
</#list> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related post here: http://longwayaround.org.uk/notes/custom-geoserver-getfeatureinfo-template/