[OSM-dev] pgmapcss version 0.8.0

Stephan Bösch-Plepelits skunk at xover.htu.tuwien.ac.at
Sun Sep 14 07:07:06 UTC 2014


During this version update I mostly concentrated on compatibility with
JOSM, but there were also some major performance improvements. Also, Mapnik
3.0 support improved, as features were added in Mapnik source code.  It is
a huge update with more than 250 commits.

JOSM has many features beyond the MapCSS 0.2 specification. pgmapcss now
supports most of those features, therefore you can render many JOSM styles
with Mapnik.

The most important changes:
* You can use @media queries to skip certain style rules under specific
  conditions, most likely the currently used renderer.
* Select objects (mostly ways) depending whether there’s right or left hand
  traffic in this region, either as pseudo class :righthandtraffic or eval
  function: is_right_hand_traffic().
* New properties, including: symbol-, repeat-image-, left-casing-,
  right-casing-, dashes-background-color, text-anchor-, icon-rotation, …
* Additional condition selectors, including: truth/false value
  [tag?][tag?!], presence of tag by regular expression: [/^addr:/].
  Pseudo classes like :tagged, :connected, …. Negate classes and pseudo
  classes: !.class, !:pseudo_class.
* Link selectors: ∈, ∋, ⧉: within, surrounds, overlaps
* Many new eval functions including trigonometric functions, color
  functions, …

If you compile JOSM styles, you should pass the option --defaults josm,
which changes default values and enables additional features. There were
some more compiler arguments added, see pgmapcss --help for details.

Also, pgmapcss got a blog: http://pgmapcss.openstreetbrowser.org/blog/
Find the source code at: https://github.com/plepe/pgmapcss

greetings,
	Stephan
-- 
Seid unbequem, seid Sand, nicht Öl im Getriebe der Welt! - Günther Eich
,---------------------------------------------------------------------.
| Stephan Bösch-Plepelits,                                            |
| Technische Universität Wien   -    Studien Informatik & Raumplanung |
| Projects:                                                           |
| > openstreetbrowser.org > couchsurfing.org > tubasis.at > bl.mud.at |
| Contact:                                                            |
| > Mail: skunk at xover.mud.at > Blog: plepe.at                         |
| > Twitter: twitter.com/plepe > Jabber: skunk at jabber.at              |
`---------------------------------------------------------------------'



More information about the dev mailing list