Hello,

 

Apologies for asking the same question twice, I was unsure if my
question below had reached the mailing list - if anyone could provide me
with any information regarding the query below, it would be really
appreciated :-)

 

Many thanks,

 

Ryan

 

From: Ryan Moody [mailto:[email protected]] 
Sent: 08 November 2013 16:34
To: [email protected]
Cc: Francoise Kingman; Neil Kirk
Subject: [Geoserver-users] App-Schema Custom GetFeatureInfo HTML

 

Hello,

 

Having successfully got my App-Schema based WMS to return a PNG image, I
now wish to override the GetFeatureInfo request to output custom HTML.
I've defined the following content.ftl template:

 

=== Begin content.ftl

 

<#list features as feature>

<ul>

<li>${feature.fid}</li>

<ul>

<#list feature.attributes as attribute>

<#if attribute.name != "the_geom">

<li><b>${attribute.name}</b> = ${attribute.value}</li>

</#if>

</#list>

</ul>

</ul>

</#list>

 

=== End content.ftl

 

This template gives me the bullet point list I expect to see for the
tutorial (non App-Schema) data layers when I invoke a GetFeatureInfo
request by clicking on the OpenLayers map, however, when I use the same
content.ftl for my App-Schema data layer, the default HTML (a table of
attributes instead of my custom bulleted list) is displayed.

 

Does App-Schema support the use of a custom content.ftl template? If so,
what modifications do I need to make to make to the template above in
order to display the bulleted list?

 

Best Regards,

 

Ryan

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to