# HG changeset patch # User Sascha L. Teichmann # Date 1550560097 -3600 # Node ID 478cc0d26d336a3f92c7b7cb3c00c9c14b83aeb0 # Parent 06c4e57435f1a16482be95a1e572d39b24265aa9 Added current water level to properties of cross-section. diff -r 06c4e57435f1 -r 478cc0d26d33 pkg/controllers/cross.go --- a/pkg/controllers/cross.go Mon Feb 18 19:38:48 2019 +0100 +++ b/pkg/controllers/cross.go Tue Feb 19 08:08:17 2019 +0100 @@ -21,6 +21,7 @@ "net/http" "time" + "gemma.intevation.de/gemma/pkg/common" "gemma.intevation.de/gemma/pkg/models" "gemma.intevation.de/gemma/pkg/octree" ) @@ -166,7 +167,13 @@ Type: "MultiLineString", Coordinates: joined, }, - Properties: map[string]interface{}{}, + Properties: map[string]interface{}{ + "waterlevel": map[string]interface{}{ + // TODO: Fetch values from database. + "value": float64(50), + "when": start.Format(common.TimeFormat), + }, + }, }, }