Hi all,
I've added support for CSS @import rules in stylesheets, so you can
share common features between them (even nesting them if you like):
@import "pois.css";
@import "interactive.css";
P2's MapCSS implementation is currently order-sensitive (i.e. some
stuff, such as :drawn, will behave differently depending where in the
file you put it) so the @import rules can go anywhere in the stylesheet,
not just at the start. Internally, P2 sees the @import rule, loads the
file requested, and pastes it 'in place'.
In particular, it'd be great to use this so we could have two core
stylesheets: a Standard one and an Enhanced one.
Standard should be fast (i.e. avoid using dashes for cuttings,
embankments etc.) and simple (don't highlight access restrictions or way
direction). I'm very aware that P2 performance can be sluggish on some
systems, particularly Linux, and don't want the bells-and-whistles to be
displayed as standard.
Enhanced would have all the lovely dashes and access and way direction
that you like, and would be really useful for the experienced mapper to
whom these things are crucial.
cheers
Richard
_______________________________________________
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev