Mercurial > gemma
changeset 4247:152b9eb5ca47
styles-config: implement styling of WMS-Layers
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 22 Aug 2019 14:34:53 +0200 |
parents | 5e8dec0073ae |
children | b83668bef692 |
files | pkg/controllers/system.go pkg/geoserver/templates.go |
diffstat | 2 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/system.go Thu Aug 22 11:57:58 2019 +0200 +++ b/pkg/controllers/system.go Thu Aug 22 14:34:53 2019 +0200 @@ -256,6 +256,22 @@ registerReconfigureFunc("distance_marks_fill", dm) registerReconfigureFunc("distance_marks_stroke", dm) + dma := func(old sql.NullString, curr string) (func(*http.Request), error) { + return reconfigureWMSLayer(old, curr, "distance_marks_ashore_geoserver") + } + registerReconfigureFunc("distance_marks_ashore_fill", dma) + registerReconfigureFunc("distance_marks_ashore_stroke", dma) + + wa := func(old sql.NullString, curr string) (func(*http.Request), error){ + return reconfigureWMSLayer(old, curr, "waterway_area") + } + registerReconfigureFunc("waterway_area_stroke", wa) + + wx := func(old sql.NullString, curr string) (func(*http.Request), error){ + return reconfigureWMSLayer(old, curr, "waterway_axis") + } + registerReconfigureFunc("waterway_axis_stroke", wx) + // TODO: Add more layers. }
--- a/pkg/geoserver/templates.go Thu Aug 22 11:57:58 2019 +0200 +++ b/pkg/geoserver/templates.go Thu Aug 22 14:34:53 2019 +0200 @@ -41,6 +41,15 @@ RegisterStylePreprocessor( "distance_marks_geoserver", templateConfigValues) + RegisterStylePreprocessor( + "distance_marks_ashore_geoserver", + templateConfigValues) + RegisterStylePreprocessor( + "waterway_area", + templateConfigValues) + RegisterStylePreprocessor( + "waterway_axis", + templateConfigValues) // TODO: Add more layers. }