Hello!
I have a layer a PostGIS in Geoserver (2.1.3) with a FreeMarker template
(content.ftl) that resides in the type-specific Geoserver data directory -
in this case
/<geoserver_data_dir>/workspaces/<workspace>/<datastore>/<featuretype>/content.ftl.
This template works just fine in standard GetFeatureInfo requests.
My problem comes when I want to use two different FreeMarker templates on
two different maps using the same Geoserver layer. I would like to have
different data and styles show up in the pop-ups for each map, and
currently, both maps are using the same FreeMarker template. Does anyone
know if what I'd like to do is possible in Geoserver?
I've tried a few things so far, but without much success:
- I thought about publishing the same PostGIS layer twice in Geoserver,
and this doens't appear to be possible. Geoserver will allow you to Publish
Again," which overwrites previous configuration.
- The FreeMarker template seems to just deal with data returned from
Geoserver and, since I'm making the same GetFeatureInfo request regardless
of the map I'm using, the same data are returned. There didn't appear to be
anything I could in the content.ftl file to show different templates on
each map.
- The WMSGetFeatureInfo request from OpenLayers doesn't seem to allow
you to specify the map url as opposed to the standard WMS url.
I'd be happy to provide more information on my specific situation if
needed, and thank you all for your help!!
Thanks again!
JD
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users