Changes between Version 6 and Version 7 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2011-03-27T15:00:58+02:00 (14 years ago)
Author:
bastiK
Comment:

another update

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v6 v7  
    1 This page documents details on JOSM's [http://wiki.openstreetmap.org/wiki/MapCSS/0.2 MapCSS] implementation. At the moment (Feb-2011) it is under active development and anything may change without warning.
     1This page documents details on JOSM's [http://wiki.openstreetmap.org/wiki/MapCSS/0.2 MapCSS] implementation. At the moment (Mar-2011) it is under active development and anything may change without warning.
    22[[TOC(inline)]]
    33== General Structure ==
     
    9090|| {{{:new}}} || all new objects ||
    9191|| {{{:connection}}} || true for nodes that are used by more than one way ||
     92|| {{{:tagged}}} || What JOSM considers tagged, i.e. an object that with a tag key other than the following: {{{source*, source_ref, note, comment, converted_by, created_by, watch*, fixme, FIXME, description, attribution}}} (version r4008; in this list, {{{*}}} is a glob)
    9293{{{#!comment
    9394|| {{{:modified}}} || changed objects (Note that the styles are not updated when you move a node, so you have to switch the style sheet on and off to get an updated view.) ||
     
    342343 is_prop_set(''p_name'', ''layer_name'')::
    343344  true, if property ''p_name'' is set
    344  get_tag_value(''key_name'')::
     345 tag(''key_name'')::
    345346  get the value of the key ''key_name'' from the object in question
    346347 has_tag_key(''key_name'')::
     
    372373node[addr:housenumber] {
    373374    symbol-shape: circle;
    374     symbol-size: eval((min(length(get_tag_value("addr:housenumber")), 3) * 5) + 3);
     375    symbol-size: eval((min(length(tag("addr:housenumber")), 3) * 5) + 3);
    375376    symbol-fill-color: #B0E0E6;
    376377