Documentation ¶
Overview ¶
Package mapserver builds MapServer .map files.
Index ¶
- Constants
- Variables
- type Block
- type Item
- type Layer
- type Map
- func (m *Map) AddLayer(layer mml.Layer, rules []mss.Rule)
- func (m *Map) SetAutoTypeFilter(enable bool)
- func (m *Map) SetBackgroundColor(c color.Color)
- func (m *Map) SetNoMapBlock(enable bool)
- func (m *Map) SetZoomScales(zoomScales []int)
- func (m *Map) String() string
- func (m *Map) Write(w io.Writer) error
- func (m *Map) WriteFiles(basename string) error
Constants ¶
View Source
const FontFactor = 72 / 90.7 /*dpi*/
FontFactor is used to adjust differences of font sized between Mapnik and Mapserver.
View Source
const HaloWidthFactor = 2 * 72 / 90.7 // twice the radius
HaloWidthFactor is used to adjust differences of halo outline/radius sizes between Mapnik and Mapserver.
View Source
const LineWidthFactor = 1 // 1 for DEFRESOLUTION 72, 1.25 (90.7/72) for DEFRESOLUTION 90.7
LineWidthFactor is used to adjust differences of line width and pattern sizes between Mapnik and Mapserver.
Variables ¶
View Source
var Maker = maker{}
Functions ¶
This section is empty.
Types ¶
type Map ¶
func (*Map) SetAutoTypeFilter ¶
func (*Map) SetBackgroundColor ¶
func (*Map) SetNoMapBlock ¶
func (*Map) SetZoomScales ¶
func (*Map) WriteFiles ¶
Click to show internal directories.
Click to hide internal directories.