Mercurial > gemma
view pkg/controllers/publish.go @ 804:21609ba97357
client: improve legendelements for layerselection
* Add a special hint to the layer data, so that we can detect
points and specify which resolution we want for the legend.
* Improve LineString to have a bend.
* Actually take styles of the layer into account.
* Do not act on TILE layers.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 27 Sep 2018 15:00:52 +0200 |
parents | b2dc9c2f69e0 |
children | a244b18cb916 |
line wrap: on
line source
package controllers import ( "database/sql" "net/http" "gemma.intevation.de/gemma/pkg/models" ) func published(_ interface{}, req *http.Request, _ *sql.Conn) (jr JSONResult, err error) { jr = JSONResult{ Result: struct { Internal []models.IntEntry `json:"internal"` External []models.ExtEntry `json:"external"` }{ Internal: models.InternalServices.Filter(models.InternalAll), External: models.ExternalServices.Filter(models.ExternalAll), }, } return }