Permalink
Browse files

mapserv: support text-dy for line labels

  • Loading branch information...
olt committed Jan 15, 2018
1 parent c9d5dbe commit 39b3cd94453b5c571fbfed71117c3d79c3893be9
Showing with 8 additions and 1 deletion.
  1. +8 −1 builder/mapserver/mapfile.go
@@ -484,7 +484,14 @@ func (m *Map) addTextSymbolizer(b *Block, r mss.Rule, isLine bool) (styled bool)
}
}
addOffsetPosition(&style, r.Properties)
if isLine {
dy, ok := r.Properties.GetFloat("text-dy")
if ok {
style.Add("OFFSET", fmt.Sprintf("%.0f 99", -dy))
}
} else {
addOffsetPosition(&style, r.Properties)
}
if faceNames, ok := r.Properties.GetStringList("text-face-name"); ok {
fontNames := m.fontNames(faceNames)

0 comments on commit 39b3cd9

Please sign in to comment.