Why not using just one GeoServer SQL view with a parameter for your types
and in openlayers a function to generate your layers.
You could even generate a void GeoServer SQL layer with a SELECT DISTINCT
query so you could get your types from a WFS query and make it more
general.
My 2cts
--
Jorge
I and WFS working without any special config.
> 5. What community module do you wish was part of GeoServer 2.6?
Geopackage module, and waiting for the GeoGig stack :-)
--
torial to follow that
> could clarify my questions? Any language is ok!
There are never dummy doubts, if you do your research and don't find a
good answer on the list archives or any other resource, asking here is
perfectly OK.
BR