Skip to content

Commit

Permalink
mapserver: allow setting angle auto2 by text-placement
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiCu committed Feb 28, 2017
1 parent 08b4195 commit e1a543a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion builder/mapserver/mapfile.go
Expand Up @@ -471,7 +471,14 @@ func (m *Map) addTextSymbolizer(b *Block, r mss.Rule, isLine bool) (styled bool)

style.Add("Type", "truetype")
if isLine {
style.Add("Angle", "FOLLOW")
angle, ok := r.Properties.GetString("text-placement")

if ok && angle == "auto2" {
style.Add("Angle", "AUTO2")
} else {
style.Add("Angle", "FOLLOW")
}

style.Add("MinFeatureSize", "AUTO")
}
if wrapWidth, ok := r.Properties.GetFloat("text-wrap-width"); ok {
Expand Down

0 comments on commit e1a543a

Please sign in to comment.