Versions in this module Expand all Collapse all v1 v1.4.0 Apr 29, 2024 v1.3.0 Jan 25, 2024 Changes in this version type ZoomRange + func (z ZoomRange) ValidFor(level int) bool v1.2.0 May 17, 2021 Changes in this version type CompOp + const MODULO + type ModuloComparsion struct + CompOp CompOp + Div int + Value int + func (f ModuloComparsion) String() string v1.1.0 Oct 10, 2019 v1.0.1 Aug 6, 2019 v1.0.0 Jul 4, 2019 Changes in this version + var AllZoom = ZoomRange(math.MaxInt32) + var InvalidZoom = ZoomRange(0) + type CompOp int + const EQ + const GT + const GTE + const LT + const LTE + const NEQ + const REGEX + const Unknown + func (c CompOp) String() string + type Decoder struct + func New() *Decoder + func (d *Decoder) Evaluate() (err error) + func (d *Decoder) MSS() *MSS + func (d *Decoder) ParseFile(filename string) error + func (d *Decoder) ParseString(content string) (err error) + func (d *Decoder) Vars() *Properties + type Field string + type Filter struct + CompOp CompOp + Field string + Value Value + func (f Filter) String() string + type MSS struct + func (m *MSS) LayerRules(layer string, classes ...string) []Rule + func (m *MSS) LayerZoomRules(layer string, zoom ZoomRange, classes ...string) []Rule + func (m *MSS) Layers() []string + func (m *MSS) Map() *Properties + type ParseError struct + Column int + Err string + Filename string + Line int + func (p *ParseError) Error() string + type Prefix struct + Instance string + Name string + func SortedPrefixes(p *Properties, prefixes []string) []Prefix + type Properties struct + func NewProperties(kv ...interface{}) *Properties + func NewPropertiesInstance(kiv ...interface{}) *Properties + func (p *Properties) GetBool(property string) (bool, bool) + func (p *Properties) GetColor(property string) (color.Color, bool) + func (p *Properties) GetFieldList(property string) ([]interface{}, bool) + func (p *Properties) GetFloat(property string) (float64, bool) + func (p *Properties) GetFloatList(property string) ([]float64, bool) + func (p *Properties) GetStopList(property string) ([]Stop, bool) + func (p *Properties) GetString(property string) (string, bool) + func (p *Properties) GetStringList(property string) ([]string, bool) + func (p *Properties) SetDefaultInstance(instance string) + func (p *Properties) String() string + type Rule struct + Attachment string + Class string + Filters []Filter + Layer string + Properties *Properties + Zoom ZoomRange + func (r *Rule) String() string + type Selector struct + Attachment string + Class string + Filters []Filter + Layer string + Zoom ZoomRange + type Stop struct + Color color.Color + Value int + type Value interface + type ZoomRange int32 + func NewZoomRange(comp CompOp, zoom int64) ZoomRange + func RulesZoom(rs []Rule) ZoomRange + func (z ZoomRange) First() int + func (z ZoomRange) Last() int + func (z ZoomRange) Levels() (n int) + func (z ZoomRange) String() string