Skip to content

MapCSS Implementation Detail

Rolf Eike Beer edited this page Aug 9, 2016 · 3 revisions

Since MapCSS specification is still under development, we provide exact list of MapCSS features available in Kothic-JS renderer. All features of MapCSS 0.2 can be parsed by MapCSS parser, but some wasn't implemented yet.

Selectors

Type

node, way, line, area

Zoom

Mapnik-style zoom levels (z1-18)

Pseudeo-classes

Properties

Common

z-index -x-mapnik-layer

Line

width, color, opacity, dashes, linecap, linejoin casing-width, casing-color, casing-opacity, casing-dashes, casing-linecap, casing-linejoin line-symbolizer

Polygon

fill, fill-color, fill-opacity, fill-image

Text

Icon

Classes

Eval expressions

Eval expressions syntax was implemented according to Eval Syntax Specification. All built-in functions but cond are supported: tag, prop, any, max, min, int, num, metric, zmetric, sqrt. For cond you can directly evaluate the expression in Javascript, there is no need for a builtin function.

Also several list functions inside eval are supported: split, get, set, count, list, join, append, contains, sort, reverse.